DuplicateToken method

int DuplicateToken(
  1. Pointer<Void> ExistingTokenHandle,
  2. int ImpersonationLevel,
  3. Pointer<Pointer<Void>> DuplicateTokenHandle
)

Implementation

int DuplicateToken(
  ffi.Pointer<ffi.Void> ExistingTokenHandle,
  int ImpersonationLevel,
  ffi.Pointer<ffi.Pointer<ffi.Void>> DuplicateTokenHandle,
) {
  return (_DuplicateToken ??=
      _dylib.lookupFunction<_c_DuplicateToken, _dart_DuplicateToken>(
          'DuplicateToken'))(
    ExistingTokenHandle,
    ImpersonationLevel,
    DuplicateTokenHandle,
  );
}