This section provides information about managing processes in Windows. Processes are instances of running programs, each with its own memory space, resources, and execution context.

Key Concepts

Core Functions

Process Creation

The primary function for creating a new process is CreateProcess. It allows you to specify the executable image, command-line arguments, environment, security attributes, and handles for the new process and its primary thread.

BOOL CreateProcess( LPCSTR lpApplicationName, LPSTR lpCommandLine, LPSECURITY_ATTRIBUTES lpProcessAttributes, LPSECURITY_ATTRIBUTES lpThreadAttributes, BOOL bInheritHandles, DWORD dwCreationFlags, LPVOID lpEnvironment, LPCSTR lpCurrentDirectory, LPSTARTUPINFOA lpStartupInfo, LPPROCESS_INFORMATION lpProcessInformation );

Refer to the CreateProcess documentation for detailed parameter descriptions and usage examples.

Process Management

Process Information Structures

Various structures are used to hold information about processes:

Related Topics