zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 22fd359e2c601c9d0a009705bed60c88821f2b0f (tree)
parent e66f538972d1278ed95513aa1d97c196818a73c6
Author: kristopher tate <kt@connectfree.co.jp>
Date:   Fri,  3 Aug 2018 02:14:06 +0900

std/os/windows/advapi32.zig: add SystemFunction036;

Tracking Issue #1318 ;

Diffstat:
Mstd/os/windows/advapi32.zig | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/std/os/windows/advapi32.zig b/std/os/windows/advapi32.zig @@ -28,3 +28,8 @@ pub extern "advapi32" stdcallcc fn RegOpenKeyExW(hKey: HKEY, lpSubKey: LPCWSTR, pub extern "advapi32" stdcallcc fn RegQueryValueExW(hKey: HKEY, lpValueName: LPCWSTR, lpReserved: LPDWORD, lpType: LPDWORD, lpData: LPBYTE, lpcbData: LPDWORD,) LSTATUS; + +// RtlGenRandom is known as SystemFunction036 under advapi32 +// http://msdn.microsoft.com/en-us/library/windows/desktop/aa387694.aspx */ +pub extern "advapi32" stdcallcc fn SystemFunction036(output: PVOID, length: ULONG_PTR) BOOL; +pub const RtlGenRandom = SystemFunction036;