This is the top-level interface for publishing processes on a machine.
IDL Declaration.
interface ICorPublish : IUnknown { HRESULT EnumProcesses([in] COR_PUB_ENUMPROCESS type, [out] ICorPublishProcessEnum **ppIEnum); HRESULT GetProcess([in] unsigned pid, [out] ICorPublishProcess **ppProcess); };
EnumProcesses
HRESULT EnumProcesses([in] COR_PUB_ENUMPROCESS type, [out] ICorPublishProcessEnum **ppIEnum);
Retrieves a list of processes on a given machine. The list of processes may or may not be managed depending on the filter flags specified. The list is based on a snapshot of the processes running when the enumeration method is called. If new processes start or existing ones stop while enumerating, the list will remain the same.
Parameter | Description |
---|---|
type | The filter to be used in returning the processes. |
ppIEnum | Pointer to a pointer to an enumerator for the requested processes. |
GetProcess
HRESULT GetProcess([in] unsigned pid, [out] ICorPublishProcess **ppProcess);
Gets an ICorPublishProcess object for the process with the given process ID.
Parameter | Description |
---|---|
pid | The ID of a process. |
ppProcess | Pointer to a pointer to an ICorPublishProcess object for the requested process. |