From c44979dc4360f6561d19f6a3357880d83b03103c Mon Sep 17 00:00:00 2001 From: waiting <1661926154@qq.com> Date: Mon, 18 Jul 2022 23:45:08 +0800 Subject: [PATCH] feat(win32-def): ACCESS_MASK --- packages/win32-def/src/lib/common.def.ts | 4 ++++ packages/win32-def/src/lib/common.types.ts | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/packages/win32-def/src/lib/common.def.ts b/packages/win32-def/src/lib/common.def.ts index 9a94d845..d009d71f 100644 --- a/packages/win32-def/src/lib/common.def.ts +++ b/packages/win32-def/src/lib/common.def.ts @@ -7,6 +7,10 @@ import { Def } from './def.enum.js' const { _WIN64 } = config +/** + * @link https://docs.microsoft.com/en-us/windows/win32/secauthz/access-mask-format + */ +export const ACCESS_MASK = Def.int32 export const ATOM = Def.uint16 export const DWORD = Def.uint32 export const PVOID = _WIN64 ? Def.uint64Ptr : Def.uint32Ptr diff --git a/packages/win32-def/src/lib/common.types.ts b/packages/win32-def/src/lib/common.types.ts index b8ffe90c..cda7ecc0 100644 --- a/packages/win32-def/src/lib/common.types.ts +++ b/packages/win32-def/src/lib/common.types.ts @@ -13,6 +13,10 @@ export type WNDPROC = Buffer /** number: 32bit, bitint: 64bit */ export type PTR_Addr = number | BigIntStr +/** + * @link https://docs.microsoft.com/en-us/windows/win32/secauthz/access-mask-format + */ +export type ACCESS_MASK = number export type ATOM = number // uint16 export type DWORD = number export type PVOID = Buffer