summaryrefslogtreecommitdiffhomepage
path: root/compat/win32-com.hpp
blob: 4e535815615c4a114c3429b797cc3291d9550253 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#ifdef _WIN32

#include "export.hpp"

#include <objbase.h>
#include <ole2.h>

enum com_type : int
{
    com_multithreaded = COINIT_MULTITHREADED,
    com_apartment = COINIT_APARTMENTTHREADED,
};

bool OPENTRACK_COMPAT_EXPORT init_com_threading(com_type t);

#endif