aboutsummaryrefslogtreecommitdiff
path: root/core/sys/windows/util.odin
diff options
context:
space:
mode:
authorflysand7 <thebumboni@gmail.com>2024-07-12 18:04:39 +1100
committerflysand7 <thebumboni@gmail.com>2024-07-12 19:21:44 +1100
commit6ae47c6f439d92b984697a484bfedf18b1123f3b (patch)
tree2dcaa24c084cca047130ca44c038ea776f694346 /core/sys/windows/util.odin
parent1770e3a9a97620125f6333db7678dd4ec34fa329 (diff)
[sys/windows] Add advapi bindings, process-related functions and context-related stuff
Diffstat (limited to 'core/sys/windows/util.odin')
-rw-r--r--core/sys/windows/util.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/sys/windows/util.odin b/core/sys/windows/util.odin
index be0d8c02b..64d623000 100644
--- a/core/sys/windows/util.odin
+++ b/core/sys/windows/util.odin
@@ -202,7 +202,7 @@ get_computer_name_and_account_sid :: proc(username: string) -> (computer_name: s
username_w := utf8_to_utf16(username, context.temp_allocator)
cbsid: DWORD
computer_name_size: DWORD
- pe_use := SID_TYPE.User
+ pe_use := SID_NAME_USE.SidTypeUser
res := LookupAccountNameW(
nil, // Look on this computer first
@@ -244,7 +244,7 @@ get_sid :: proc(username: string, sid: ^SID) -> (ok: bool) {
username_w := utf8_to_utf16(username, context.temp_allocator)
cbsid: DWORD
computer_name_size: DWORD
- pe_use := SID_TYPE.User
+ pe_use := SID_NAME_USE.SidTypeUser
res := LookupAccountNameW(
nil, // Look on this computer first