Share via


ICorPublish::GetProcess Method

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

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

Parameters

Parameter Description

pid

[in] The identifier of the process.

ppProcess

[out] A pointer to the address of an ICorPublishProcess Interface 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: 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