Skip to content

Commit

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

0 comments on commit c44979d

Please sign in to comment.