CreateProcessWithLogonW method

int CreateProcessWithLogonW(
  1. Pointer<Uint16> lpUsername,
  2. Pointer<Uint16> lpDomain,
  3. Pointer<Uint16> lpPassword,
  4. int dwLogonFlags,
  5. Pointer<Uint16> lpApplicationName,
  6. Pointer<Uint16> lpCommandLine,
  7. int dwCreationFlags,
  8. Pointer<Void> lpEnvironment,
  9. Pointer<Uint16> lpCurrentDirectory,
  10. Pointer<LPSTARTUPINFOW> lpStartupInfo,
  11. Pointer<LPPROCESS_INFORMATION> lpProcessInformation,
)

Implementation

int CreateProcessWithLogonW(
  ffi.Pointer<ffi.Uint16> lpUsername,
  ffi.Pointer<ffi.Uint16> lpDomain,
  ffi.Pointer<ffi.Uint16> lpPassword,
  int dwLogonFlags,
  ffi.Pointer<ffi.Uint16> lpApplicationName,
  ffi.Pointer<ffi.Uint16> lpCommandLine,
  int dwCreationFlags,
  ffi.Pointer<ffi.Void> lpEnvironment,
  ffi.Pointer<ffi.Uint16> lpCurrentDirectory,
  ffi.Pointer<LPSTARTUPINFOW> lpStartupInfo,
  ffi.Pointer<LPPROCESS_INFORMATION> lpProcessInformation,
) {
  return (_CreateProcessWithLogonW ??= _dylib.lookupFunction<
      _c_CreateProcessWithLogonW,
      _dart_CreateProcessWithLogonW>('CreateProcessWithLogonW'))(
    lpUsername,
    lpDomain,
    lpPassword,
    dwLogonFlags,
    lpApplicationName,
    lpCommandLine,
    dwCreationFlags,
    lpEnvironment,
    lpCurrentDirectory,
    lpStartupInfo,
    lpProcessInformation,
  );
}