Skip to content

Commit

Permalink
feat(api): user32 CallWindowProcW()
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingsong committed Jun 30, 2024
1 parent db7b985 commit 3aa6467
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/win32-api/src/lib/user32/dict/CD.def.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import { DefUser32_B } from './AB.def.js'

export class DefUser32_C extends DefUser32_B {

/** https://learn.microsoft.com/zh-cn/windows/win32/api/winuser/nf-winuser-callwindowprocw */
static CallWindowProcW = [D.LRESULT, [D.WNDPROC, D.HWND, D.UINT, D.WPARAM, D.LPARAM]]

/** https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-changedisplaysettingsexw */
static ChangeDisplaySettingsExW = [D.LONG, [D.WString, S.LPDEVMODEW, D.HWND, D.DWORD, D.LPVOID]]

Expand Down
3 changes: 3 additions & 0 deletions packages/win32-api/src/lib/user32/dict/CD.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import { User32_B } from './AB.types.js'

export class User32_C extends User32_B {

/** https://learn.microsoft.com/zh-cn/windows/win32/api/winuser/nf-winuser-callwindowprocw */
CallWindowProcW: (lpPrevWndFunc: T.WNDPROC, hWnd: T.HWND, Msg: T.UINT, wParam: T.WPARAM, lParam: T.LPARAM) => T.LRESULT

/** https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-changedisplaysettingsexw */
ChangeDisplaySettingsExW: (
lpszDeviceName: T.WString,
Expand Down

0 comments on commit 3aa6467

Please sign in to comment.