mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 07:08:48 +00:00
Merge pull request #1733 from ftphikari/master
sys/windows: add some procedures
This commit is contained in:
@@ -62,6 +62,13 @@ foreign kernel32 {
|
|||||||
GetCurrentProcessId :: proc() -> DWORD ---
|
GetCurrentProcessId :: proc() -> DWORD ---
|
||||||
GetCurrentThread :: proc() -> HANDLE ---
|
GetCurrentThread :: proc() -> HANDLE ---
|
||||||
GetCurrentThreadId :: proc() -> DWORD ---
|
GetCurrentThreadId :: proc() -> DWORD ---
|
||||||
|
GetProcessTimes :: proc(
|
||||||
|
hProcess: HANDLE,
|
||||||
|
lpCreationTime: LPFILETIME,
|
||||||
|
lpExitTime: LPFILETIME,
|
||||||
|
lpKernelTime: LPFILETIME,
|
||||||
|
lpUserTime: LPFILETIME,
|
||||||
|
) -> BOOL ---
|
||||||
GetStdHandle :: proc(which: DWORD) -> HANDLE ---
|
GetStdHandle :: proc(which: DWORD) -> HANDLE ---
|
||||||
ExitProcess :: proc(uExitCode: c_uint) -> ! ---
|
ExitProcess :: proc(uExitCode: c_uint) -> ! ---
|
||||||
DeviceIoControl :: proc(
|
DeviceIoControl :: proc(
|
||||||
|
|||||||
@@ -60,6 +60,12 @@ foreign user32 {
|
|||||||
DestroyWindow :: proc(hWnd: HWND) -> BOOL ---
|
DestroyWindow :: proc(hWnd: HWND) -> BOOL ---
|
||||||
|
|
||||||
ShowWindow :: proc(hWnd: HWND, nCmdShow: c_int) -> BOOL ---
|
ShowWindow :: proc(hWnd: HWND, nCmdShow: c_int) -> BOOL ---
|
||||||
|
BringWindowToTop :: proc(hWnd: HWND) -> BOOL ---
|
||||||
|
GetTopWindow :: proc(hWnd: HWND) -> HWND ---
|
||||||
|
SetForegroundWindow :: proc(hWnd: HWND) -> BOOL ---
|
||||||
|
GetForegroundWindow :: proc() -> HWND ---
|
||||||
|
SetActiveWindow :: proc(hWnd: HWND) -> HWND ---
|
||||||
|
GetActiveWindow :: proc() -> HWND ---
|
||||||
|
|
||||||
GetMessageA :: proc(lpMsg: ^MSG, hWnd: HWND, wMsgFilterMin: UINT, wMsgFilterMax: UINT) -> BOOL ---
|
GetMessageA :: proc(lpMsg: ^MSG, hWnd: HWND, wMsgFilterMin: UINT, wMsgFilterMax: UINT) -> BOOL ---
|
||||||
GetMessageW :: proc(lpMsg: ^MSG, hWnd: HWND, wMsgFilterMin: UINT, wMsgFilterMax: UINT) -> BOOL ---
|
GetMessageW :: proc(lpMsg: ^MSG, hWnd: HWND, wMsgFilterMin: UINT, wMsgFilterMax: UINT) -> BOOL ---
|
||||||
|
|||||||
Reference in New Issue
Block a user