sys/windows: fix file picker dialog
This commit is contained in:
1 parent
176954a6d8
commit
ae57a49915
3 files changed
+58
-2
No files matched your search
@@ -11,8 +11,29 @@ COINIT :: enum DWORD {
|
||||
SPEED_OVER_MEMORY = 0x8,
|
||||
}
|
||||
|
||||
IUnknown :: struct {
|
||||
using Vtbl: ^IUnknownVtbl,
|
||||
}
|
||||
IUnknownVtbl :: struct {
|
||||
QueryInterface : proc "std" (This: ^IUnknown, riid: REFIID, ppvObject: ^rawptr) -> HRESULT,
|
||||
AddRef : proc "std" (This: ^IUnknown) -> ULONG,
|
||||
Release : proc "std" (This: ^IUnknown) -> ULONG,
|
||||
}
|
||||
|
||||
LPUNKNOWN :: ^IUnknown
|
||||
|
||||
@(default_calling_convention="stdcall")
|
||||
foreign Ole32 {
|
||||
CoInitializeEx :: proc(reserved: rawptr, co_init: COINIT) -> HRESULT ---
|
||||
CoUninitialize :: proc() ---
|
||||
|
||||
CoCreateInstance :: proc(
|
||||
rclsid: REFCLSID,
|
||||
pUnkOuter: LPUNKNOWN,
|
||||
dwClsContext: DWORD,
|
||||
riid: REFIID,
|
||||
ppv: ^LPVOID,
|
||||
) -> HRESULT ---
|
||||
|
||||
CoTaskMemFree :: proc(pv: rawptr) ---
|
||||
}
|
||||
Reference in new issue
Block a user