ICorPublish::EnumProcesses Method
Gets an enumerator for the managed processes running on this computer.
HRESULT EnumProcesses (
[in] COR_PUB_ENUMPROCESS Type,
[out] ICorPublishProcessEnum **ppIEnum
);
Parameters
Type
A value of the COR_PUB_ENUMPROCESS enumeration that specifies the type of process to be retrieved. In the current version, only COR_PUB_MANAGEDONLY is valid.ppIEnum
A pointer to the address of an ICorPublishProcessEnum instance that is the enumerator of the processes.
Remarks
The enumerator's collection of processes is based on a snapshot of the processes that are running when the EnumProcesses method is called. The enumerator will not include any processes that terminate before or start after EnumProcesses is called.
The EnumProcesses method may be called more than once on this ICorPublish instance to create a new up-to-date collection of processes. Existing collections will not be affected by subsequent calls of the EnumProcesses method.
Requirements
Platforms: See .NET Framework System Requirements.
Header: CorPub.idl
Library: CorGuids.lib
.NET Framework Versions: 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0