Blender V5.3
BLI_winstuff_com.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2022 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
11
12#ifndef _WIN32
13# error "This include is for Windows only!"
14#endif
15
16#include "BLI_sys_types.hh"
17
18#include <windows.h>
19
20namespace blender {
21
23 HRESULT _hr;
24
25 public:
27 {
28 _hr = CoInitializeEx(nullptr, flags);
29 }
31 {
32 if (SUCCEEDED(_hr)) {
33 CoUninitialize();
34 }
35 }
36 operator HRESULT()
37 {
38 return _hr;
39 }
40};
41
42} // namespace blender
BMesh Iterators.