UNPKG

libwin32

Version:

Node bindings to native Win32 DLLs through Koffi

76 lines 3.19 kB
import koffi from 'koffi-cream'; import { type HTOKEN, type LSA_HANDLE } from '../ctypes.js'; import type { NTSTATUS_ } from '../consts.js'; export declare const advapi32: koffi.IKoffiLib; export declare const enum INTERNAL_TOKEN_INFORMATION_CLASS { TokenUser = 1, TokenGroups = 2, TokenPrivileges = 3, TokenOwner = 4, TokenPrimaryGroup = 5, TokenDefaultDacl = 6, TokenSource = 7, TokenType = 8, TokenImpersonationLevel = 9, TokenStatistics = 10, TokenRestrictedSids = 11, TokenSessionId = 12, TokenGroupsAndPrivileges = 13, /** @deprecated */ TokenSessionReference = 14, TokenSandBoxInert = 15, /** @deprecated */ TokenAuditPolicy = 16, TokenOrigin = 17, TokenElevationType = 18, TokenLinkedToken = 19, TokenElevation = 20, TokenHasRestrictions = 21, TokenAccessInformation = 22, TokenVirtualizationAllowed = 23, TokenVirtualizationEnabled = 24, TokenIntegrityLevel = 25, TokenUIAccess = 26, TokenMandatoryPolicy = 27, TokenLogonSid = 28, TokenIsAppContainer = 29, TokenCapabilities = 30, TokenAppContainerSid = 31, TokenAppContainerNumber = 32, TokenUserClaimAttributes = 33, TokenDeviceClaimAttributes = 34, /** @deprecated */ TokenRestrictedUserClaimAttributes = 35, /** @deprecated */ TokenRestrictedDeviceClaimAttributes = 36, TokenDeviceGroups = 37, TokenRestrictedDeviceGroups = 38, /** @deprecated */ TokenSecurityAttributes = 39, /** @deprecated */ TokenIsRestricted = 40, /** @deprecated */ TokenProcessTrustLevel = 41, /** @deprecated */ TokenPrivateNameSpace = 42, /** @deprecated */ TokenSingletonAttributes = 43, /** @deprecated */ TokenBnoIsolation = 44, /** @deprecated */ TokenChildProcessFlags = 45, /** @deprecated */ TokenIsLessPrivilegedAppContainer = 46, /** @deprecated */ TokenIsSandboxed = 47, /** @deprecated */ TokenIsAppSilo = 48, /** @deprecated */ TokenLastEnforce = 48 } export declare function getTokenInfo(hToken: HTOKEN, infoClass: INTERNAL_TOKEN_INFORMATION_CLASS, tokenInformationLength?: number): boolean; export declare const enum INTERNAL_POLICY_INFORMATION_CLASS { /** @deprecated */ PolicyAuditLogInformation = 1, PolicyAuditEventsInformation = 2, PolicyPrimaryDomainInformation = 3, /** @deprecated */ PolicyPdAccountInformation = 4, PolicyAccountDomainInformation = 5, PolicyLsaServerRoleInformation = 6, /** @deprecated */ PolicyReplicaSourceInformation = 7, /** @deprecated */ PolicyDefaultQuotaInformation = 8, PolicyModificationInformation = 9, /** @deprecated */ PolicyAuditFullSetInformation = 10, /** @deprecated */ PolicyAuditFullQueryInformation = 11, PolicyDnsDomainInformation = 12, /** @deprecated */ PolicyDnsDomainInformationInt = 13, /** @deprecated */ PolicyLocalAccountDomainInformation = 14, /** @deprecated */ PolicyMachineAccountInformation = 15 } export declare function queryPolicyInfo(policyHandle: LSA_HANDLE, infoClass: INTERNAL_POLICY_INFORMATION_CLASS): NTSTATUS_ | unknown; export declare function lsaFree(ptr: unknown): any; //# sourceMappingURL=lib.d.ts.map