AdjustTokenPrivileges method

int AdjustTokenPrivileges(
  1. Pointer<Void> TokenHandle,
  2. int DisableAllPrivileges,
  3. Pointer<PTOKEN_PRIVILEGES> NewState,
  4. int BufferLength,
  5. Pointer<PTOKEN_PRIVILEGES> PreviousState,
  6. Pointer<Uint64> ReturnLength,
)

Implementation

int AdjustTokenPrivileges(
  ffi.Pointer<ffi.Void> TokenHandle,
  int DisableAllPrivileges,
  ffi.Pointer<PTOKEN_PRIVILEGES> NewState,
  int BufferLength,
  ffi.Pointer<PTOKEN_PRIVILEGES> PreviousState,
  ffi.Pointer<ffi.Uint64> ReturnLength,
) {
  return (_AdjustTokenPrivileges ??= _dylib.lookupFunction<
      _c_AdjustTokenPrivileges,
      _dart_AdjustTokenPrivileges>('AdjustTokenPrivileges'))(
    TokenHandle,
    DisableAllPrivileges,
    NewState,
    BufferLength,
    PreviousState,
    ReturnLength,
  );
}