LogonUserExW method

int LogonUserExW(
  1. Pointer<Uint16> lpszUsername,
  2. Pointer<Uint16> lpszDomain,
  3. Pointer<Uint16> lpszPassword,
  4. int dwLogonType,
  5. int dwLogonProvider,
  6. Pointer<Pointer<Void>> phToken,
  7. Pointer<Pointer<Void>> ppLogonSid,
  8. Pointer<Pointer<Void>> ppProfileBuffer,
  9. Pointer<Uint64> pdwProfileLength,
  10. Pointer<PQUOTA_LIMITS> pQuotaLimits,
)

Implementation

int LogonUserExW(
  ffi.Pointer<ffi.Uint16> lpszUsername,
  ffi.Pointer<ffi.Uint16> lpszDomain,
  ffi.Pointer<ffi.Uint16> lpszPassword,
  int dwLogonType,
  int dwLogonProvider,
  ffi.Pointer<ffi.Pointer<ffi.Void>> phToken,
  ffi.Pointer<ffi.Pointer<ffi.Void>> ppLogonSid,
  ffi.Pointer<ffi.Pointer<ffi.Void>> ppProfileBuffer,
  ffi.Pointer<ffi.Uint64> pdwProfileLength,
  ffi.Pointer<PQUOTA_LIMITS> pQuotaLimits,
) {
  return (_LogonUserExW ??= _dylib
      .lookupFunction<_c_LogonUserExW, _dart_LogonUserExW>('LogonUserExW'))(
    lpszUsername,
    lpszDomain,
    lpszPassword,
    dwLogonType,
    dwLogonProvider,
    phToken,
    ppLogonSid,
    ppProfileBuffer,
    pdwProfileLength,
    pQuotaLimits,
  );
}