Skip to content

Commit

Permalink
feat(win32-def): struct POINTL
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingsong committed Jul 19, 2022
1 parent c44979d commit 06ebc02
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/win32-def/src/lib/struct/struct.def.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
9 changes: 9 additions & 0 deletions packages/win32-def/src/lib/struct/struct.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions packages/win32-def/src/lib/struct/struct.var.def.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 06ebc02

Please sign in to comment.