CreateRestrictedToken method
int
CreateRestrictedToken(
- Pointer<
Void> ExistingTokenHandle, - int Flags,
- int DisableSidCount,
- Pointer<
PSID_AND_ATTRIBUTES> SidsToDisable, - int DeletePrivilegeCount,
- Pointer<
PLUID_AND_ATTRIBUTES> PrivilegesToDelete, - int RestrictedSidCount,
- Pointer<
PSID_AND_ATTRIBUTES> SidsToRestrict, - Pointer<
Pointer< NewTokenHandle,Void> >
Implementation
int CreateRestrictedToken(
ffi.Pointer<ffi.Void> ExistingTokenHandle,
int Flags,
int DisableSidCount,
ffi.Pointer<PSID_AND_ATTRIBUTES> SidsToDisable,
int DeletePrivilegeCount,
ffi.Pointer<PLUID_AND_ATTRIBUTES> PrivilegesToDelete,
int RestrictedSidCount,
ffi.Pointer<PSID_AND_ATTRIBUTES> SidsToRestrict,
ffi.Pointer<ffi.Pointer<ffi.Void>> NewTokenHandle,
) {
return (_CreateRestrictedToken ??= _dylib.lookupFunction<
_c_CreateRestrictedToken,
_dart_CreateRestrictedToken>('CreateRestrictedToken'))(
ExistingTokenHandle,
Flags,
DisableSidCount,
SidsToDisable,
DeletePrivilegeCount,
PrivilegesToDelete,
RestrictedSidCount,
SidsToRestrict,
NewTokenHandle,
);
}