ICorPublish::GetProcess Method

Gets an ICorPublishProcess instance that represents the process with the specified identifier.

Syntax

HRESULT GetProcess(
    [in] unsigned              pid,
    [out] ICorPublishProcess   **ppProcess
);

Parameters

pid [in] The identifier of the process.

ppProcess [out] A pointer to the address of an ICorPublishProcess instance that represents the process.

Remarks

GetProcess fails if the process doesn't exist, or isn't a managed process that can be debugged by the current user.

Requirements

Platforms: See System Requirements.

Header: CorPub.idl, CorPub.h

Library: CorGuids.lib

.NET Framework Versions: Available since 1.0

See also