CreateProcessA method

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

Implementation

int CreateProcessA(
  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 (_CreateProcessA ??=
      _dylib.lookupFunction<_c_CreateProcessA, _dart_CreateProcessA>(
          'CreateProcessA'))(
    lpApplicationName,
    lpCommandLine,
    lpProcessAttributes,
    lpThreadAttributes,
    bInheritHandles,
    dwCreationFlags,
    lpEnvironment,
    lpCurrentDirectory,
    lpStartupInfo,
    lpProcessInformation,
  );
}