Skip to content

Commit

Permalink
feat(win32-api): user32.SendMessageTimeoutW()
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingsong committed Jun 14, 2024
1 parent 307a628 commit 76f81cb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/win32-api/src/lib/user32/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,18 @@ export interface Win32Fns {
*/
SendMessageW: (hWnd: M.HWND, Msg: M.UINT, wPARAM: M.WPARAM, lPARAM: M.LPARAM) => M.LRESULT

/**
* @url https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-SendMessageTimeoutW
*/
SendMessageTimeoutW: (
hWnd: M.HWND,
Msg: M.UINT,
wParam: M.WPARAM,
lParam: M.LPARAM,
fuFlags: M.UINT,
uTimeout: M.UINT,
lpdwResult: M.DWORD_PTR) => M.LRESULT

/** https://docs.microsoft.com/zh-cn/windows/win32/api/winuser/nf-winuser-setforegroundwindow */
SetForegroundWindow: (hWnd: M.HWND) => M.BOOL

Expand Down Expand Up @@ -303,6 +315,8 @@ export const apiDef: M.DllFuncs<Win32Fns> = {

SendMessageW: [W.LRESULT, [W.HWND, W.UINT, W.WPARAM, W.LPARAM] ],

SendMessageTimeoutW: [W.LRESULT, [W.HWND, W.UINT, W.WPARAM, W.LPARAM, W.UINT, W.UINT, W.DWORD_PTR] ],

SetForegroundWindow: [W.BOOL, [W.HWND] ],

SetWindowPos: [W.BOOL, [W.HWND, W.HWND, W.INT, W.INT, W.INT, W.INT, W.UINT] ],
Expand Down

0 comments on commit 76f81cb

Please sign in to comment.