mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Improved win32 bindings according to Kelimions suggestions with enums and bitsets
This commit is contained in:
@@ -23,7 +23,8 @@ foreign user32 {
|
||||
eventMin, eventMax: DWORD,
|
||||
hmodWinEventProc: HMODULE,
|
||||
pfnWinEvenProc: WINEVENTPROC,
|
||||
idProcess, idThread, dwmFlags: DWORD,
|
||||
idProcess, idThread: DWORD,
|
||||
dwFlags: WinEventFlags,
|
||||
) -> HWINEVENTHOOK ---
|
||||
|
||||
IsChild :: proc(hWndParent, hWnd: HWND) -> BOOL ---
|
||||
@@ -579,3 +580,12 @@ RedrawWindowFlags :: enum UINT {
|
||||
RDW_FRAME = 0x0400,
|
||||
RDW_NOFRAME = 0x0800,
|
||||
}
|
||||
|
||||
WinEventFlags :: bit_set[WinEventFlag; DWORD]
|
||||
|
||||
WinEventFlag :: enum DWORD {
|
||||
WINEVENT_OUTOFCONTEXT = 0,
|
||||
WINEVENT_SKIPOWNTHREAD = 1,
|
||||
WINEVENT_SKIPOWNPROCESS = 2,
|
||||
WINEVENT_INCONTEXT = 4,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user