mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Change stdcall -> system
This commit is contained in:
@@ -5,7 +5,7 @@ foreign import advapi32 "system:Advapi32.lib"
|
|||||||
|
|
||||||
HCRYPTPROV :: distinct HANDLE
|
HCRYPTPROV :: distinct HANDLE
|
||||||
|
|
||||||
@(default_calling_convention="stdcall")
|
@(default_calling_convention="system")
|
||||||
foreign advapi32 {
|
foreign advapi32 {
|
||||||
@(link_name = "SystemFunction036")
|
@(link_name = "SystemFunction036")
|
||||||
RtlGenRandom :: proc(RandomBuffer: ^u8, RandomBufferLength: ULONG) -> BOOLEAN ---
|
RtlGenRandom :: proc(RandomBuffer: ^u8, RandomBufferLength: ULONG) -> BOOLEAN ---
|
||||||
@@ -24,7 +24,7 @@ foreign advapi32 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Necessary to create a token to impersonate a user with for CreateProcessAsUser
|
// Necessary to create a token to impersonate a user with for CreateProcessAsUser
|
||||||
@(default_calling_convention="stdcall")
|
@(default_calling_convention="system")
|
||||||
foreign advapi32 {
|
foreign advapi32 {
|
||||||
LogonUserW :: proc(
|
LogonUserW :: proc(
|
||||||
lpszUsername: LPCWSTR,
|
lpszUsername: LPCWSTR,
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ foreign import bcrypt "system:Bcrypt.lib"
|
|||||||
|
|
||||||
BCRYPT_USE_SYSTEM_PREFERRED_RNG: DWORD : 0x00000002
|
BCRYPT_USE_SYSTEM_PREFERRED_RNG: DWORD : 0x00000002
|
||||||
|
|
||||||
@(default_calling_convention="stdcall")
|
@(default_calling_convention="system")
|
||||||
foreign bcrypt {
|
foreign bcrypt {
|
||||||
BCryptGenRandom :: proc(hAlgorithm: LPVOID, pBuffer: [^]u8, cbBuffer: ULONG, dwFlags: ULONG) -> LONG ---
|
BCryptGenRandom :: proc(hAlgorithm: LPVOID, pBuffer: [^]u8, cbBuffer: ULONG, dwFlags: ULONG) -> LONG ---
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ BLUETOOTH_DEVICE_INFO :: struct {
|
|||||||
name: [BLUETOOTH_MAX_NAME_SIZE]u16, // Name of the device
|
name: [BLUETOOTH_MAX_NAME_SIZE]u16, // Name of the device
|
||||||
}
|
}
|
||||||
|
|
||||||
@(default_calling_convention="stdcall")
|
@(default_calling_convention="system")
|
||||||
foreign bthprops {
|
foreign bthprops {
|
||||||
/*
|
/*
|
||||||
Version
|
Version
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package sys_windows
|
|||||||
|
|
||||||
foreign import "system:Comctl32.lib"
|
foreign import "system:Comctl32.lib"
|
||||||
|
|
||||||
@(default_calling_convention="stdcall")
|
@(default_calling_convention="system")
|
||||||
foreign Comctl32 {
|
foreign Comctl32 {
|
||||||
LoadIconWithScaleDown :: proc(hinst: HINSTANCE, pszName: PCWSTR, cx: c_int, cy: c_int, phico: ^HICON) -> HRESULT ---
|
LoadIconWithScaleDown :: proc(hinst: HINSTANCE, pszName: PCWSTR, cx: c_int, cy: c_int, phico: ^HICON) -> HRESULT ---
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package sys_windows
|
|||||||
|
|
||||||
foreign import "system:Comdlg32.lib"
|
foreign import "system:Comdlg32.lib"
|
||||||
|
|
||||||
LPOFNHOOKPROC :: #type proc "stdcall" (hdlg: HWND, msg: u32, wparam: WPARAM, lparam: LPARAM) -> UINT_PTR
|
LPOFNHOOKPROC :: #type proc "system" (hdlg: HWND, msg: u32, wparam: WPARAM, lparam: LPARAM) -> UINT_PTR
|
||||||
|
|
||||||
OPENFILENAMEW :: struct {
|
OPENFILENAMEW :: struct {
|
||||||
lStructSize: DWORD,
|
lStructSize: DWORD,
|
||||||
@@ -31,7 +31,7 @@ OPENFILENAMEW :: struct {
|
|||||||
FlagsEx: DWORD,
|
FlagsEx: DWORD,
|
||||||
}
|
}
|
||||||
|
|
||||||
@(default_calling_convention="stdcall")
|
@(default_calling_convention="system")
|
||||||
foreign Comdlg32 {
|
foreign Comdlg32 {
|
||||||
GetOpenFileNameW :: proc(arg1: ^OPENFILENAMEW) -> BOOL ---
|
GetOpenFileNameW :: proc(arg1: ^OPENFILENAMEW) -> BOOL ---
|
||||||
GetSaveFileNameW :: proc(arg1: ^OPENFILENAMEW) -> BOOL ---
|
GetSaveFileNameW :: proc(arg1: ^OPENFILENAMEW) -> BOOL ---
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ MINIDUMP_USER_STREAM_INFORMATION :: struct {
|
|||||||
UserStreamArray: ^MINIDUMP_USER_STREAM,
|
UserStreamArray: ^MINIDUMP_USER_STREAM,
|
||||||
}
|
}
|
||||||
|
|
||||||
MINIDUMP_CALLBACK_ROUTINE :: #type proc "stdcall" (
|
MINIDUMP_CALLBACK_ROUTINE :: #type proc "system" (
|
||||||
CallbackParam: PVOID,
|
CallbackParam: PVOID,
|
||||||
CallbackInput: ^MINIDUMP_CALLBACK_INPUT,
|
CallbackInput: ^MINIDUMP_CALLBACK_INPUT,
|
||||||
CallbackOutpu: ^MINIDUMP_CALLBACK_OUTPUT,
|
CallbackOutpu: ^MINIDUMP_CALLBACK_OUTPUT,
|
||||||
@@ -228,7 +228,7 @@ MINIDUMP_TYPE :: enum u32 {
|
|||||||
ValidTypeFlags = 0x01ffffff,
|
ValidTypeFlags = 0x01ffffff,
|
||||||
}
|
}
|
||||||
|
|
||||||
@(default_calling_convention = "stdcall")
|
@(default_calling_convention = "system")
|
||||||
foreign Dbghelp {
|
foreign Dbghelp {
|
||||||
MiniDumpWriteDump :: proc(
|
MiniDumpWriteDump :: proc(
|
||||||
hProcess: HANDLE,
|
hProcess: HANDLE,
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ DWMNCRENDERINGPOLICY :: enum {
|
|||||||
DWMNCRP_LAST,
|
DWMNCRP_LAST,
|
||||||
}
|
}
|
||||||
|
|
||||||
@(default_calling_convention="stdcall")
|
@(default_calling_convention="system")
|
||||||
foreign dwmapi {
|
foreign dwmapi {
|
||||||
DwmFlush :: proc() -> HRESULT ---
|
DwmFlush :: proc() -> HRESULT ---
|
||||||
DwmIsCompositionEnabled :: proc(pfEnabled: ^BOOL) -> HRESULT ---
|
DwmIsCompositionEnabled :: proc(pfEnabled: ^BOOL) -> HRESULT ---
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package sys_windows
|
|||||||
|
|
||||||
foreign import gdi32 "system:Gdi32.lib"
|
foreign import gdi32 "system:Gdi32.lib"
|
||||||
|
|
||||||
@(default_calling_convention="stdcall")
|
@(default_calling_convention="system")
|
||||||
foreign gdi32 {
|
foreign gdi32 {
|
||||||
GetStockObject :: proc(i: c_int) -> HGDIOBJ ---
|
GetStockObject :: proc(i: c_int) -> HGDIOBJ ---
|
||||||
SelectObject :: proc(hdc: HDC, h: HGDIOBJ) -> HGDIOBJ ---
|
SelectObject :: proc(hdc: HDC, h: HGDIOBJ) -> HGDIOBJ ---
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ HIDP_REPORT_TYPE :: enum c.int {
|
|||||||
HIDP_STATUS_SUCCESS : NTSTATUS : 0x110000
|
HIDP_STATUS_SUCCESS : NTSTATUS : 0x110000
|
||||||
|
|
||||||
foreign import hid "system:hid.lib"
|
foreign import hid "system:hid.lib"
|
||||||
@(default_calling_convention="stdcall")
|
@(default_calling_convention="system")
|
||||||
foreign hid {
|
foreign hid {
|
||||||
HidP_GetCaps :: proc(PreparsedData: PHIDP_PREPARSED_DATA, Capabilities: PHIDP_CAPS) -> NTSTATUS ---
|
HidP_GetCaps :: proc(PreparsedData: PHIDP_PREPARSED_DATA, Capabilities: PHIDP_CAPS) -> NTSTATUS ---
|
||||||
HidP_GetButtonCaps :: proc(ReportType: HIDP_REPORT_TYPE, ButtonCaps: PHIDP_BUTTON_CAPS, ButtonCapsLength: PUSHORT, PreparsedData: PHIDP_PREPARSED_DATA) -> NTSTATUS ---
|
HidP_GetButtonCaps :: proc(ReportType: HIDP_REPORT_TYPE, ButtonCaps: PHIDP_BUTTON_CAPS, ButtonCapsLength: PUSHORT, PreparsedData: PHIDP_PREPARSED_DATA) -> NTSTATUS ---
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ COMMON_LVB_REVERSE_VIDEO :: WORD(0x4000)
|
|||||||
COMMON_LVB_UNDERSCORE :: WORD(0x8000)
|
COMMON_LVB_UNDERSCORE :: WORD(0x8000)
|
||||||
COMMON_LVB_SBCSDBCS :: WORD(0x0300)
|
COMMON_LVB_SBCSDBCS :: WORD(0x0300)
|
||||||
|
|
||||||
@(default_calling_convention="stdcall")
|
@(default_calling_convention="system")
|
||||||
foreign kernel32 {
|
foreign kernel32 {
|
||||||
OutputDebugStringA :: proc(lpOutputString: LPCSTR) --- // The only A thing that is allowed
|
OutputDebugStringA :: proc(lpOutputString: LPCSTR) --- // The only A thing that is allowed
|
||||||
OutputDebugStringW :: proc(lpOutputString: LPCWSTR) ---
|
OutputDebugStringW :: proc(lpOutputString: LPCWSTR) ---
|
||||||
@@ -112,7 +112,7 @@ foreign kernel32 {
|
|||||||
CreateThread :: proc(
|
CreateThread :: proc(
|
||||||
lpThreadAttributes: LPSECURITY_ATTRIBUTES,
|
lpThreadAttributes: LPSECURITY_ATTRIBUTES,
|
||||||
dwStackSize: SIZE_T,
|
dwStackSize: SIZE_T,
|
||||||
lpStartAddress: proc "stdcall" (rawptr) -> DWORD,
|
lpStartAddress: proc "system" (rawptr) -> DWORD,
|
||||||
lpParameter: LPVOID,
|
lpParameter: LPVOID,
|
||||||
dwCreationFlags: DWORD,
|
dwCreationFlags: DWORD,
|
||||||
lpThreadId: LPDWORD,
|
lpThreadId: LPDWORD,
|
||||||
@@ -121,7 +121,7 @@ foreign kernel32 {
|
|||||||
hProcess: HANDLE,
|
hProcess: HANDLE,
|
||||||
lpThreadAttributes: LPSECURITY_ATTRIBUTES,
|
lpThreadAttributes: LPSECURITY_ATTRIBUTES,
|
||||||
dwStackSize: SIZE_T,
|
dwStackSize: SIZE_T,
|
||||||
lpStartAddress: proc "stdcall" (rawptr) -> DWORD,
|
lpStartAddress: proc "system" (rawptr) -> DWORD,
|
||||||
lpParameter: LPVOID,
|
lpParameter: LPVOID,
|
||||||
dwCreationFlags: DWORD,
|
dwCreationFlags: DWORD,
|
||||||
lpThreadId: LPDWORD,
|
lpThreadId: LPDWORD,
|
||||||
@@ -581,7 +581,7 @@ MEM_TOP_DOWN :: 0x100000
|
|||||||
MEM_LARGE_PAGES :: 0x20000000
|
MEM_LARGE_PAGES :: 0x20000000
|
||||||
MEM_4MB_PAGES :: 0x80000000
|
MEM_4MB_PAGES :: 0x80000000
|
||||||
|
|
||||||
@(default_calling_convention="stdcall")
|
@(default_calling_convention="system")
|
||||||
foreign kernel32 {
|
foreign kernel32 {
|
||||||
VirtualAlloc :: proc(
|
VirtualAlloc :: proc(
|
||||||
lpAddress: LPVOID,
|
lpAddress: LPVOID,
|
||||||
@@ -724,7 +724,7 @@ LowMemoryResourceNotification :: MEMORY_RESOURCE_NOTIFICATION_TYPE.LowMemoryRes
|
|||||||
HighMemoryResourceNotification :: MEMORY_RESOURCE_NOTIFICATION_TYPE.HighMemoryResourceNotification
|
HighMemoryResourceNotification :: MEMORY_RESOURCE_NOTIFICATION_TYPE.HighMemoryResourceNotification
|
||||||
|
|
||||||
|
|
||||||
@(default_calling_convention="stdcall")
|
@(default_calling_convention="system")
|
||||||
foreign kernel32 {
|
foreign kernel32 {
|
||||||
CreateMemoryResourceNotification :: proc(
|
CreateMemoryResourceNotification :: proc(
|
||||||
NotificationType: MEMORY_RESOURCE_NOTIFICATION_TYPE,
|
NotificationType: MEMORY_RESOURCE_NOTIFICATION_TYPE,
|
||||||
@@ -740,7 +740,7 @@ FILE_CACHE_MAX_HARD_DISABLE :: DWORD(0x00000002)
|
|||||||
FILE_CACHE_MIN_HARD_ENABLE :: DWORD(0x00000004)
|
FILE_CACHE_MIN_HARD_ENABLE :: DWORD(0x00000004)
|
||||||
FILE_CACHE_MIN_HARD_DISABLE :: DWORD(0x00000008)
|
FILE_CACHE_MIN_HARD_DISABLE :: DWORD(0x00000008)
|
||||||
|
|
||||||
@(default_calling_convention="stdcall")
|
@(default_calling_convention="system")
|
||||||
foreign kernel32 {
|
foreign kernel32 {
|
||||||
GetSystemFileCacheSize :: proc(
|
GetSystemFileCacheSize :: proc(
|
||||||
lpMinimumFileCacheSize: PSIZE_T,
|
lpMinimumFileCacheSize: PSIZE_T,
|
||||||
@@ -770,7 +770,7 @@ WIN32_MEMORY_RANGE_ENTRY :: struct {
|
|||||||
|
|
||||||
PWIN32_MEMORY_RANGE_ENTRY :: ^WIN32_MEMORY_RANGE_ENTRY
|
PWIN32_MEMORY_RANGE_ENTRY :: ^WIN32_MEMORY_RANGE_ENTRY
|
||||||
|
|
||||||
@(default_calling_convention="stdcall")
|
@(default_calling_convention="system")
|
||||||
foreign kernel32 {
|
foreign kernel32 {
|
||||||
PrefetchVirtualMemory :: proc(
|
PrefetchVirtualMemory :: proc(
|
||||||
hProcess: HANDLE,
|
hProcess: HANDLE,
|
||||||
@@ -828,23 +828,23 @@ foreign kernel32 {
|
|||||||
|
|
||||||
MEHC_PATROL_SCRUBBER_PRESENT :: ULONG(0x1)
|
MEHC_PATROL_SCRUBBER_PRESENT :: ULONG(0x1)
|
||||||
|
|
||||||
@(default_calling_convention="stdcall")
|
@(default_calling_convention="system")
|
||||||
foreign kernel32 {
|
foreign kernel32 {
|
||||||
GetMemoryErrorHandlingCapabilities :: proc(
|
GetMemoryErrorHandlingCapabilities :: proc(
|
||||||
Capabilities: PULONG,
|
Capabilities: PULONG,
|
||||||
) -> BOOL ---
|
) -> BOOL ---
|
||||||
}
|
}
|
||||||
|
|
||||||
@(default_calling_convention="stdcall")
|
@(default_calling_convention="system")
|
||||||
foreign kernel32 {
|
foreign kernel32 {
|
||||||
GlobalMemoryStatusEx :: proc(
|
GlobalMemoryStatusEx :: proc(
|
||||||
lpBuffer: ^MEMORYSTATUSEX,
|
lpBuffer: ^MEMORYSTATUSEX,
|
||||||
) -> BOOL ---
|
) -> BOOL ---
|
||||||
}
|
}
|
||||||
|
|
||||||
PBAD_MEMORY_CALLBACK_ROUTINE :: #type proc "stdcall" ()
|
PBAD_MEMORY_CALLBACK_ROUTINE :: #type proc "system" ()
|
||||||
|
|
||||||
@(default_calling_convention="stdcall")
|
@(default_calling_convention="system")
|
||||||
foreign kernel32 {
|
foreign kernel32 {
|
||||||
RegisterBadMemoryNotification :: proc(
|
RegisterBadMemoryNotification :: proc(
|
||||||
Callback: PBAD_MEMORY_CALLBACK_ROUTINE,
|
Callback: PBAD_MEMORY_CALLBACK_ROUTINE,
|
||||||
@@ -865,7 +865,7 @@ VmOfferPriorityLow :: OFFER_PRIORITY.VmOfferPriorityLow
|
|||||||
VmOfferPriorityBelowNormal :: OFFER_PRIORITY.VmOfferPriorityBelowNormal
|
VmOfferPriorityBelowNormal :: OFFER_PRIORITY.VmOfferPriorityBelowNormal
|
||||||
VmOfferPriorityNormal :: OFFER_PRIORITY.VmOfferPriorityNormal
|
VmOfferPriorityNormal :: OFFER_PRIORITY.VmOfferPriorityNormal
|
||||||
|
|
||||||
@(default_calling_convention="stdcall")
|
@(default_calling_convention="system")
|
||||||
foreign kernel32 {
|
foreign kernel32 {
|
||||||
OfferVirtualMemory :: proc(
|
OfferVirtualMemory :: proc(
|
||||||
VirtualAddress: PVOID,
|
VirtualAddress: PVOID,
|
||||||
@@ -930,7 +930,7 @@ WIN32_MEMORY_REGION_INFORMATION_u_s_Bitfield :: distinct ULONG
|
|||||||
Reserved : 32-6,
|
Reserved : 32-6,
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
@(default_calling_convention="stdcall")
|
@(default_calling_convention="system")
|
||||||
foreign one_core {
|
foreign one_core {
|
||||||
QueryVirtualMemoryInformation :: proc(
|
QueryVirtualMemoryInformation :: proc(
|
||||||
Process: HANDLE,
|
Process: HANDLE,
|
||||||
@@ -955,7 +955,7 @@ foreign one_core {
|
|||||||
|
|
||||||
NUMA_NO_PREFERRED_NODE :: 0xffffffff
|
NUMA_NO_PREFERRED_NODE :: 0xffffffff
|
||||||
|
|
||||||
MapViewOfFile2 :: #force_inline proc "stdcall" (
|
MapViewOfFile2 :: #force_inline proc "system" (
|
||||||
FileMappingHandle: HANDLE,
|
FileMappingHandle: HANDLE,
|
||||||
ProcessHandle: HANDLE,
|
ProcessHandle: HANDLE,
|
||||||
Offset: ULONG64,
|
Offset: ULONG64,
|
||||||
@@ -976,7 +976,7 @@ MapViewOfFile2 :: #force_inline proc "stdcall" (
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@(default_calling_convention="stdcall")
|
@(default_calling_convention="system")
|
||||||
foreign kernel32 {
|
foreign kernel32 {
|
||||||
UnmapViewOfFile2 :: proc(
|
UnmapViewOfFile2 :: proc(
|
||||||
ProcessHandle: HANDLE,
|
ProcessHandle: HANDLE,
|
||||||
@@ -985,7 +985,7 @@ foreign kernel32 {
|
|||||||
) -> BOOL ---
|
) -> BOOL ---
|
||||||
}
|
}
|
||||||
|
|
||||||
@(default_calling_convention="stdcall")
|
@(default_calling_convention="system")
|
||||||
foreign kernel32 {
|
foreign kernel32 {
|
||||||
GetProductInfo :: proc(
|
GetProductInfo :: proc(
|
||||||
OSMajorVersion: DWORD,
|
OSMajorVersion: DWORD,
|
||||||
@@ -996,7 +996,7 @@ foreign kernel32 {
|
|||||||
) -> BOOL ---
|
) -> BOOL ---
|
||||||
}
|
}
|
||||||
|
|
||||||
HandlerRoutine :: proc "stdcall" (dwCtrlType: DWORD) -> BOOL
|
HandlerRoutine :: proc "system" (dwCtrlType: DWORD) -> BOOL
|
||||||
PHANDLER_ROUTINE :: HandlerRoutine
|
PHANDLER_ROUTINE :: HandlerRoutine
|
||||||
|
|
||||||
|
|
||||||
@@ -1137,16 +1137,16 @@ DCB :: struct {
|
|||||||
wReserved1: WORD,
|
wReserved1: WORD,
|
||||||
}
|
}
|
||||||
|
|
||||||
@(default_calling_convention="stdcall")
|
@(default_calling_convention="system")
|
||||||
foreign kernel32 {
|
foreign kernel32 {
|
||||||
GetCommState :: proc(handle: HANDLE, dcb: ^DCB) -> BOOL ---
|
GetCommState :: proc(handle: HANDLE, dcb: ^DCB) -> BOOL ---
|
||||||
SetCommState :: proc(handle: HANDLE, dcb: ^DCB) -> BOOL ---
|
SetCommState :: proc(handle: HANDLE, dcb: ^DCB) -> BOOL ---
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
LPFIBER_START_ROUTINE :: #type proc "stdcall" (lpFiberParameter: LPVOID)
|
LPFIBER_START_ROUTINE :: #type proc "system" (lpFiberParameter: LPVOID)
|
||||||
|
|
||||||
@(default_calling_convention = "stdcall")
|
@(default_calling_convention = "system")
|
||||||
foreign kernel32 {
|
foreign kernel32 {
|
||||||
CreateFiber :: proc(dwStackSize: SIZE_T, lpStartAddress: LPFIBER_START_ROUTINE, lpParameter: LPVOID) -> LPVOID ---
|
CreateFiber :: proc(dwStackSize: SIZE_T, lpStartAddress: LPFIBER_START_ROUTINE, lpParameter: LPVOID) -> LPVOID ---
|
||||||
DeleteFiber :: proc(lpFiber: LPVOID) ---
|
DeleteFiber :: proc(lpFiber: LPVOID) ---
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package sys_windows
|
|||||||
|
|
||||||
foreign import netapi32 "system:Netapi32.lib"
|
foreign import netapi32 "system:Netapi32.lib"
|
||||||
|
|
||||||
@(default_calling_convention="stdcall")
|
@(default_calling_convention="system")
|
||||||
foreign netapi32 {
|
foreign netapi32 {
|
||||||
NetUserAdd :: proc(
|
NetUserAdd :: proc(
|
||||||
servername: wstring,
|
servername: wstring,
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package sys_windows
|
|||||||
|
|
||||||
foreign import ntdll_lib "system:ntdll.lib"
|
foreign import ntdll_lib "system:ntdll.lib"
|
||||||
|
|
||||||
@(default_calling_convention="stdcall")
|
@(default_calling_convention="system")
|
||||||
foreign ntdll_lib {
|
foreign ntdll_lib {
|
||||||
RtlGetVersion :: proc(lpVersionInformation: ^OSVERSIONINFOEXW) -> NTSTATUS ---
|
RtlGetVersion :: proc(lpVersionInformation: ^OSVERSIONINFOEXW) -> NTSTATUS ---
|
||||||
}
|
}
|
||||||
@@ -14,14 +14,14 @@ IUnknown :: struct {
|
|||||||
using Vtbl: ^IUnknownVtbl,
|
using Vtbl: ^IUnknownVtbl,
|
||||||
}
|
}
|
||||||
IUnknownVtbl :: struct {
|
IUnknownVtbl :: struct {
|
||||||
QueryInterface: proc "stdcall" (This: ^IUnknown, riid: REFIID, ppvObject: ^rawptr) -> HRESULT,
|
QueryInterface: proc "system" (This: ^IUnknown, riid: REFIID, ppvObject: ^rawptr) -> HRESULT,
|
||||||
AddRef: proc "stdcall" (This: ^IUnknown) -> ULONG,
|
AddRef: proc "system" (This: ^IUnknown) -> ULONG,
|
||||||
Release: proc "stdcall" (This: ^IUnknown) -> ULONG,
|
Release: proc "system" (This: ^IUnknown) -> ULONG,
|
||||||
}
|
}
|
||||||
|
|
||||||
LPUNKNOWN :: ^IUnknown
|
LPUNKNOWN :: ^IUnknown
|
||||||
|
|
||||||
@(default_calling_convention="stdcall")
|
@(default_calling_convention="system")
|
||||||
foreign Ole32 {
|
foreign Ole32 {
|
||||||
CoInitializeEx :: proc(reserved: rawptr, co_init: COINIT) -> HRESULT ---
|
CoInitializeEx :: proc(reserved: rawptr, co_init: COINIT) -> HRESULT ---
|
||||||
CoUninitialize :: proc() ---
|
CoUninitialize :: proc() ---
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package sys_windows
|
|||||||
|
|
||||||
foreign import shell32 "system:Shell32.lib"
|
foreign import shell32 "system:Shell32.lib"
|
||||||
|
|
||||||
@(default_calling_convention="stdcall")
|
@(default_calling_convention="system")
|
||||||
foreign shell32 {
|
foreign shell32 {
|
||||||
CommandLineToArgvW :: proc(cmd_list: wstring, num_args: ^c_int) -> ^wstring ---
|
CommandLineToArgvW :: proc(cmd_list: wstring, num_args: ^c_int) -> ^wstring ---
|
||||||
ShellExecuteW :: proc(
|
ShellExecuteW :: proc(
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package sys_windows
|
|||||||
|
|
||||||
foreign import shlwapi "system:shlwapi.lib"
|
foreign import shlwapi "system:shlwapi.lib"
|
||||||
|
|
||||||
@(default_calling_convention="stdcall")
|
@(default_calling_convention="system")
|
||||||
foreign shlwapi {
|
foreign shlwapi {
|
||||||
PathFileExistsW :: proc(pszPath: wstring) -> BOOL ---
|
PathFileExistsW :: proc(pszPath: wstring) -> BOOL ---
|
||||||
PathFindExtensionW :: proc(pszPath: wstring) -> wstring ---
|
PathFindExtensionW :: proc(pszPath: wstring) -> wstring ---
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package sys_windows
|
|||||||
|
|
||||||
foreign import Synchronization "system:Synchronization.lib"
|
foreign import Synchronization "system:Synchronization.lib"
|
||||||
|
|
||||||
@(default_calling_convention="stdcall")
|
@(default_calling_convention="system")
|
||||||
foreign Synchronization {
|
foreign Synchronization {
|
||||||
WaitOnAddress :: proc(Address: PVOID, CompareAddress: PVOID, AddressSize: SIZE_T, dwMilliseconds: DWORD) -> BOOL ---
|
WaitOnAddress :: proc(Address: PVOID, CompareAddress: PVOID, AddressSize: SIZE_T, dwMilliseconds: DWORD) -> BOOL ---
|
||||||
WakeByAddressSingle :: proc(Address: PVOID) ---
|
WakeByAddressSingle :: proc(Address: PVOID) ---
|
||||||
|
|||||||
+161
-161
@@ -691,13 +691,13 @@ FW_DEMIBOLD :: FW_SEMIBOLD
|
|||||||
FW_ULTRABOLD :: FW_EXTRABOLD
|
FW_ULTRABOLD :: FW_EXTRABOLD
|
||||||
FW_BLACK :: FW_HEAVY
|
FW_BLACK :: FW_HEAVY
|
||||||
|
|
||||||
PTIMERAPCROUTINE :: #type proc "stdcall" (lpArgToCompletionRoutine: LPVOID, dwTimerLowValue, dwTimerHighValue: DWORD)
|
PTIMERAPCROUTINE :: #type proc "system" (lpArgToCompletionRoutine: LPVOID, dwTimerLowValue, dwTimerHighValue: DWORD)
|
||||||
|
|
||||||
TIMERPROC :: #type proc "stdcall" (HWND, UINT, UINT_PTR, DWORD)
|
TIMERPROC :: #type proc "system" (HWND, UINT, UINT_PTR, DWORD)
|
||||||
|
|
||||||
WNDPROC :: #type proc "stdcall" (HWND, UINT, WPARAM, LPARAM) -> LRESULT
|
WNDPROC :: #type proc "system" (HWND, UINT, WPARAM, LPARAM) -> LRESULT
|
||||||
|
|
||||||
HOOKPROC :: #type proc "stdcall" (code: c_int, wParam: WPARAM, lParam: LPARAM) -> LRESULT
|
HOOKPROC :: #type proc "system" (code: c_int, wParam: WPARAM, lParam: LPARAM) -> LRESULT
|
||||||
|
|
||||||
CWPRETSTRUCT :: struct {
|
CWPRETSTRUCT :: struct {
|
||||||
lResult: LRESULT,
|
lResult: LRESULT,
|
||||||
@@ -2324,7 +2324,7 @@ MOUNT_POINT_REPARSE_BUFFER :: struct {
|
|||||||
PathBuffer: WCHAR,
|
PathBuffer: WCHAR,
|
||||||
}
|
}
|
||||||
|
|
||||||
LPPROGRESS_ROUTINE :: #type proc "stdcall" (
|
LPPROGRESS_ROUTINE :: #type proc "system" (
|
||||||
TotalFileSize: LARGE_INTEGER,
|
TotalFileSize: LARGE_INTEGER,
|
||||||
TotalBytesTransferred: LARGE_INTEGER,
|
TotalBytesTransferred: LARGE_INTEGER,
|
||||||
StreamSize: LARGE_INTEGER,
|
StreamSize: LARGE_INTEGER,
|
||||||
@@ -2494,7 +2494,7 @@ OVERLAPPED_ENTRY :: struct {
|
|||||||
dwNumberOfBytesTransferred: DWORD,
|
dwNumberOfBytesTransferred: DWORD,
|
||||||
}
|
}
|
||||||
|
|
||||||
LPOVERLAPPED_COMPLETION_ROUTINE :: #type proc "stdcall" (
|
LPOVERLAPPED_COMPLETION_ROUTINE :: #type proc "system" (
|
||||||
dwErrorCode: DWORD,
|
dwErrorCode: DWORD,
|
||||||
dwNumberOfBytesTransfered: DWORD,
|
dwNumberOfBytesTransfered: DWORD,
|
||||||
lpOverlapped: LPOVERLAPPED,
|
lpOverlapped: LPOVERLAPPED,
|
||||||
@@ -2558,7 +2558,7 @@ EXCEPTION_POINTERS :: struct {
|
|||||||
ContextRecord: ^CONTEXT,
|
ContextRecord: ^CONTEXT,
|
||||||
}
|
}
|
||||||
|
|
||||||
PVECTORED_EXCEPTION_HANDLER :: #type proc "stdcall" (ExceptionInfo: ^EXCEPTION_POINTERS) -> LONG
|
PVECTORED_EXCEPTION_HANDLER :: #type proc "system" (ExceptionInfo: ^EXCEPTION_POINTERS) -> LONG
|
||||||
|
|
||||||
CONSOLE_READCONSOLE_CONTROL :: struct {
|
CONSOLE_READCONSOLE_CONTROL :: struct {
|
||||||
nLength: ULONG,
|
nLength: ULONG,
|
||||||
@@ -2613,7 +2613,7 @@ ADDRINFOEXW :: struct {
|
|||||||
ai_next: ^ADDRINFOEXW,
|
ai_next: ^ADDRINFOEXW,
|
||||||
}
|
}
|
||||||
|
|
||||||
LPLOOKUPSERVICE_COMPLETION_ROUTINE :: #type proc "stdcall" (
|
LPLOOKUPSERVICE_COMPLETION_ROUTINE :: #type proc "system" (
|
||||||
dwErrorCode: DWORD,
|
dwErrorCode: DWORD,
|
||||||
dwNumberOfBytesTransfered: DWORD,
|
dwNumberOfBytesTransfered: DWORD,
|
||||||
lpOverlapped: LPOVERLAPPED,
|
lpOverlapped: LPOVERLAPPED,
|
||||||
@@ -3427,7 +3427,7 @@ IModalWindow :: struct #raw_union {
|
|||||||
}
|
}
|
||||||
IModalWindowVtbl :: struct {
|
IModalWindowVtbl :: struct {
|
||||||
using IUnknownVtbl: IUnknownVtbl,
|
using IUnknownVtbl: IUnknownVtbl,
|
||||||
Show: proc "stdcall" (this: ^IModalWindow, hwndOwner: HWND) -> HRESULT,
|
Show: proc "system" (this: ^IModalWindow, hwndOwner: HWND) -> HRESULT,
|
||||||
}
|
}
|
||||||
|
|
||||||
ISequentialStream :: struct #raw_union {
|
ISequentialStream :: struct #raw_union {
|
||||||
@@ -3436,8 +3436,8 @@ ISequentialStream :: struct #raw_union {
|
|||||||
}
|
}
|
||||||
ISequentialStreamVtbl :: struct {
|
ISequentialStreamVtbl :: struct {
|
||||||
using IUnknownVtbl: IUnknownVtbl,
|
using IUnknownVtbl: IUnknownVtbl,
|
||||||
Read: proc "stdcall" (this: ^ISequentialStream, pv: rawptr, cb: ULONG, pcbRead: ^ULONG) -> HRESULT,
|
Read: proc "system" (this: ^ISequentialStream, pv: rawptr, cb: ULONG, pcbRead: ^ULONG) -> HRESULT,
|
||||||
Write: proc "stdcall" (this: ^ISequentialStream, pv: rawptr, cb: ULONG, pcbWritten: ^ULONG) -> HRESULT,
|
Write: proc "system" (this: ^ISequentialStream, pv: rawptr, cb: ULONG, pcbWritten: ^ULONG) -> HRESULT,
|
||||||
}
|
}
|
||||||
|
|
||||||
IStream :: struct #raw_union {
|
IStream :: struct #raw_union {
|
||||||
@@ -3446,15 +3446,15 @@ IStream :: struct #raw_union {
|
|||||||
}
|
}
|
||||||
IStreamVtbl :: struct {
|
IStreamVtbl :: struct {
|
||||||
using ISequentialStreamVtbl: ISequentialStreamVtbl,
|
using ISequentialStreamVtbl: ISequentialStreamVtbl,
|
||||||
Seek: proc "stdcall" (this: ^IStream, dlibMove: LARGE_INTEGER, dwOrigin: DWORD, plibNewPosition: ^ULARGE_INTEGER) -> HRESULT,
|
Seek: proc "system" (this: ^IStream, dlibMove: LARGE_INTEGER, dwOrigin: DWORD, plibNewPosition: ^ULARGE_INTEGER) -> HRESULT,
|
||||||
SetSize: proc "stdcall" (this: ^IStream, libNewSize: ULARGE_INTEGER) -> HRESULT,
|
SetSize: proc "system" (this: ^IStream, libNewSize: ULARGE_INTEGER) -> HRESULT,
|
||||||
CopyTo: proc "stdcall" (this: ^IStream, pstm: ^IStream, cb: ULARGE_INTEGER, pcbRead: ^ULARGE_INTEGER, pcbWritten: ^ULARGE_INTEGER) -> HRESULT,
|
CopyTo: proc "system" (this: ^IStream, pstm: ^IStream, cb: ULARGE_INTEGER, pcbRead: ^ULARGE_INTEGER, pcbWritten: ^ULARGE_INTEGER) -> HRESULT,
|
||||||
Commit: proc "stdcall" (this: ^IStream, grfCommitFlags: DWORD) -> HRESULT,
|
Commit: proc "system" (this: ^IStream, grfCommitFlags: DWORD) -> HRESULT,
|
||||||
Revert: proc "stdcall" (this: ^IStream) -> HRESULT,
|
Revert: proc "system" (this: ^IStream) -> HRESULT,
|
||||||
LockRegion: proc "stdcall" (this: ^IStream, libOffset: ULARGE_INTEGER, cb: ULARGE_INTEGER, dwLockType: DWORD) -> HRESULT,
|
LockRegion: proc "system" (this: ^IStream, libOffset: ULARGE_INTEGER, cb: ULARGE_INTEGER, dwLockType: DWORD) -> HRESULT,
|
||||||
UnlockRegion: proc "stdcall" (this: ^IStream, libOffset: ULARGE_INTEGER, cb: ULARGE_INTEGER, dwLockType: DWORD) -> HRESULT,
|
UnlockRegion: proc "system" (this: ^IStream, libOffset: ULARGE_INTEGER, cb: ULARGE_INTEGER, dwLockType: DWORD) -> HRESULT,
|
||||||
Stat: proc "stdcall" (this: ^IStream, pstatstg: ^STATSTG, grfStatFlag: DWORD) -> HRESULT,
|
Stat: proc "system" (this: ^IStream, pstatstg: ^STATSTG, grfStatFlag: DWORD) -> HRESULT,
|
||||||
Clone: proc "stdcall" (this: ^IStream, ppstm: ^^IStream) -> HRESULT,
|
Clone: proc "system" (this: ^IStream, ppstm: ^^IStream) -> HRESULT,
|
||||||
}
|
}
|
||||||
|
|
||||||
IPersist :: struct #raw_union {
|
IPersist :: struct #raw_union {
|
||||||
@@ -3463,7 +3463,7 @@ IPersist :: struct #raw_union {
|
|||||||
}
|
}
|
||||||
IPersistVtbl :: struct {
|
IPersistVtbl :: struct {
|
||||||
using IUnknownVtbl: IUnknownVtbl,
|
using IUnknownVtbl: IUnknownVtbl,
|
||||||
GetClassID: proc "stdcall" (this: ^IPersist, pClassID: ^CLSID) -> HRESULT,
|
GetClassID: proc "system" (this: ^IPersist, pClassID: ^CLSID) -> HRESULT,
|
||||||
}
|
}
|
||||||
|
|
||||||
IPersistStream :: struct #raw_union {
|
IPersistStream :: struct #raw_union {
|
||||||
@@ -3472,10 +3472,10 @@ IPersistStream :: struct #raw_union {
|
|||||||
}
|
}
|
||||||
IPersistStreamVtbl :: struct {
|
IPersistStreamVtbl :: struct {
|
||||||
using IPersistVtbl: IPersistVtbl,
|
using IPersistVtbl: IPersistVtbl,
|
||||||
IsDirty: proc "stdcall" (this: ^IPersistStream) -> HRESULT,
|
IsDirty: proc "system" (this: ^IPersistStream) -> HRESULT,
|
||||||
Load: proc "stdcall" (this: ^IPersistStream, pStm: ^IStream) -> HRESULT,
|
Load: proc "system" (this: ^IPersistStream, pStm: ^IStream) -> HRESULT,
|
||||||
Save: proc "stdcall" (this: ^IPersistStream, pStm: ^IStream, fClearDirty: BOOL) -> HRESULT,
|
Save: proc "system" (this: ^IPersistStream, pStm: ^IStream, fClearDirty: BOOL) -> HRESULT,
|
||||||
GetSizeMax: proc "stdcall" (this: ^IPersistStream, pcbSize: ^ULARGE_INTEGER) -> HRESULT,
|
GetSizeMax: proc "system" (this: ^IPersistStream, pcbSize: ^ULARGE_INTEGER) -> HRESULT,
|
||||||
}
|
}
|
||||||
|
|
||||||
IMoniker :: struct #raw_union {
|
IMoniker :: struct #raw_union {
|
||||||
@@ -3484,21 +3484,21 @@ IMoniker :: struct #raw_union {
|
|||||||
}
|
}
|
||||||
IMonikerVtbl :: struct {
|
IMonikerVtbl :: struct {
|
||||||
using IPersistStreamVtbl: IPersistStreamVtbl,
|
using IPersistStreamVtbl: IPersistStreamVtbl,
|
||||||
BindToObject: proc "stdcall" (this: ^IMoniker, pbc: ^IBindCtx, pmkToLeft: ^IMoniker, riidResult: REFIID, ppvResult: ^rawptr) -> HRESULT,
|
BindToObject: proc "system" (this: ^IMoniker, pbc: ^IBindCtx, pmkToLeft: ^IMoniker, riidResult: REFIID, ppvResult: ^rawptr) -> HRESULT,
|
||||||
BindToStorage: proc "stdcall" (this: ^IMoniker, pbc: ^IBindCtx, pmkToLeft: ^IMoniker, riid: REFIID, ppvObj: ^rawptr) -> HRESULT,
|
BindToStorage: proc "system" (this: ^IMoniker, pbc: ^IBindCtx, pmkToLeft: ^IMoniker, riid: REFIID, ppvObj: ^rawptr) -> HRESULT,
|
||||||
Reduce: proc "stdcall" (this: ^IMoniker, pbc: ^IBindCtx, dwReduceHowFar: DWORD, ppmkToLeft: ^^IMoniker, ppmkReduced: ^^IMoniker) -> HRESULT,
|
Reduce: proc "system" (this: ^IMoniker, pbc: ^IBindCtx, dwReduceHowFar: DWORD, ppmkToLeft: ^^IMoniker, ppmkReduced: ^^IMoniker) -> HRESULT,
|
||||||
ComposeWith: proc "stdcall" (this: ^IMoniker, pmkRight: ^IMoniker, fOnlyIfNotGeneric: BOOL, ppmkComposite: ^^IMoniker) -> HRESULT,
|
ComposeWith: proc "system" (this: ^IMoniker, pmkRight: ^IMoniker, fOnlyIfNotGeneric: BOOL, ppmkComposite: ^^IMoniker) -> HRESULT,
|
||||||
Enum: proc "stdcall" (this: ^IMoniker, fForward: BOOL, ppenumMoniker: ^^IEnumMoniker) -> HRESULT,
|
Enum: proc "system" (this: ^IMoniker, fForward: BOOL, ppenumMoniker: ^^IEnumMoniker) -> HRESULT,
|
||||||
IsEqual: proc "stdcall" (this: ^IMoniker, pmkOtherMoniker: ^IMoniker) -> HRESULT,
|
IsEqual: proc "system" (this: ^IMoniker, pmkOtherMoniker: ^IMoniker) -> HRESULT,
|
||||||
Hash: proc "stdcall" (this: ^IMoniker, pdwHash: ^DWORD) -> HRESULT,
|
Hash: proc "system" (this: ^IMoniker, pdwHash: ^DWORD) -> HRESULT,
|
||||||
IsRunning: proc "stdcall" (this: ^IMoniker, pbc: ^IBindCtx, pmkToLeft: ^IMoniker, pmkNewlyRunning: ^IMoniker) -> HRESULT,
|
IsRunning: proc "system" (this: ^IMoniker, pbc: ^IBindCtx, pmkToLeft: ^IMoniker, pmkNewlyRunning: ^IMoniker) -> HRESULT,
|
||||||
GetTimeOfLastChange: proc "stdcall" (this: ^IMoniker, pbc: ^IBindCtx, pmkToLeft: ^IMoniker, pFileTime: ^FILETIME) -> HRESULT,
|
GetTimeOfLastChange: proc "system" (this: ^IMoniker, pbc: ^IBindCtx, pmkToLeft: ^IMoniker, pFileTime: ^FILETIME) -> HRESULT,
|
||||||
Inverse: proc "stdcall" (this: ^IMoniker, ppmk: ^^IMoniker) -> HRESULT,
|
Inverse: proc "system" (this: ^IMoniker, ppmk: ^^IMoniker) -> HRESULT,
|
||||||
CommonPrefixWith: proc "stdcall" (this: ^IMoniker, pmkOther: ^IMoniker, ppmkPrefix: ^^IMoniker) -> HRESULT,
|
CommonPrefixWith: proc "system" (this: ^IMoniker, pmkOther: ^IMoniker, ppmkPrefix: ^^IMoniker) -> HRESULT,
|
||||||
RelativePathTo: proc "stdcall" (this: ^IMoniker, pmkOther: ^IMoniker, ppmkRelPath: ^^IMoniker) -> HRESULT,
|
RelativePathTo: proc "system" (this: ^IMoniker, pmkOther: ^IMoniker, ppmkRelPath: ^^IMoniker) -> HRESULT,
|
||||||
GetDisplayName: proc "stdcall" (this: ^IMoniker, pbc: ^IBindCtx, pmkToLeft: ^IMoniker, ppszDisplayName: ^LPOLESTR) -> HRESULT,
|
GetDisplayName: proc "system" (this: ^IMoniker, pbc: ^IBindCtx, pmkToLeft: ^IMoniker, ppszDisplayName: ^LPOLESTR) -> HRESULT,
|
||||||
ParseDisplayName: proc "stdcall" (this: ^IMoniker, pbc: ^IBindCtx, pmkToLeft: ^IMoniker, pszDisplayName: LPOLESTR, pchEaten: ^ULONG, ppmkOut: ^^IMoniker) -> HRESULT,
|
ParseDisplayName: proc "system" (this: ^IMoniker, pbc: ^IBindCtx, pmkToLeft: ^IMoniker, pszDisplayName: LPOLESTR, pchEaten: ^ULONG, ppmkOut: ^^IMoniker) -> HRESULT,
|
||||||
IsSystemMoniker: proc "stdcall" (this: ^IMoniker, pdwMksys: ^DWORD) -> HRESULT,
|
IsSystemMoniker: proc "system" (this: ^IMoniker, pdwMksys: ^DWORD) -> HRESULT,
|
||||||
}
|
}
|
||||||
|
|
||||||
IEnumMoniker :: struct #raw_union {
|
IEnumMoniker :: struct #raw_union {
|
||||||
@@ -3507,10 +3507,10 @@ IEnumMoniker :: struct #raw_union {
|
|||||||
}
|
}
|
||||||
IEnumMonikerVtbl :: struct {
|
IEnumMonikerVtbl :: struct {
|
||||||
using IUnknownVtbl: IUnknownVtbl,
|
using IUnknownVtbl: IUnknownVtbl,
|
||||||
Next: proc "stdcall" (this: ^IEnumMoniker, celt: ULONG, rgelt: ^^IMoniker, pceltFetched: ^ULONG) -> HRESULT,
|
Next: proc "system" (this: ^IEnumMoniker, celt: ULONG, rgelt: ^^IMoniker, pceltFetched: ^ULONG) -> HRESULT,
|
||||||
Skip: proc "stdcall" (this: ^IEnumMoniker, celt: ULONG) -> HRESULT,
|
Skip: proc "system" (this: ^IEnumMoniker, celt: ULONG) -> HRESULT,
|
||||||
Reset: proc "stdcall" (this: ^IEnumMoniker) -> HRESULT,
|
Reset: proc "system" (this: ^IEnumMoniker) -> HRESULT,
|
||||||
Clone: proc "stdcall" (this: ^IEnumMoniker, ppenum: ^^IEnumMoniker) -> HRESULT,
|
Clone: proc "system" (this: ^IEnumMoniker, ppenum: ^^IEnumMoniker) -> HRESULT,
|
||||||
}
|
}
|
||||||
|
|
||||||
IRunningObjectTable :: struct #raw_union {
|
IRunningObjectTable :: struct #raw_union {
|
||||||
@@ -3519,13 +3519,13 @@ IRunningObjectTable :: struct #raw_union {
|
|||||||
}
|
}
|
||||||
IRunningObjectTableVtbl :: struct {
|
IRunningObjectTableVtbl :: struct {
|
||||||
using IUnknownVtbl: IUnknownVtbl,
|
using IUnknownVtbl: IUnknownVtbl,
|
||||||
Register: proc "stdcall" (this: ^IRunningObjectTable, grfFlags: DWORD, punkObject: ^IUnknown, pmkObjectName: ^IMoniker, pdwRegister: ^DWORD) -> HRESULT,
|
Register: proc "system" (this: ^IRunningObjectTable, grfFlags: DWORD, punkObject: ^IUnknown, pmkObjectName: ^IMoniker, pdwRegister: ^DWORD) -> HRESULT,
|
||||||
Revoke: proc "stdcall" (this: ^IRunningObjectTable, dwRegister: DWORD) -> HRESULT,
|
Revoke: proc "system" (this: ^IRunningObjectTable, dwRegister: DWORD) -> HRESULT,
|
||||||
IsRunning: proc "stdcall" (this: ^IRunningObjectTable, pmkObjectName: ^IMoniker) -> HRESULT,
|
IsRunning: proc "system" (this: ^IRunningObjectTable, pmkObjectName: ^IMoniker) -> HRESULT,
|
||||||
GetObject: proc "stdcall" (this: ^IRunningObjectTable, pmkObjectName: ^IMoniker, ppunkObject: ^^IUnknown) -> HRESULT,
|
GetObject: proc "system" (this: ^IRunningObjectTable, pmkObjectName: ^IMoniker, ppunkObject: ^^IUnknown) -> HRESULT,
|
||||||
NoteChangeTime: proc "stdcall" (this: ^IRunningObjectTable, dwRegister: DWORD, pfiletime: ^FILETIME) -> HRESULT,
|
NoteChangeTime: proc "system" (this: ^IRunningObjectTable, dwRegister: DWORD, pfiletime: ^FILETIME) -> HRESULT,
|
||||||
GetTimeOfLastChange: proc "stdcall" (this: ^IRunningObjectTable, pmkObjectName: ^IMoniker, pfiletime: ^FILETIME) -> HRESULT,
|
GetTimeOfLastChange: proc "system" (this: ^IRunningObjectTable, pmkObjectName: ^IMoniker, pfiletime: ^FILETIME) -> HRESULT,
|
||||||
EnumRunning: proc "stdcall" (this: ^IRunningObjectTable, ppenumMoniker: ^^IEnumMoniker) -> HRESULT,
|
EnumRunning: proc "system" (this: ^IRunningObjectTable, ppenumMoniker: ^^IEnumMoniker) -> HRESULT,
|
||||||
}
|
}
|
||||||
|
|
||||||
IEnumString :: struct #raw_union {
|
IEnumString :: struct #raw_union {
|
||||||
@@ -3534,10 +3534,10 @@ IEnumString :: struct #raw_union {
|
|||||||
}
|
}
|
||||||
IEnumStringVtbl :: struct {
|
IEnumStringVtbl :: struct {
|
||||||
using IUnknownVtbl: IUnknownVtbl,
|
using IUnknownVtbl: IUnknownVtbl,
|
||||||
Next: proc "stdcall" (this: ^IEnumString, celt: ULONG, rgelt: ^LPOLESTR, pceltFetched: ^ULONG) -> HRESULT,
|
Next: proc "system" (this: ^IEnumString, celt: ULONG, rgelt: ^LPOLESTR, pceltFetched: ^ULONG) -> HRESULT,
|
||||||
Skip: proc "stdcall" (this: ^IEnumString, celt: ULONG) -> HRESULT,
|
Skip: proc "system" (this: ^IEnumString, celt: ULONG) -> HRESULT,
|
||||||
Reset: proc "stdcall" (this: ^IEnumString) -> HRESULT,
|
Reset: proc "system" (this: ^IEnumString) -> HRESULT,
|
||||||
Clone: proc "stdcall" (this: ^IEnumString, ppenum: ^^IEnumString) -> HRESULT,
|
Clone: proc "system" (this: ^IEnumString, ppenum: ^^IEnumString) -> HRESULT,
|
||||||
}
|
}
|
||||||
|
|
||||||
IBindCtx :: struct #raw_union {
|
IBindCtx :: struct #raw_union {
|
||||||
@@ -3546,16 +3546,16 @@ IBindCtx :: struct #raw_union {
|
|||||||
}
|
}
|
||||||
IBindCtxVtbl :: struct {
|
IBindCtxVtbl :: struct {
|
||||||
using IUnknownVtbl: IUnknownVtbl,
|
using IUnknownVtbl: IUnknownVtbl,
|
||||||
RegisterObjectBound: proc "stdcall" (this: ^IBindCtx, punk: ^IUnknown) -> HRESULT,
|
RegisterObjectBound: proc "system" (this: ^IBindCtx, punk: ^IUnknown) -> HRESULT,
|
||||||
RevokeObjectBound: proc "stdcall" (this: ^IBindCtx, punk: ^IUnknown) -> HRESULT,
|
RevokeObjectBound: proc "system" (this: ^IBindCtx, punk: ^IUnknown) -> HRESULT,
|
||||||
ReleaseBoundObjects: proc "stdcall" (this: ^IBindCtx) -> HRESULT,
|
ReleaseBoundObjects: proc "system" (this: ^IBindCtx) -> HRESULT,
|
||||||
SetBindOptions: proc "stdcall" (this: ^IBindCtx, pbindopts: ^BIND_OPTS) -> HRESULT,
|
SetBindOptions: proc "system" (this: ^IBindCtx, pbindopts: ^BIND_OPTS) -> HRESULT,
|
||||||
GetBindOptions: proc "stdcall" (this: ^IBindCtx, pbindopts: ^BIND_OPTS) -> HRESULT,
|
GetBindOptions: proc "system" (this: ^IBindCtx, pbindopts: ^BIND_OPTS) -> HRESULT,
|
||||||
GetRunningObjectTable: proc "stdcall" (this: ^IBindCtx, pprot: ^^IRunningObjectTable) -> HRESULT,
|
GetRunningObjectTable: proc "system" (this: ^IBindCtx, pprot: ^^IRunningObjectTable) -> HRESULT,
|
||||||
RegisterObjectParam: proc "stdcall" (this: ^IBindCtx, pszKey: LPOLESTR, punk: ^IUnknown) -> HRESULT,
|
RegisterObjectParam: proc "system" (this: ^IBindCtx, pszKey: LPOLESTR, punk: ^IUnknown) -> HRESULT,
|
||||||
GetObjectParam: proc "stdcall" (this: ^IBindCtx, pszKey: LPOLESTR, ppunk: ^^IUnknown) -> HRESULT,
|
GetObjectParam: proc "system" (this: ^IBindCtx, pszKey: LPOLESTR, ppunk: ^^IUnknown) -> HRESULT,
|
||||||
EnumObjectParam: proc "stdcall" (this: ^IBindCtx, ppenum: ^^IEnumString) -> HRESULT,
|
EnumObjectParam: proc "system" (this: ^IBindCtx, ppenum: ^^IEnumString) -> HRESULT,
|
||||||
RevokeObjectParam: proc "stdcall" (this: ^IBindCtx, pszKey: LPOLESTR) -> HRESULT,
|
RevokeObjectParam: proc "system" (this: ^IBindCtx, pszKey: LPOLESTR) -> HRESULT,
|
||||||
}
|
}
|
||||||
|
|
||||||
IEnumShellItems :: struct #raw_union {
|
IEnumShellItems :: struct #raw_union {
|
||||||
@@ -3564,10 +3564,10 @@ IEnumShellItems :: struct #raw_union {
|
|||||||
}
|
}
|
||||||
IEnumShellItemsVtbl :: struct {
|
IEnumShellItemsVtbl :: struct {
|
||||||
using IUnknownVtbl: IUnknownVtbl,
|
using IUnknownVtbl: IUnknownVtbl,
|
||||||
Next: proc "stdcall" (this: ^IEnumShellItems, celt: ULONG, rgelt: ^^IShellItem, pceltFetched: ^ULONG) -> HRESULT,
|
Next: proc "system" (this: ^IEnumShellItems, celt: ULONG, rgelt: ^^IShellItem, pceltFetched: ^ULONG) -> HRESULT,
|
||||||
Skip: proc "stdcall" (this: ^IEnumShellItems, celt: ULONG) -> HRESULT,
|
Skip: proc "system" (this: ^IEnumShellItems, celt: ULONG) -> HRESULT,
|
||||||
Reset: proc "stdcall" (this: ^IEnumShellItems) -> HRESULT,
|
Reset: proc "system" (this: ^IEnumShellItems) -> HRESULT,
|
||||||
Clone: proc "stdcall" (this: ^IEnumShellItems, ppenum: ^^IEnumShellItems) -> HRESULT,
|
Clone: proc "system" (this: ^IEnumShellItems, ppenum: ^^IEnumShellItems) -> HRESULT,
|
||||||
}
|
}
|
||||||
|
|
||||||
IShellItem :: struct #raw_union {
|
IShellItem :: struct #raw_union {
|
||||||
@@ -3576,11 +3576,11 @@ IShellItem :: struct #raw_union {
|
|||||||
}
|
}
|
||||||
IShellItemVtbl :: struct {
|
IShellItemVtbl :: struct {
|
||||||
using IUnknownVtbl: IUnknownVtbl,
|
using IUnknownVtbl: IUnknownVtbl,
|
||||||
BindToHandler: proc "stdcall" (this: ^IShellItem, pbc: ^IBindCtx, bhid: REFGUID, riid: REFIID, ppv: ^rawptr) -> HRESULT,
|
BindToHandler: proc "system" (this: ^IShellItem, pbc: ^IBindCtx, bhid: REFGUID, riid: REFIID, ppv: ^rawptr) -> HRESULT,
|
||||||
GetParent: proc "stdcall" (this: ^IShellItem, ppsiFolder: ^^IShellItem) -> HRESULT,
|
GetParent: proc "system" (this: ^IShellItem, ppsiFolder: ^^IShellItem) -> HRESULT,
|
||||||
GetDisplayName: proc "stdcall" (this: ^IShellItem, sigdnName: SIGDN, ppszName: ^LPWSTR) -> HRESULT,
|
GetDisplayName: proc "system" (this: ^IShellItem, sigdnName: SIGDN, ppszName: ^LPWSTR) -> HRESULT,
|
||||||
GetAttributes: proc "stdcall" (this: ^IShellItem, sfgaoMask: SFGAOF, psfgaoAttribs: ^SFGAOF) -> HRESULT,
|
GetAttributes: proc "system" (this: ^IShellItem, sfgaoMask: SFGAOF, psfgaoAttribs: ^SFGAOF) -> HRESULT,
|
||||||
Compare: proc "stdcall" (this: ^IShellItem, psi: ^IShellItem, hint: SICHINTF, piOrder: ^c_int) -> HRESULT,
|
Compare: proc "system" (this: ^IShellItem, psi: ^IShellItem, hint: SICHINTF, piOrder: ^c_int) -> HRESULT,
|
||||||
}
|
}
|
||||||
|
|
||||||
IShellItemArray :: struct #raw_union {
|
IShellItemArray :: struct #raw_union {
|
||||||
@@ -3589,13 +3589,13 @@ IShellItemArray :: struct #raw_union {
|
|||||||
}
|
}
|
||||||
IShellItemArrayVtbl :: struct {
|
IShellItemArrayVtbl :: struct {
|
||||||
using IUnknownVtbl: IUnknownVtbl,
|
using IUnknownVtbl: IUnknownVtbl,
|
||||||
BindToHandler: proc "stdcall" (this: ^IShellItemArray, pbc: ^IBindCtx, bhid: REFGUID, riid: REFIID, ppvOut: ^rawptr) -> HRESULT,
|
BindToHandler: proc "system" (this: ^IShellItemArray, pbc: ^IBindCtx, bhid: REFGUID, riid: REFIID, ppvOut: ^rawptr) -> HRESULT,
|
||||||
GetPropertyStore: proc "stdcall" (this: ^IShellItemArray, flags: GETPROPERTYSTOREFLAGS, riid: REFIID, ppv: ^rawptr) -> HRESULT,
|
GetPropertyStore: proc "system" (this: ^IShellItemArray, flags: GETPROPERTYSTOREFLAGS, riid: REFIID, ppv: ^rawptr) -> HRESULT,
|
||||||
GetPropertyDescriptionList: proc "stdcall" (this: ^IShellItemArray, keyType: REFPROPERTYKEY, riid: REFIID, ppv: ^rawptr) -> HRESULT,
|
GetPropertyDescriptionList: proc "system" (this: ^IShellItemArray, keyType: REFPROPERTYKEY, riid: REFIID, ppv: ^rawptr) -> HRESULT,
|
||||||
GetAttributes: proc "stdcall" (this: ^IShellItemArray, AttribFlags: SIATTRIBFLAGS, sfgaoMask: SFGAOF, psfgaoAttribs: ^SFGAOF) -> HRESULT,
|
GetAttributes: proc "system" (this: ^IShellItemArray, AttribFlags: SIATTRIBFLAGS, sfgaoMask: SFGAOF, psfgaoAttribs: ^SFGAOF) -> HRESULT,
|
||||||
GetCount: proc "stdcall" (this: ^IShellItemArray, pdwNumItems: ^DWORD) -> HRESULT,
|
GetCount: proc "system" (this: ^IShellItemArray, pdwNumItems: ^DWORD) -> HRESULT,
|
||||||
GetItemAt: proc "stdcall" (this: ^IShellItemArray, dwIndex: DWORD, ppsi: ^^IShellItem) -> HRESULT,
|
GetItemAt: proc "system" (this: ^IShellItemArray, dwIndex: DWORD, ppsi: ^^IShellItem) -> HRESULT,
|
||||||
EnumItems: proc "stdcall" (this: ^IShellItemArray, ppenumShellItems: ^^IEnumShellItems) -> HRESULT,
|
EnumItems: proc "system" (this: ^IShellItemArray, ppenumShellItems: ^^IEnumShellItems) -> HRESULT,
|
||||||
}
|
}
|
||||||
|
|
||||||
IFileDialogEvents :: struct #raw_union {
|
IFileDialogEvents :: struct #raw_union {
|
||||||
@@ -3604,13 +3604,13 @@ IFileDialogEvents :: struct #raw_union {
|
|||||||
}
|
}
|
||||||
IFileDialogEventsVtbl :: struct {
|
IFileDialogEventsVtbl :: struct {
|
||||||
using IUnknownVtbl: IUnknownVtbl,
|
using IUnknownVtbl: IUnknownVtbl,
|
||||||
OnFileOk: proc "stdcall" (this: ^IFileDialogEvents, pfd: ^IFileDialog) -> HRESULT,
|
OnFileOk: proc "system" (this: ^IFileDialogEvents, pfd: ^IFileDialog) -> HRESULT,
|
||||||
OnFolderChanging: proc "stdcall" (this: ^IFileDialogEvents, pfd: ^IFileDialog, psiFolder: ^IShellItem) -> HRESULT,
|
OnFolderChanging: proc "system" (this: ^IFileDialogEvents, pfd: ^IFileDialog, psiFolder: ^IShellItem) -> HRESULT,
|
||||||
OnFolderChange: proc "stdcall" (this: ^IFileDialogEvents, pfd: ^IFileDialog) -> HRESULT,
|
OnFolderChange: proc "system" (this: ^IFileDialogEvents, pfd: ^IFileDialog) -> HRESULT,
|
||||||
OnSelectionChange: proc "stdcall" (this: ^IFileDialogEvents, pfd: ^IFileDialog) -> HRESULT,
|
OnSelectionChange: proc "system" (this: ^IFileDialogEvents, pfd: ^IFileDialog) -> HRESULT,
|
||||||
OnShareViolation: proc "stdcall" (this: ^IFileDialogEvents, pfd: ^IFileDialog, psi: ^IShellItem, pResponse: ^FDE_SHAREVIOLATION_RESPONSE) -> HRESULT,
|
OnShareViolation: proc "system" (this: ^IFileDialogEvents, pfd: ^IFileDialog, psi: ^IShellItem, pResponse: ^FDE_SHAREVIOLATION_RESPONSE) -> HRESULT,
|
||||||
OnTypeChange: proc "stdcall" (this: ^IFileDialogEvents, pfd: ^IFileDialog) -> HRESULT,
|
OnTypeChange: proc "system" (this: ^IFileDialogEvents, pfd: ^IFileDialog) -> HRESULT,
|
||||||
OnOverwrite: proc "stdcall" (this: ^IFileDialogEvents, pfd: ^IFileDialog, psi: ^IShellItem, pResponse: ^FDE_SHAREVIOLATION_RESPONSE) -> HRESULT,
|
OnOverwrite: proc "system" (this: ^IFileDialogEvents, pfd: ^IFileDialog, psi: ^IShellItem, pResponse: ^FDE_SHAREVIOLATION_RESPONSE) -> HRESULT,
|
||||||
}
|
}
|
||||||
|
|
||||||
IShellItemFilter :: struct #raw_union {
|
IShellItemFilter :: struct #raw_union {
|
||||||
@@ -3619,8 +3619,8 @@ IShellItemFilter :: struct #raw_union {
|
|||||||
}
|
}
|
||||||
IShellItemFilterVtbl :: struct {
|
IShellItemFilterVtbl :: struct {
|
||||||
using IUnknownVtbl: IUnknownVtbl,
|
using IUnknownVtbl: IUnknownVtbl,
|
||||||
IncludeItem: proc "stdcall" (this: ^IShellItemFilter, psi: ^IShellItem) -> HRESULT,
|
IncludeItem: proc "system" (this: ^IShellItemFilter, psi: ^IShellItem) -> HRESULT,
|
||||||
GetEnumFlagsForItem: proc "stdcall" (this: ^IShellItemFilter, psi: ^IShellItem, pgrfFlags: ^SHCONTF) -> HRESULT,
|
GetEnumFlagsForItem: proc "system" (this: ^IShellItemFilter, psi: ^IShellItem, pgrfFlags: ^SHCONTF) -> HRESULT,
|
||||||
}
|
}
|
||||||
|
|
||||||
IFileDialog :: struct #raw_union {
|
IFileDialog :: struct #raw_union {
|
||||||
@@ -3629,29 +3629,29 @@ IFileDialog :: struct #raw_union {
|
|||||||
}
|
}
|
||||||
IFileDialogVtbl :: struct {
|
IFileDialogVtbl :: struct {
|
||||||
using IModalWindowVtbl: IModalWindowVtbl,
|
using IModalWindowVtbl: IModalWindowVtbl,
|
||||||
SetFileTypes: proc "stdcall" (this: ^IFileDialog, cFileTypes: UINT, rgFilterSpec: ^COMDLG_FILTERSPEC) -> HRESULT,
|
SetFileTypes: proc "system" (this: ^IFileDialog, cFileTypes: UINT, rgFilterSpec: ^COMDLG_FILTERSPEC) -> HRESULT,
|
||||||
SetFileTypeIndex: proc "stdcall" (this: ^IFileDialog, iFileType: UINT) -> HRESULT,
|
SetFileTypeIndex: proc "system" (this: ^IFileDialog, iFileType: UINT) -> HRESULT,
|
||||||
GetFileTypeIndex: proc "stdcall" (this: ^IFileDialog, piFileType: ^UINT) -> HRESULT,
|
GetFileTypeIndex: proc "system" (this: ^IFileDialog, piFileType: ^UINT) -> HRESULT,
|
||||||
Advise: proc "stdcall" (this: ^IFileDialog, pfde: ^IFileDialogEvents, pdwCookie: ^DWORD) -> HRESULT,
|
Advise: proc "system" (this: ^IFileDialog, pfde: ^IFileDialogEvents, pdwCookie: ^DWORD) -> HRESULT,
|
||||||
Unadvise: proc "stdcall" (this: ^IFileDialog, dwCookie: DWORD) -> HRESULT,
|
Unadvise: proc "system" (this: ^IFileDialog, dwCookie: DWORD) -> HRESULT,
|
||||||
SetOptions: proc "stdcall" (this: ^IFileDialog, fos: FILEOPENDIALOGOPTIONS) -> HRESULT,
|
SetOptions: proc "system" (this: ^IFileDialog, fos: FILEOPENDIALOGOPTIONS) -> HRESULT,
|
||||||
GetOptions: proc "stdcall" (this: ^IFileDialog, pfos: ^FILEOPENDIALOGOPTIONS) -> HRESULT,
|
GetOptions: proc "system" (this: ^IFileDialog, pfos: ^FILEOPENDIALOGOPTIONS) -> HRESULT,
|
||||||
SetDefaultFolder: proc "stdcall" (this: ^IFileDialog, psi: ^IShellItem) -> HRESULT,
|
SetDefaultFolder: proc "system" (this: ^IFileDialog, psi: ^IShellItem) -> HRESULT,
|
||||||
SetFolder: proc "stdcall" (this: ^IFileDialog, psi: ^IShellItem) -> HRESULT,
|
SetFolder: proc "system" (this: ^IFileDialog, psi: ^IShellItem) -> HRESULT,
|
||||||
GetFolder: proc "stdcall" (this: ^IFileDialog, ppsi: ^^IShellItem) -> HRESULT,
|
GetFolder: proc "system" (this: ^IFileDialog, ppsi: ^^IShellItem) -> HRESULT,
|
||||||
GetCurrentSelection: proc "stdcall" (this: ^IFileDialog, ppsi: ^^IShellItem) -> HRESULT,
|
GetCurrentSelection: proc "system" (this: ^IFileDialog, ppsi: ^^IShellItem) -> HRESULT,
|
||||||
SetFileName: proc "stdcall" (this: ^IFileDialog, pszName: LPCWSTR) -> HRESULT,
|
SetFileName: proc "system" (this: ^IFileDialog, pszName: LPCWSTR) -> HRESULT,
|
||||||
GetFileName: proc "stdcall" (this: ^IFileDialog, pszName: ^LPCWSTR) -> HRESULT,
|
GetFileName: proc "system" (this: ^IFileDialog, pszName: ^LPCWSTR) -> HRESULT,
|
||||||
SetTitle: proc "stdcall" (this: ^IFileDialog, pszTitle: LPCWSTR) -> HRESULT,
|
SetTitle: proc "system" (this: ^IFileDialog, pszTitle: LPCWSTR) -> HRESULT,
|
||||||
SetOkButtonLabel: proc "stdcall" (this: ^IFileDialog, pszText: LPCWSTR) -> HRESULT,
|
SetOkButtonLabel: proc "system" (this: ^IFileDialog, pszText: LPCWSTR) -> HRESULT,
|
||||||
SetFileNameLabel: proc "stdcall" (this: ^IFileDialog, pszLabel: LPCWSTR) -> HRESULT,
|
SetFileNameLabel: proc "system" (this: ^IFileDialog, pszLabel: LPCWSTR) -> HRESULT,
|
||||||
GetResult: proc "stdcall" (this: ^IFileDialog, ppsi: ^^IShellItem) -> HRESULT,
|
GetResult: proc "system" (this: ^IFileDialog, ppsi: ^^IShellItem) -> HRESULT,
|
||||||
AddPlace: proc "stdcall" (this: ^IFileDialog, psi: ^IShellItem, fdap: FDAP) -> HRESULT,
|
AddPlace: proc "system" (this: ^IFileDialog, psi: ^IShellItem, fdap: FDAP) -> HRESULT,
|
||||||
SetDefaultExtension: proc "stdcall" (this: ^IFileDialog, pszDefaultExtension: LPCWSTR) -> HRESULT,
|
SetDefaultExtension: proc "system" (this: ^IFileDialog, pszDefaultExtension: LPCWSTR) -> HRESULT,
|
||||||
Close: proc "stdcall" (this: ^IFileDialog, hr: HRESULT) -> HRESULT,
|
Close: proc "system" (this: ^IFileDialog, hr: HRESULT) -> HRESULT,
|
||||||
SetClientGuid: proc "stdcall" (this: ^IFileDialog, guid: REFGUID) -> HRESULT,
|
SetClientGuid: proc "system" (this: ^IFileDialog, guid: REFGUID) -> HRESULT,
|
||||||
ClearClientData: proc "stdcall" (this: ^IFileDialog) -> HRESULT,
|
ClearClientData: proc "system" (this: ^IFileDialog) -> HRESULT,
|
||||||
SetFilter: proc "stdcall" (this: ^IFileDialog, pFilter: ^IShellItemFilter) -> HRESULT,
|
SetFilter: proc "system" (this: ^IFileDialog, pFilter: ^IShellItemFilter) -> HRESULT,
|
||||||
}
|
}
|
||||||
|
|
||||||
IFileOpenDialog :: struct #raw_union {
|
IFileOpenDialog :: struct #raw_union {
|
||||||
@@ -3660,8 +3660,8 @@ IFileOpenDialog :: struct #raw_union {
|
|||||||
}
|
}
|
||||||
IFileOpenDialogVtbl :: struct {
|
IFileOpenDialogVtbl :: struct {
|
||||||
using IFileDialogVtbl: IFileDialogVtbl,
|
using IFileDialogVtbl: IFileDialogVtbl,
|
||||||
GetResults: proc "stdcall" (this: ^IFileOpenDialog, ppenum: ^^IShellItemArray) -> HRESULT,
|
GetResults: proc "system" (this: ^IFileOpenDialog, ppenum: ^^IShellItemArray) -> HRESULT,
|
||||||
GetSelectedItems: proc "stdcall" (this: ^IFileOpenDialog, ppsai: ^^IShellItemArray) -> HRESULT,
|
GetSelectedItems: proc "system" (this: ^IFileOpenDialog, ppsai: ^^IShellItemArray) -> HRESULT,
|
||||||
}
|
}
|
||||||
|
|
||||||
IPropertyStore :: struct #raw_union {
|
IPropertyStore :: struct #raw_union {
|
||||||
@@ -3670,11 +3670,11 @@ IPropertyStore :: struct #raw_union {
|
|||||||
}
|
}
|
||||||
IPropertyStoreVtbl :: struct {
|
IPropertyStoreVtbl :: struct {
|
||||||
using IUnknownVtbl: IUnknownVtbl,
|
using IUnknownVtbl: IUnknownVtbl,
|
||||||
GetCount: proc "stdcall" (this: ^IPropertyStore, cProps: ^DWORD) -> HRESULT,
|
GetCount: proc "system" (this: ^IPropertyStore, cProps: ^DWORD) -> HRESULT,
|
||||||
GetAt: proc "stdcall" (this: ^IPropertyStore, iProp: DWORD, pkey: ^PROPERTYKEY) -> HRESULT,
|
GetAt: proc "system" (this: ^IPropertyStore, iProp: DWORD, pkey: ^PROPERTYKEY) -> HRESULT,
|
||||||
GetValue: proc "stdcall" (this: ^IPropertyStore, key: REFPROPERTYKEY, pv: ^PROPVARIANT) -> HRESULT,
|
GetValue: proc "system" (this: ^IPropertyStore, key: REFPROPERTYKEY, pv: ^PROPVARIANT) -> HRESULT,
|
||||||
SetValue: proc "stdcall" (this: ^IPropertyStore, key: REFPROPERTYKEY, propvar: REFPROPVARIANT) -> HRESULT,
|
SetValue: proc "system" (this: ^IPropertyStore, key: REFPROPERTYKEY, propvar: REFPROPVARIANT) -> HRESULT,
|
||||||
Commit: proc "stdcall" (this: ^IPropertyStore) -> HRESULT,
|
Commit: proc "system" (this: ^IPropertyStore) -> HRESULT,
|
||||||
}
|
}
|
||||||
|
|
||||||
IPropertyDescriptionList :: struct #raw_union {
|
IPropertyDescriptionList :: struct #raw_union {
|
||||||
@@ -3683,8 +3683,8 @@ IPropertyDescriptionList :: struct #raw_union {
|
|||||||
}
|
}
|
||||||
IPropertyDescriptionListVtbl :: struct {
|
IPropertyDescriptionListVtbl :: struct {
|
||||||
using IUnknownVtbl: IUnknownVtbl,
|
using IUnknownVtbl: IUnknownVtbl,
|
||||||
GetCount: proc "stdcall" (this: ^IPropertyDescriptionList, pcElem: ^UINT) -> HRESULT,
|
GetCount: proc "system" (this: ^IPropertyDescriptionList, pcElem: ^UINT) -> HRESULT,
|
||||||
GetAt: proc "stdcall" (this: ^IPropertyDescriptionList, iElem: UINT, riid: REFIID, ppv: ^rawptr) -> HRESULT,
|
GetAt: proc "system" (this: ^IPropertyDescriptionList, iElem: UINT, riid: REFIID, ppv: ^rawptr) -> HRESULT,
|
||||||
}
|
}
|
||||||
|
|
||||||
IFileOperationProgressSink :: struct #raw_union {
|
IFileOperationProgressSink :: struct #raw_union {
|
||||||
@@ -3693,22 +3693,22 @@ IFileOperationProgressSink :: struct #raw_union {
|
|||||||
}
|
}
|
||||||
IFileOperationProgressSinkVtbl :: struct {
|
IFileOperationProgressSinkVtbl :: struct {
|
||||||
using IUnknownVtbl: IUnknownVtbl,
|
using IUnknownVtbl: IUnknownVtbl,
|
||||||
StartOperations: proc "stdcall" (this: ^IFileOperationProgressSink) -> HRESULT,
|
StartOperations: proc "system" (this: ^IFileOperationProgressSink) -> HRESULT,
|
||||||
FinishOperations: proc "stdcall" (this: ^IFileOperationProgressSink, hrResult: HRESULT) -> HRESULT,
|
FinishOperations: proc "system" (this: ^IFileOperationProgressSink, hrResult: HRESULT) -> HRESULT,
|
||||||
PreRenameItem: proc "stdcall" (this: ^IFileOperationProgressSink, dwFlags: DWORD, psiItem: ^IShellItem, pszNewName: LPCWSTR) -> HRESULT,
|
PreRenameItem: proc "system" (this: ^IFileOperationProgressSink, dwFlags: DWORD, psiItem: ^IShellItem, pszNewName: LPCWSTR) -> HRESULT,
|
||||||
PostRenameItem: proc "stdcall" (this: ^IFileOperationProgressSink, dwFlags: DWORD, psiItem: ^IShellItem, pszNewName: LPCWSTR, hrRename: HRESULT, psiNewlyCreated: ^IShellItem) -> HRESULT,
|
PostRenameItem: proc "system" (this: ^IFileOperationProgressSink, dwFlags: DWORD, psiItem: ^IShellItem, pszNewName: LPCWSTR, hrRename: HRESULT, psiNewlyCreated: ^IShellItem) -> HRESULT,
|
||||||
PreMoveItem: proc "stdcall" (this: ^IFileOperationProgressSink, dwFlags: DWORD, psiItem: ^IShellItem, psiDestinationFolder: ^IShellItem, pszNewName: LPCWSTR) -> HRESULT,
|
PreMoveItem: proc "system" (this: ^IFileOperationProgressSink, dwFlags: DWORD, psiItem: ^IShellItem, psiDestinationFolder: ^IShellItem, pszNewName: LPCWSTR) -> HRESULT,
|
||||||
PostMoveItem: proc "stdcall" (this: ^IFileOperationProgressSink, dwFlags: DWORD, psiItem: ^IShellItem, psiDestinationFolder: ^IShellItem, pszNewName: LPCWSTR, hrMove: HRESULT, psiNewlyCreated: ^IShellItem) -> HRESULT,
|
PostMoveItem: proc "system" (this: ^IFileOperationProgressSink, dwFlags: DWORD, psiItem: ^IShellItem, psiDestinationFolder: ^IShellItem, pszNewName: LPCWSTR, hrMove: HRESULT, psiNewlyCreated: ^IShellItem) -> HRESULT,
|
||||||
PreCopyItem: proc "stdcall" (this: ^IFileOperationProgressSink, dwFlags: DWORD, psiItem: ^IShellItem, psiDestinationFolder: ^IShellItem, pszNewName: LPCWSTR) -> HRESULT,
|
PreCopyItem: proc "system" (this: ^IFileOperationProgressSink, dwFlags: DWORD, psiItem: ^IShellItem, psiDestinationFolder: ^IShellItem, pszNewName: LPCWSTR) -> HRESULT,
|
||||||
PostCopyItem: proc "stdcall" (this: ^IFileOperationProgressSink, dwFlags: DWORD, psiItem: ^IShellItem, psiDestinationFolder: ^IShellItem, pszNewName: LPCWSTR, hrMove: HRESULT, psiNewlyCreated: ^IShellItem) -> HRESULT,
|
PostCopyItem: proc "system" (this: ^IFileOperationProgressSink, dwFlags: DWORD, psiItem: ^IShellItem, psiDestinationFolder: ^IShellItem, pszNewName: LPCWSTR, hrMove: HRESULT, psiNewlyCreated: ^IShellItem) -> HRESULT,
|
||||||
PreDeleteItem: proc "stdcall" (this: ^IFileOperationProgressSink, dwFlags: DWORD, psiItem: ^IShellItem) -> HRESULT,
|
PreDeleteItem: proc "system" (this: ^IFileOperationProgressSink, dwFlags: DWORD, psiItem: ^IShellItem) -> HRESULT,
|
||||||
PostDeleteItem: proc "stdcall" (this: ^IFileOperationProgressSink, dwFlags: DWORD, psiItem: ^IShellItem, hrDelete: HRESULT, psiNewlyCreated: ^IShellItem) -> HRESULT,
|
PostDeleteItem: proc "system" (this: ^IFileOperationProgressSink, dwFlags: DWORD, psiItem: ^IShellItem, hrDelete: HRESULT, psiNewlyCreated: ^IShellItem) -> HRESULT,
|
||||||
PreNewItem: proc "stdcall" (this: ^IFileOperationProgressSink, dwFlags: DWORD, psiDestinationFolder: ^IShellItem, pszNewName: LPCWSTR) -> HRESULT,
|
PreNewItem: proc "system" (this: ^IFileOperationProgressSink, dwFlags: DWORD, psiDestinationFolder: ^IShellItem, pszNewName: LPCWSTR) -> HRESULT,
|
||||||
PostNewItem: proc "stdcall" (this: ^IFileOperationProgressSink, dwFlags: DWORD, psiDestinationFolder: ^IShellItem, pszNewName: LPCWSTR, pszTemplateName: LPCWSTR, dwFileAttributes: DWORD, hrNew: HRESULT, psiNewItem: ^IShellItem) -> HRESULT,
|
PostNewItem: proc "system" (this: ^IFileOperationProgressSink, dwFlags: DWORD, psiDestinationFolder: ^IShellItem, pszNewName: LPCWSTR, pszTemplateName: LPCWSTR, dwFileAttributes: DWORD, hrNew: HRESULT, psiNewItem: ^IShellItem) -> HRESULT,
|
||||||
UpdateProgress: proc "stdcall" (this: ^IFileOperationProgressSink, iWorkTotal: UINT, iWorkSoFar: UINT) -> HRESULT,
|
UpdateProgress: proc "system" (this: ^IFileOperationProgressSink, iWorkTotal: UINT, iWorkSoFar: UINT) -> HRESULT,
|
||||||
ResetTimer: proc "stdcall" (this: ^IFileOperationProgressSink) -> HRESULT,
|
ResetTimer: proc "system" (this: ^IFileOperationProgressSink) -> HRESULT,
|
||||||
PauseTimer: proc "stdcall" (this: ^IFileOperationProgressSink) -> HRESULT,
|
PauseTimer: proc "system" (this: ^IFileOperationProgressSink) -> HRESULT,
|
||||||
ResumeTimer: proc "stdcall" (this: ^IFileOperationProgressSink) -> HRESULT,
|
ResumeTimer: proc "system" (this: ^IFileOperationProgressSink) -> HRESULT,
|
||||||
}
|
}
|
||||||
|
|
||||||
IFileSaveDialog :: struct #raw_union {
|
IFileSaveDialog :: struct #raw_union {
|
||||||
@@ -3717,11 +3717,11 @@ IFileSaveDialog :: struct #raw_union {
|
|||||||
}
|
}
|
||||||
IFileSaveDialogVtbl :: struct {
|
IFileSaveDialogVtbl :: struct {
|
||||||
using IFileDialogVtbl: IFileDialogVtbl,
|
using IFileDialogVtbl: IFileDialogVtbl,
|
||||||
SetSaveAsItem: proc "stdcall" (this: ^IFileSaveDialog, psi: ^IShellItem) -> HRESULT,
|
SetSaveAsItem: proc "system" (this: ^IFileSaveDialog, psi: ^IShellItem) -> HRESULT,
|
||||||
SetProperties: proc "stdcall" (this: ^IFileSaveDialog, pStore: ^IPropertyStore) -> HRESULT,
|
SetProperties: proc "system" (this: ^IFileSaveDialog, pStore: ^IPropertyStore) -> HRESULT,
|
||||||
SetCollectedProperties: proc "stdcall" (this: ^IFileSaveDialog, pList: ^IPropertyDescriptionList, fAppendDefault: BOOL) -> HRESULT,
|
SetCollectedProperties: proc "system" (this: ^IFileSaveDialog, pList: ^IPropertyDescriptionList, fAppendDefault: BOOL) -> HRESULT,
|
||||||
GetProperties: proc "stdcall" (this: ^IFileSaveDialog, ppStore: ^^IPropertyStore) -> HRESULT,
|
GetProperties: proc "system" (this: ^IFileSaveDialog, ppStore: ^^IPropertyStore) -> HRESULT,
|
||||||
ApplyProperties: proc "stdcall" (this: ^IFileSaveDialog, psi: ^IShellItem, pStore: ^IPropertyStore, hwnd: HWND, pSink: ^IFileOperationProgressSink) -> HRESULT,
|
ApplyProperties: proc "system" (this: ^IFileSaveDialog, psi: ^IShellItem, pStore: ^IPropertyStore, hwnd: HWND, pSink: ^IFileOperationProgressSink) -> HRESULT,
|
||||||
}
|
}
|
||||||
|
|
||||||
ITaskbarList :: struct #raw_union {
|
ITaskbarList :: struct #raw_union {
|
||||||
@@ -3730,11 +3730,11 @@ ITaskbarList :: struct #raw_union {
|
|||||||
}
|
}
|
||||||
ITaskbarListVtbl :: struct {
|
ITaskbarListVtbl :: struct {
|
||||||
using IUnknownVtbl: IUnknownVtbl,
|
using IUnknownVtbl: IUnknownVtbl,
|
||||||
HrInit: proc "stdcall" (this: ^ITaskbarList) -> HRESULT,
|
HrInit: proc "system" (this: ^ITaskbarList) -> HRESULT,
|
||||||
AddTab: proc "stdcall" (this: ^ITaskbarList, hwnd: HWND) -> HRESULT,
|
AddTab: proc "system" (this: ^ITaskbarList, hwnd: HWND) -> HRESULT,
|
||||||
DeleteTab: proc "stdcall" (this: ^ITaskbarList, hwnd: HWND) -> HRESULT,
|
DeleteTab: proc "system" (this: ^ITaskbarList, hwnd: HWND) -> HRESULT,
|
||||||
ActivateTab: proc "stdcall" (this: ^ITaskbarList, hwnd: HWND) -> HRESULT,
|
ActivateTab: proc "system" (this: ^ITaskbarList, hwnd: HWND) -> HRESULT,
|
||||||
SetActiveAlt: proc "stdcall" (this: ^ITaskbarList, hwnd: HWND) -> HRESULT,
|
SetActiveAlt: proc "system" (this: ^ITaskbarList, hwnd: HWND) -> HRESULT,
|
||||||
}
|
}
|
||||||
|
|
||||||
ITaskbarList2 :: struct #raw_union {
|
ITaskbarList2 :: struct #raw_union {
|
||||||
@@ -3743,7 +3743,7 @@ ITaskbarList2 :: struct #raw_union {
|
|||||||
}
|
}
|
||||||
ITaskbarList2Vtbl :: struct {
|
ITaskbarList2Vtbl :: struct {
|
||||||
using ITaskbarListVtbl: ITaskbarListVtbl,
|
using ITaskbarListVtbl: ITaskbarListVtbl,
|
||||||
MarkFullscreenWindow: proc "stdcall" (this: ^ITaskbarList2, hwnd: HWND, fFullscreen: BOOL) -> HRESULT,
|
MarkFullscreenWindow: proc "system" (this: ^ITaskbarList2, hwnd: HWND, fFullscreen: BOOL) -> HRESULT,
|
||||||
}
|
}
|
||||||
|
|
||||||
TBPFLAG :: enum c_int {
|
TBPFLAG :: enum c_int {
|
||||||
@@ -3788,18 +3788,18 @@ ITaskbarList3 :: struct #raw_union {
|
|||||||
}
|
}
|
||||||
ITaskbarList3Vtbl :: struct {
|
ITaskbarList3Vtbl :: struct {
|
||||||
using ITaskbarList2Vtbl: ITaskbarList2Vtbl,
|
using ITaskbarList2Vtbl: ITaskbarList2Vtbl,
|
||||||
SetProgressValue: proc "stdcall" (this: ^ITaskbarList3, hwnd: HWND, ullCompleted: ULONGLONG, ullTotal: ULONGLONG) -> HRESULT,
|
SetProgressValue: proc "system" (this: ^ITaskbarList3, hwnd: HWND, ullCompleted: ULONGLONG, ullTotal: ULONGLONG) -> HRESULT,
|
||||||
SetProgressState: proc "stdcall" (this: ^ITaskbarList3, hwnd: HWND, tbpFlags: TBPFLAG) -> HRESULT,
|
SetProgressState: proc "system" (this: ^ITaskbarList3, hwnd: HWND, tbpFlags: TBPFLAG) -> HRESULT,
|
||||||
RegisterTab: proc "stdcall" (this: ^ITaskbarList3, hwndTab: HWND, hwndMDI: HWND) -> HRESULT,
|
RegisterTab: proc "system" (this: ^ITaskbarList3, hwndTab: HWND, hwndMDI: HWND) -> HRESULT,
|
||||||
UnregisterTab: proc "stdcall" (this: ^ITaskbarList3, hwndTab: HWND) -> HRESULT,
|
UnregisterTab: proc "system" (this: ^ITaskbarList3, hwndTab: HWND) -> HRESULT,
|
||||||
SetTabOrder: proc "stdcall" (this: ^ITaskbarList3, hwndTab: HWND, hwndInsertBefore: HWND) -> HRESULT,
|
SetTabOrder: proc "system" (this: ^ITaskbarList3, hwndTab: HWND, hwndInsertBefore: HWND) -> HRESULT,
|
||||||
SetTabActive: proc "stdcall" (this: ^ITaskbarList3, hwndTab: HWND, hwndMDI: HWND, dwReserved: DWORD) -> HRESULT,
|
SetTabActive: proc "system" (this: ^ITaskbarList3, hwndTab: HWND, hwndMDI: HWND, dwReserved: DWORD) -> HRESULT,
|
||||||
ThumbBarAddButtons: proc "stdcall" (this: ^ITaskbarList3, hwnd: HWND, cButtons: UINT, pButton: LPTHUMBBUTTON) -> HRESULT,
|
ThumbBarAddButtons: proc "system" (this: ^ITaskbarList3, hwnd: HWND, cButtons: UINT, pButton: LPTHUMBBUTTON) -> HRESULT,
|
||||||
ThumbBarUpdateButtons: proc "stdcall" (this: ^ITaskbarList3, hwnd: HWND, cButtons: UINT, pButton: LPTHUMBBUTTON) -> HRESULT,
|
ThumbBarUpdateButtons: proc "system" (this: ^ITaskbarList3, hwnd: HWND, cButtons: UINT, pButton: LPTHUMBBUTTON) -> HRESULT,
|
||||||
ThumbBarSetImageList: proc "stdcall" (this: ^ITaskbarList3, hwnd: HWND, himl: HIMAGELIST) -> HRESULT,
|
ThumbBarSetImageList: proc "system" (this: ^ITaskbarList3, hwnd: HWND, himl: HIMAGELIST) -> HRESULT,
|
||||||
SetOverlayIcon: proc "stdcall" (this: ^ITaskbarList3, hwnd: HWND, hIcon: HICON, pszDescription: LPCWSTR) -> HRESULT,
|
SetOverlayIcon: proc "system" (this: ^ITaskbarList3, hwnd: HWND, hIcon: HICON, pszDescription: LPCWSTR) -> HRESULT,
|
||||||
SetThumbnailTooltip: proc "stdcall" (this: ^ITaskbarList3, hwnd: HWND, pszTip: LPCWSTR) -> HRESULT,
|
SetThumbnailTooltip: proc "system" (this: ^ITaskbarList3, hwnd: HWND, pszTip: LPCWSTR) -> HRESULT,
|
||||||
SetThumbnailClip: proc "stdcall" (this: ^ITaskbarList3, hwnd: HWND, prcClip: ^RECT) -> HRESULT,
|
SetThumbnailClip: proc "system" (this: ^ITaskbarList3, hwnd: HWND, prcClip: ^RECT) -> HRESULT,
|
||||||
}
|
}
|
||||||
|
|
||||||
MEMORYSTATUSEX :: struct {
|
MEMORYSTATUSEX :: struct {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package sys_windows
|
|||||||
|
|
||||||
foreign import user32 "system:User32.lib"
|
foreign import user32 "system:User32.lib"
|
||||||
|
|
||||||
@(default_calling_convention="stdcall")
|
@(default_calling_convention="system")
|
||||||
foreign user32 {
|
foreign user32 {
|
||||||
GetClassInfoW :: proc(hInstance: HINSTANCE, lpClassNAme: LPCWSTR, lpWndClass: ^WNDCLASSW) -> BOOL ---
|
GetClassInfoW :: proc(hInstance: HINSTANCE, lpClassNAme: LPCWSTR, lpWndClass: ^WNDCLASSW) -> BOOL ---
|
||||||
GetClassInfoExW :: proc(hInsatnce: HINSTANCE, lpszClass: LPCWSTR, lpwcx: ^WNDCLASSEXW) -> BOOL ---
|
GetClassInfoExW :: proc(hInsatnce: HINSTANCE, lpszClass: LPCWSTR, lpwcx: ^WNDCLASSEXW) -> BOOL ---
|
||||||
@@ -236,7 +236,7 @@ foreign user32 {
|
|||||||
EnableMenuItem :: proc(hMenu: HMENU, uIDEnableItem: UINT, uEnable: UINT) -> BOOL ---
|
EnableMenuItem :: proc(hMenu: HMENU, uIDEnableItem: UINT, uEnable: UINT) -> BOOL ---
|
||||||
}
|
}
|
||||||
|
|
||||||
CreateWindowW :: #force_inline proc "stdcall" (
|
CreateWindowW :: #force_inline proc "system" (
|
||||||
lpClassName: LPCTSTR,
|
lpClassName: LPCTSTR,
|
||||||
lpWindowName: LPCTSTR,
|
lpWindowName: LPCTSTR,
|
||||||
dwStyle: DWORD,
|
dwStyle: DWORD,
|
||||||
@@ -266,7 +266,7 @@ CreateWindowW :: #force_inline proc "stdcall" (
|
|||||||
}
|
}
|
||||||
|
|
||||||
when ODIN_ARCH == .amd64 {
|
when ODIN_ARCH == .amd64 {
|
||||||
@(default_calling_convention="stdcall")
|
@(default_calling_convention="system")
|
||||||
foreign user32 {
|
foreign user32 {
|
||||||
GetClassLongPtrW :: proc(hWnd: HWND, nIndex: c_int) -> ULONG_PTR ---
|
GetClassLongPtrW :: proc(hWnd: HWND, nIndex: c_int) -> ULONG_PTR ---
|
||||||
SetClassLongPtrW :: proc(hWnd: HWND, nIndex: c_int, dwNewLong: LONG_PTR) -> ULONG_PTR ---
|
SetClassLongPtrW :: proc(hWnd: HWND, nIndex: c_int, dwNewLong: LONG_PTR) -> ULONG_PTR ---
|
||||||
@@ -312,8 +312,8 @@ Monitor_From_Flags :: enum DWORD {
|
|||||||
MONITOR_DEFAULTTONEAREST = 0x00000002, // Returns a handle to the display monitor that is nearest to the window
|
MONITOR_DEFAULTTONEAREST = 0x00000002, // Returns a handle to the display monitor that is nearest to the window
|
||||||
}
|
}
|
||||||
|
|
||||||
Monitor_Enum_Proc :: #type proc "stdcall" (HMONITOR, HDC, LPRECT, LPARAM) -> BOOL
|
Monitor_Enum_Proc :: #type proc "system" (HMONITOR, HDC, LPRECT, LPARAM) -> BOOL
|
||||||
Window_Enum_Proc :: #type proc "stdcall" (HWND, LPARAM) -> BOOL
|
Window_Enum_Proc :: #type proc "system" (HWND, LPARAM) -> BOOL
|
||||||
|
|
||||||
USER_DEFAULT_SCREEN_DPI :: 96
|
USER_DEFAULT_SCREEN_DPI :: 96
|
||||||
DPI_AWARENESS_CONTEXT :: distinct HANDLE
|
DPI_AWARENESS_CONTEXT :: distinct HANDLE
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package sys_windows
|
|||||||
|
|
||||||
foreign import userenv "system:Userenv.lib"
|
foreign import userenv "system:Userenv.lib"
|
||||||
|
|
||||||
@(default_calling_convention="stdcall")
|
@(default_calling_convention="system")
|
||||||
foreign userenv {
|
foreign userenv {
|
||||||
GetUserProfileDirectoryW :: proc(hToken: HANDLE,
|
GetUserProfileDirectoryW :: proc(hToken: HANDLE,
|
||||||
lpProfileDir: LPWSTR,
|
lpProfileDir: LPWSTR,
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ foreign import uxtheme "system:UxTheme.lib"
|
|||||||
MARGINS :: distinct [4]int
|
MARGINS :: distinct [4]int
|
||||||
PMARGINS :: ^MARGINS
|
PMARGINS :: ^MARGINS
|
||||||
|
|
||||||
@(default_calling_convention="stdcall")
|
@(default_calling_convention="system")
|
||||||
foreign uxtheme {
|
foreign uxtheme {
|
||||||
IsThemeActive :: proc() -> BOOL ---
|
IsThemeActive :: proc() -> BOOL ---
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ GetExtensionsStringARBType :: #type proc "c" (HDC) -> cstring
|
|||||||
wglGetExtensionsStringARB: GetExtensionsStringARBType
|
wglGetExtensionsStringARB: GetExtensionsStringARBType
|
||||||
|
|
||||||
|
|
||||||
@(default_calling_convention="stdcall")
|
@(default_calling_convention="system")
|
||||||
foreign Opengl32 {
|
foreign Opengl32 {
|
||||||
wglCreateContext :: proc(hdc: HDC) -> HGLRC ---
|
wglCreateContext :: proc(hdc: HDC) -> HGLRC ---
|
||||||
wglMakeCurrent :: proc(hdc: HDC, HGLRC: HGLRC) -> BOOL ---
|
wglMakeCurrent :: proc(hdc: HDC, HGLRC: HGLRC) -> BOOL ---
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ foreign import winmm "system:Winmm.lib"
|
|||||||
|
|
||||||
MMRESULT :: UINT
|
MMRESULT :: UINT
|
||||||
|
|
||||||
@(default_calling_convention="stdcall")
|
@(default_calling_convention="system")
|
||||||
foreign winmm {
|
foreign winmm {
|
||||||
timeGetDevCaps :: proc(ptc: LPTIMECAPS, cbtc: UINT) -> MMRESULT ---
|
timeGetDevCaps :: proc(ptc: LPTIMECAPS, cbtc: UINT) -> MMRESULT ---
|
||||||
timeBeginPeriod :: proc(uPeriod: UINT) -> MMRESULT ---
|
timeBeginPeriod :: proc(uPeriod: UINT) -> MMRESULT ---
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ Example Load:
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
foreign import ws2_32 "system:Ws2_32.lib"
|
foreign import ws2_32 "system:Ws2_32.lib"
|
||||||
@(default_calling_convention="stdcall")
|
@(default_calling_convention="system")
|
||||||
foreign ws2_32 {
|
foreign ws2_32 {
|
||||||
// [MS-Docs](https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-wsastartup)
|
// [MS-Docs](https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-wsastartup)
|
||||||
WSAStartup :: proc(wVersionRequested: WORD, lpWSAData: LPWSADATA) -> c_int ---
|
WSAStartup :: proc(wVersionRequested: WORD, lpWSAData: LPWSADATA) -> c_int ---
|
||||||
|
|||||||
Reference in New Issue
Block a user