CreateProcessAsUserA method

int CreateProcessAsUserA(
  1. Pointer<Void> hToken,
  2. Pointer<Int8> lpApplicationName,
  3. Pointer<Int8> lpCommandLine,
  4. Pointer<LPSECURITY_ATTRIBUTES> lpProcessAttributes,
  5. Pointer<LPSECURITY_ATTRIBUTES> lpThreadAttributes,
  6. int bInheritHandles,
  7. int dwCreationFlags,
  8. Pointer<Void> lpEnvironment,
  9. Pointer<Int8> lpCurrentDirectory,
  10. Pointer<LPSTARTUPINFOA> lpStartupInfo,
  11. Pointer<LPPROCESS_INFORMATION> lpProcessInformation,
)

Implementation

int CreateProcessAsUserA(
  ffi.Pointer<ffi.Void> hToken,
  ffi.Pointer<ffi.Int8> lpApplicationName,
  ffi.Pointer<ffi.Int8> lpCommandLine,
  ffi.Pointer<LPSECURITY_ATTRIBUTES> lpProcessAttributes,
  ffi.Pointer<LPSECURITY_ATTRIBUTES> lpThreadAttributes,
  int bInheritHandles,
  int dwCreationFlags,
  ffi.Pointer<ffi.Void> lpEnvironment,
  ffi.Pointer<ffi.Int8> lpCurrentDirectory,
  ffi.Pointer<LPSTARTUPINFOA> lpStartupInfo,
  ffi.Pointer<LPPROCESS_INFORMATION> lpProcessInformation,
) {
  return (_CreateProcessAsUserA ??= _dylib.lookupFunction<
      _c_CreateProcessAsUserA,
      _dart_CreateProcessAsUserA>('CreateProcessAsUserA'))(
    hToken,
    lpApplicationName,
    lpCommandLine,
    lpProcessAttributes,
    lpThreadAttributes,
    bInheritHandles,
    dwCreationFlags,
    lpEnvironment,
    lpCurrentDirectory,
    lpStartupInfo,
    lpProcessInformation,
  );
}