ole32.odin 425 B

123456789101112131415161718
  1. // +build windows
  2. package win32
  3. foreign import "system:ole32.lib"
  4. //objbase.h
  5. Com_Init :: enum {
  6. Multi_Threaded = 0x0,
  7. Apartment_Threaded = 0x2,
  8. Disable_OLE1_DDE = 0x4,
  9. Speed_Over_Memory = 0x8,
  10. };
  11. @(default_calling_convention = "std")
  12. foreign ole32 {
  13. @(link_name ="CoInitializeEx") com_init_ex :: proc(reserved: rawptr, co_init: Com_Init) ->Hresult ---;
  14. @(link_name = "CoUninitialize") com_shutdown :: proc() ---;
  15. }