Skip to content

Commit

Permalink
feat(win32-api): user32 GetClassLongPtrW()
Browse files Browse the repository at this point in the history
no test
  • Loading branch information
waitingsong committed Jun 30, 2024
1 parent c97cbb3 commit d25d02a
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/G.def.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ export class DefUser32_G extends DefUser32_F {

static GetForegroundWindow = [D.HWND, []]

/** https://learn.microsoft.com/zh-cn/windows/win32/api/winuser/nf-winuser-getclasslongptrw */
static GetClassLongPtrW = [D.ULONG_PTR, [D.HWND, D.INT]]

static GetMessageW = [D.BOOL, [D.LPMSG, D.HWND, D.UINT, D.UINT]]

static GetParent = [D.HWND, [D.HWND]]
Expand Down
3 changes: 3 additions & 0 deletions packages/win32-api/src/lib/user32/dict/G.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ export class User32_G extends User32_F {

GetForegroundWindow: () => T.HWND

/** https://learn.microsoft.com/zh-cn/windows/win32/api/winuser/nf-winuser-getclasslongptrw */
GetClassLongPtrW: (hWnd: T.HWND, nIndex: T.INT) => T.ULONG_PTR

GetMessageW: (lpMsg: T.LPMSG, HWND: T.HWND, wMsgFilterMin: T.UINT, wMsgFilterMax: T.UINT) => T.BOOL

GetParent: (hWnd: T.HWND) => T.HWND
Expand Down

0 comments on commit d25d02a

Please sign in to comment.