From b44cbc9b1327360f58674a2bf90e39a52c0a747f Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sun, 24 Nov 2019 15:21:49 +0300 Subject: [PATCH] define RegQueryValueEx on Windows --- vlib/builtin/cfns.v | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vlib/builtin/cfns.v b/vlib/builtin/cfns.v index e349bc5b46..204cd5b6b9 100644 --- a/vlib/builtin/cfns.v +++ b/vlib/builtin/cfns.v @@ -105,6 +105,8 @@ fn C.ReadFile(hFile voidptr, lpBuffer voidptr, nNumberOfBytesToRead u32, lpNumbe fn C.GetFileAttributesW(lpFileName byteptr) u32 fn C.RegQueryValueExW(hKey voidptr, lpValueName &u16, lpReserved &u32, lpType &u32, lpData byteptr, lpcbData &u32) int fn C.RegOpenKeyExW(hKey voidptr, lpSubKey &u16, ulOptions u32, samDesired u32, phkResult voidptr) int +fn C.RegCloseKey() +fn C.RegQueryValueEx() voidptr fn C.RemoveDirectory() int fn C.GetStdHandle() int fn C.SetConsoleMode() @@ -133,7 +135,7 @@ fn C._wchdir() fn C._wgetcwd() int fn C._fullpath() int fn C.GetCommandLine() voidptr -fn C.CommandLineToArgvW() *voidptr +fn C.CommandLineToArgvW() &voidptr fn C.LocalFree() fn C.FindFirstFileW() voidptr fn C.FindFirstFile() voidptr @@ -143,4 +145,4 @@ fn C.MAKELANGID() int fn C.FormatMessage() voidptr fn C.CloseHandle() fn C.WaitForSingleObject() -fn C.GetExitCodeProcess() \ No newline at end of file +fn C.GetExitCodeProcess()