aboutsummaryrefslogtreecommitdiff
path: root/core/sys/windows/advapi32.odin
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-06-26 19:11:34 +0100
committergingerBill <bill@gingerbill.org>2020-06-26 19:11:34 +0100
commit6bd05ef5d7381f8b24a40f7df2d72c62d11a8f21 (patch)
tree8c25194d2aa896c4e4dd27f5ff265957c4d265be /core/sys/windows/advapi32.odin
parent251a3a690ed97be9582a4ca10000c4475bbef5fc (diff)
Begin migration from sys/win32 to sys/windows
Diffstat (limited to 'core/sys/windows/advapi32.odin')
-rw-r--r--core/sys/windows/advapi32.odin12
1 files changed, 12 insertions, 0 deletions
diff --git a/core/sys/windows/advapi32.odin b/core/sys/windows/advapi32.odin
new file mode 100644
index 000000000..b25ed6ef4
--- /dev/null
+++ b/core/sys/windows/advapi32.odin
@@ -0,0 +1,12 @@
+package sys_windows
+
+foreign import advapi32 "system:Advapi32.lib"
+
+@(default_calling_convention="stdcall")
+foreign advapi32 {
+ @(link_name = "SystemFunction036")
+ RtlGenRandom :: proc(RandomBuffer: ^u8, RandomBufferLength: ULONG) -> BOOLEAN ---
+ OpenProcessToken :: proc(ProcessHandle: HANDLE,
+ DesiredAccess: DWORD,
+ TokenHandle: ^HANDLE) -> BOOL ---
+}