Skip to content

Commit

Permalink
feat(win32-api): user32.BroadcastSystemMessage()
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingsong committed Jun 14, 2024
1 parent 3161b1b commit 3b7a546
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/win32-api/src/lib/user32/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ import * as W from 'win32-def/common.def'
export interface Win32Fns {
BringWindowToTop: (hWnd: M.HWND) => M.BOOL

/**
* https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-broadcastsystemmessage
*/
BroadcastSystemMessage: (flags: M.DWORD, lpInfo: M.LPDWORD, Msg: M.UINT, wParam: M.WPARAM, lParam: M.LPARAM) => M.LRESULT

ClientToScreen: (hWnd: M.HWND, lpPoint: M.LPPOINT) => M.BOOL

/** https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-closewindow */
Expand Down Expand Up @@ -207,6 +212,8 @@ export interface Win32Fns {
export const apiDef: M.DllFuncs<Win32Fns> = {
BringWindowToTop: [W.BOOL, [W.HWND] ],

BroadcastSystemMessage: [W.LRESULT, [W.DWORD, W.LPDWORD, W.UINT, W.WPARAM, W.LPARAM] ],

/** url: https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-clienttoscreen */
ClientToScreen: [W.BOOL, [W.HWND, W.LPPOINT] ],

Expand Down

0 comments on commit 3b7a546

Please sign in to comment.