diff options
| author | hikari <ftphikari@gmail.com> | 2022-06-03 06:43:23 +0300 |
|---|---|---|
| committer | hikari <ftphikari@gmail.com> | 2022-06-03 06:44:42 +0300 |
| commit | a2e0373934fa6f458cb2a0a74aa72b5099371125 (patch) | |
| tree | 5a213cf447911c550bcdfd2fd86e7efd29662806 /core/sys/windows/advapi32.odin | |
| parent | ba5f7c4e2af5c82c220b7e1796fde2f026ce4208 (diff) | |
sys/windows: add registry functions and create winerror.odin
Diffstat (limited to 'core/sys/windows/advapi32.odin')
| -rw-r--r-- | core/sys/windows/advapi32.odin | 42 |
1 files changed, 41 insertions, 1 deletions
diff --git a/core/sys/windows/advapi32.odin b/core/sys/windows/advapi32.odin index 20badb5da..1eb6d7049 100644 --- a/core/sys/windows/advapi32.odin +++ b/core/sys/windows/advapi32.odin @@ -70,4 +70,44 @@ foreign advapi32 { lpStartupInfo: LPSTARTUPINFO, lpProcessInformation: LPPROCESS_INFORMATION, ) -> BOOL --- -}
\ No newline at end of file + + 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 --- +} |