Partilhar via


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

Parameter Description

Type

A value of the COR_PUB_ENUMPROCESS Enumeration 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 Interface 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 Interface 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: Windows 2000, Windows XP, Windows Server 2003 family

Header: CorPub.idl

Library: CorGuids.lib

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Reference

ICorPublish Interface