PeekMessage function user32
Dispatches incoming sent messages, checks the thread message queue for a posted message, and retrieves the message (if any exist).
BOOL PeekMessageW(
LPMSG lpMsg,
HWND hWnd,
UINT wMsgFilterMin,
UINT wMsgFilterMax,
UINT wRemoveMsg
);
Implementation
int PeekMessage(
Pointer<MSG> lpMsg,
int hWnd,
int wMsgFilterMin,
int wMsgFilterMax,
int wRemoveMsg,
) => _PeekMessage(lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax, wRemoveMsg);