2018-07-20 20:37:37 -07:00
|
|
|
use @import("index.zig");
|
|
|
|
|
2018-10-03 22:23:02 -07:00
|
|
|
pub extern "ole32" stdcallcc fn CoTaskMemFree(pv: LPVOID) void;
|
|
|
|
pub extern "ole32" stdcallcc fn CoUninitialize() void;
|
|
|
|
pub extern "ole32" stdcallcc fn CoGetCurrentProcess() DWORD;
|
|
|
|
pub extern "ole32" stdcallcc fn CoInitializeEx(pvReserved: LPVOID, dwCoInit: DWORD) HRESULT;
|
2018-07-20 20:37:37 -07:00
|
|
|
|
|
|
|
pub const COINIT_APARTMENTTHREADED = COINIT.COINIT_APARTMENTTHREADED;
|
|
|
|
pub const COINIT_MULTITHREADED = COINIT.COINIT_MULTITHREADED;
|
|
|
|
pub const COINIT_DISABLE_OLE1DDE = COINIT.COINIT_DISABLE_OLE1DDE;
|
|
|
|
pub const COINIT_SPEED_OVER_MEMORY = COINIT.COINIT_SPEED_OVER_MEMORY;
|
2018-11-13 05:08:37 -08:00
|
|
|
pub const COINIT = extern enum {
|
2018-07-20 20:37:37 -07:00
|
|
|
COINIT_APARTMENTTHREADED = 2,
|
|
|
|
COINIT_MULTITHREADED = 0,
|
|
|
|
COINIT_DISABLE_OLE1DDE = 4,
|
|
|
|
COINIT_SPEED_OVER_MEMORY = 8,
|
|
|
|
};
|