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<STARTUPINFOW> lpStartupInfo,
  11. Pointer<PROCESS_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<STARTUPINFOW> lpStartupInfo,
  ffi.Pointer<PROCESS_INFORMATION> lpProcessInformation,
) {
  return _CreateProcessWithLogonW(
    lpUsername,
    lpDomain,
    lpPassword,
    dwLogonFlags,
    lpApplicationName,
    lpCommandLine,
    dwCreationFlags,
    lpEnvironment,
    lpCurrentDirectory,
    lpStartupInfo,
    lpProcessInformation,
  );
}