From 748e8b7ce476b3047e76672a46508fac59bed0f6 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sun, 24 Nov 2019 15:29:11 +0300 Subject: [PATCH] more Windows definitions --- vlib/builtin/cfns.v | 2 ++ vlib/clipboard/clipboard_windows.v | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/vlib/builtin/cfns.v b/vlib/builtin/cfns.v index 204cd5b6b9..49a887f058 100644 --- a/vlib/builtin/cfns.v +++ b/vlib/builtin/cfns.v @@ -146,3 +146,5 @@ fn C.FormatMessage() voidptr fn C.CloseHandle() fn C.WaitForSingleObject() fn C.GetExitCodeProcess() +fn C.RegOpenKeyEx() voidptr +fn C.GetTickCount() i64 \ No newline at end of file diff --git a/vlib/clipboard/clipboard_windows.v b/vlib/clipboard/clipboard_windows.v index eb658f3c6c..8cb239a259 100644 --- a/vlib/clipboard/clipboard_windows.v +++ b/vlib/clipboard/clipboard_windows.v @@ -9,7 +9,7 @@ struct C.WPARAM struct C.LPARAM struct C.LRESULT struct C.HGLOBAL -struct C.HANDLE +//struct C.HANDLE struct C.WNDCLASSEX { cbSize int @@ -20,7 +20,7 @@ struct C.WNDCLASSEX { fn C.RegisterClassEx(class WNDCLASSEX) int fn C.GetClipboardOwner() &HWND fn C.CreateWindowEx(dwExStyle i64, lpClassName &u16, lpWindowName &u16, dwStyle i64, x int, y int, nWidth int, nHeight int, hWndParent i64, hMenu voidptr, hInstance voidptr, lpParam voidptr) &HWND -fn C.MultiByteToWideChar(CodePage u32, dwFlags u16, lpMultiByteStr byteptr, cbMultiByte int, lpWideCharStr u16, cchWideChar int) int +//fn C.MultiByteToWideChar(CodePage u32, dwFlags u16, lpMultiByteStr byteptr, cbMultiByte int, lpWideCharStr u16, cchWideChar int) int fn C.EmptyClipboard() fn C.CloseClipboard() fn C.GlobalAlloc(uFlag u32, size i64) HGLOBAL