mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-16 19:02:23 -07:00
19 lines
368 B
Odin
19 lines
368 B
Odin
// +build windows
|
|
package sys_windows
|
|
|
|
foreign import "system:Ole32.lib"
|
|
|
|
//objbase.h
|
|
COINIT :: enum DWORD {
|
|
APARTMENTTHREADED = 0x2,
|
|
MULTITHREADED,
|
|
DISABLE_OLE1DDE = 0x4,
|
|
SPEED_OVER_MEMORY = 0x8,
|
|
}
|
|
|
|
@(default_calling_convention="stdcall")
|
|
foreign Ole32 {
|
|
CoInitializeEx :: proc(reserved: rawptr, co_init: COINIT) -> HRESULT ---
|
|
CoUninitialize :: proc() ---
|
|
}
|