mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
sys/windows: add registry functions and create winerror.odin
This commit is contained in:
@@ -70,4 +70,44 @@ foreign advapi32 {
|
||||
lpStartupInfo: LPSTARTUPINFO,
|
||||
lpProcessInformation: LPPROCESS_INFORMATION,
|
||||
) -> BOOL ---
|
||||
}
|
||||
|
||||
RegCreateKeyExW :: proc(
|
||||
hKey: HKEY,
|
||||
lpSubKey: LPCWSTR,
|
||||
Reserved: DWORD,
|
||||
lpClass: LPWSTR,
|
||||
dwOptions: DWORD,
|
||||
samDesired: REGSAM,
|
||||
lpSecurityAttributes: LPSECURITY_ATTRIBUTES,
|
||||
phkResult: PHKEY,
|
||||
lpdwDisposition: LPDWORD,
|
||||
) -> LSTATUS ---
|
||||
|
||||
RegOpenKeyW :: proc(
|
||||
hKey: HKEY,
|
||||
lpSubKey: LPCWSTR,
|
||||
phkResult: PHKEY,
|
||||
) -> LSTATUS ---
|
||||
|
||||
RegOpenKeyExW :: proc(
|
||||
hKey: HKEY,
|
||||
lpSubKey: LPCWSTR,
|
||||
ulOptions: DWORD,
|
||||
samDesired: REGSAM,
|
||||
phkResult: PHKEY,
|
||||
) -> LSTATUS ---
|
||||
|
||||
RegCloseKey :: proc(
|
||||
hKey: HKEY,
|
||||
) -> LSTATUS ---
|
||||
|
||||
RegGetValueW :: proc(
|
||||
hkey: HKEY,
|
||||
lpSubKey: LPCWSTR,
|
||||
lpValue: LPCWSTR,
|
||||
dwFlags: DWORD,
|
||||
pdwType: LPDWORD,
|
||||
pvData: PVOID,
|
||||
pcbData: LPDWORD,
|
||||
) -> LSTATUS ---
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user