CreateProcessA

0001-01-01

CreateProcessA is a WinAPI function that creates a new process.

CreateProcessA is the ASCII version of CreateProcess.

BOOL CreateProcessA(
  LPCSTR               lpApplicationName,   // Path to executable
  LPSTR                lpCommandLine,       // Command line arguments
  LPSECURITY_ATTRIBUTES lpProcessAttributes, // Security settings for process
  LPSECURITY_ATTRIBUTES lpThreadAttributes,  // Security settings for thread
  BOOL                 bInheritHandles,     // Handle inheritance option
  DWORD                dwCreationFlags,     // Flags for creation (e.g., CREATE_NEW_CONSOLE)
  LPVOID               lpEnvironment,       // Environment variables
  LPCSTR               lpCurrentDirectory,  // Working directory
  LPSTARTUPINFOA       lpStartupInfo,       // Window appearance and process info
  LPPROCESS_INFORMATION lpProcessInformation // Receives process and thread handles
);