PsApiEnumProcesses Method

Retrieves the process identifier for each process object in the system.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("PsApi.dll", CharSet = CharSet.Auto, BestFitMapping = false, 
	ThrowOnUnmappableChar = true, SetLastError = true)]
public static bool EnumProcesses(
	uint[] idProcess,
	uint cb,
	out uint refNeeded
)

Parameters

idProcess  UInt32
A pointer to an array that receives the list of process identifiers.
cb  UInt32
The size of the pProcessIds array, in bytes.
refNeeded  UInt32
The number of bytes returned in the pProcessIds array.

Return Value

Boolean
If the function succeeds, the return value is .

If the function fails, the return value is .

Remarks

See Also