Reorganize sys/win32

This commit is contained in:
gingerBill
2019-01-02 19:17:27 +00:00
parent 75aeb02c39
commit 61a3e50d1b
8 changed files with 1483 additions and 1462 deletions
+18
View File
@@ -0,0 +1,18 @@
// +build windows
package win32
foreign import "system:ole32.lib"
//objbase.h
Com_Init :: enum {
Multi_Threaded = 0x0,
Apartment_Threaded = 0x2,
Disable_OLE1_DDE = 0x4,
Speed_Over_Memory = 0x8,
};
@(default_calling_convention = "std")
foreign ole32 {
@(link_name ="CoInitializeEx") com_init_ex :: proc(reserved: rawptr, co_init: Com_Init) ->Hresult ---;
@(link_name = "CoUninitialize") com_shutdown :: proc() ---;
}