diff --git a/packages/win32-def/src/lib/struct/struct.def.ts b/packages/win32-def/src/lib/struct/struct.def.ts index 928b771c..a163d657 100644 --- a/packages/win32-def/src/lib/struct/struct.def.ts +++ b/packages/win32-def/src/lib/struct/struct.def.ts @@ -50,6 +50,14 @@ export const POINT = { y: LONG, } as const +/** + * @link https://docs.microsoft.com/en-us/windows/win32/api/windef/ns-windef-pointl + */ +export const POINTL = { + x: LONG, + y: LONG, +} as const + /** https://docs.microsoft.com/zh-cn/windows/win32/api/winuser/ns-winuser-alttabinfo */ export const ALTTABINFO = { cbSize: DWORD, diff --git a/packages/win32-def/src/lib/struct/struct.types.ts b/packages/win32-def/src/lib/struct/struct.types.ts index 5fcb7563..269b5899 100644 --- a/packages/win32-def/src/lib/struct/struct.types.ts +++ b/packages/win32-def/src/lib/struct/struct.types.ts @@ -47,6 +47,15 @@ export interface POINT extends StructInstanceBase { y: LONG } +/** + * @link https://docs.microsoft.com/en-us/windows/win32/api/windef/ns-windef-pointl + */ +export interface POINTL extends StructInstanceBase { + x: LONG + y: LONG +} +export type PPOINTL = _POINTER + /** https://docs.microsoft.com/zh-cn/windows/win32/api/winuser/ns-winuser-alttabinfo */ export interface ALTTABINFO extends StructInstanceBase { cbSize: DWORD diff --git a/packages/win32-def/src/lib/struct/struct.var.def.ts b/packages/win32-def/src/lib/struct/struct.var.def.ts index 4f12ae2d..4171124a 100644 --- a/packages/win32-def/src/lib/struct/struct.var.def.ts +++ b/packages/win32-def/src/lib/struct/struct.var.def.ts @@ -4,6 +4,12 @@ import { Def } from '../def.enum.js' /** https://msdn.microsoft.com/en-us/library/windows/desktop/dd162805(v=vs.85).aspx */ export const POINT = Def.ptr +/** + * @link https://docs.microsoft.com/en-us/windows/win32/api/windef/ns-windef-pointl + */ +export const POINTL = Def.ptr +export const PPOINTL = Def.ptr + /** https://docs.microsoft.com/zh-cn/windows/win32/api/winuser/ns-winuser-alttabinfo */ export const ALTTABINFO = Def.ptr