Skip to content

Commit e6b7389

Browse files
committed
feat(api): change user32 parameters def to D.WString
- CreateWindowExW() - SetWindowTextW()
1 parent 3e8e72a commit e6b7389

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

packages/win32-api/src/lib/user32/dict/CD.def.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ export class DefUser32_C extends DefUser32_B {
2121
static CreateWindowExW = [
2222
D.HWND, [
2323
D.DWORD,
24-
D.LPCTSTR,
25-
D.LPCTSTR,
24+
D.WString,
25+
D.WString,
2626
D.DWORD,
2727
D.INT,
2828
D.INT,

packages/win32-api/src/lib/user32/dict/G.def.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ export class DefUser32_G extends DefUser32_F {
2727
/** https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getcursorpos */
2828
static GetCursorPos = [D.BOOL, [`_Out_ ${S.LPPOINT}`]]
2929

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

33+
static GetForegroundWindow = [D.HWND, []]
34+
3535
/** https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getmessagew */
3636
static GetMessageW = [D.BOOL, [`_Out_ ${S.LPMSG}`, D.HWND, D.UINT, D.UINT]]
3737

packages/win32-api/src/lib/user32/dict/G.types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ export class User32_G extends User32_F {
3434
/** https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getcursorpos */
3535
GetCursorPos: (lpPoint: S.POINT_Type) => T.BOOL
3636

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

40+
GetForegroundWindow: () => T.HWND
41+
4242
/** https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getmessagew */
4343
GetMessageW: (lpMsg: S.MSG_Type, HWND: T.HWND, wMsgFilterMin: T.UINT, wMsgFilterMax: T.UINT) => T.BOOL
4444

packages/win32-api/src/lib/user32/dict/S.def.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class DefUser32_S extends DefUser32_R {
2626
static SetWindowPos = [D.BOOL, [D.HWND, D.HWND, D.INT, D.INT, D.INT, D.INT, D.UINT]]
2727

2828
/** https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowtextw */
29-
static SetWindowTextW = [D.BOOL, [D.HWND, D.LPCWSTR]]
29+
static SetWindowTextW = [D.BOOL, [D.HWND, D.WString]]
3030

3131
// @TODO WINEVENTPROC
3232
static SetWinEventHook = [D.HWINEVENTHOOK, [D.UINT, D.UINT, D.HMODULE, D.WINEVENTPROC, D.DWORD, D.DWORD, D.UINT]]

0 commit comments

Comments
 (0)