Skip to content

Commit 67d2140

Browse files
committed
fix(kernel32): Rename GetWindowHandleW to GetWindowHandle for consistency
1 parent e9c9166 commit 67d2140

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/demos/window.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ function WinMain(hInstance: HINSTANCE, nCmdShow: SW): number {
6969
}
7070

7171
debugger
72-
process.exitCode = WinMain(kernel32.GetModuleHandleW(null), SW.NORMAL)
72+
process.exitCode = WinMain(kernel32.GetModuleHandle(null), SW.NORMAL)

source/win32/kernel32/module.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export type HMODULE = HINSTANCE
1616
*
1717
* https://learn.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-getmodulehandlew
1818
*/
19-
export const GetModuleHandleW: koffi.KoffiFunc<(
19+
export const GetModuleHandle: koffi.KoffiFunc<(
2020
lpModuleName: string | null
2121
) => HMODULE> = kernel32.lib.func('GetModuleHandleW', cHMODULE, [ cLPCWSTR ])
2222

0 commit comments

Comments
 (0)