LogonUserA method

int LogonUserA(
  1. Pointer<Int8> lpszUsername,
  2. Pointer<Int8> lpszDomain,
  3. Pointer<Int8> lpszPassword,
  4. int dwLogonType,
  5. int dwLogonProvider,
  6. Pointer<Pointer<Void>> phToken,
)

Implementation

int LogonUserA(
  ffi.Pointer<ffi.Int8> lpszUsername,
  ffi.Pointer<ffi.Int8> lpszDomain,
  ffi.Pointer<ffi.Int8> lpszPassword,
  int dwLogonType,
  int dwLogonProvider,
  ffi.Pointer<ffi.Pointer<ffi.Void>> phToken,
) {
  return (_LogonUserA ??=
      _dylib.lookupFunction<_c_LogonUserA, _dart_LogonUserA>('LogonUserA'))(
    lpszUsername,
    lpszDomain,
    lpszPassword,
    dwLogonType,
    dwLogonProvider,
    phToken,
  );
}