more Windows definitions

pull/2873/head
Alexander Medvednikov 2019-11-24 15:29:11 +03:00
parent b44cbc9b13
commit 748e8b7ce4
2 changed files with 4 additions and 2 deletions

View File

@ -146,3 +146,5 @@ fn C.FormatMessage() voidptr
fn C.CloseHandle() fn C.CloseHandle()
fn C.WaitForSingleObject() fn C.WaitForSingleObject()
fn C.GetExitCodeProcess() fn C.GetExitCodeProcess()
fn C.RegOpenKeyEx() voidptr
fn C.GetTickCount() i64

View File

@ -9,7 +9,7 @@ struct C.WPARAM
struct C.LPARAM struct C.LPARAM
struct C.LRESULT struct C.LRESULT
struct C.HGLOBAL struct C.HGLOBAL
struct C.HANDLE //struct C.HANDLE
struct C.WNDCLASSEX { struct C.WNDCLASSEX {
cbSize int cbSize int
@ -20,7 +20,7 @@ struct C.WNDCLASSEX {
fn C.RegisterClassEx(class WNDCLASSEX) int fn C.RegisterClassEx(class WNDCLASSEX) int
fn C.GetClipboardOwner() &HWND 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.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.EmptyClipboard()
fn C.CloseClipboard() fn C.CloseClipboard()
fn C.GlobalAlloc(uFlag u32, size i64) HGLOBAL fn C.GlobalAlloc(uFlag u32, size i64) HGLOBAL