ICorPublishProcess describes a process on a machine.
IDL Declaration.
interface ICorPublishEnum : IUnknown { HRESULT EnumAppDomains([out] ICorPublishAppDomainEnum **ppEnum); HRESULT GetDisplayName([in] SIZE_T cchName, [out] SIZE_T *pcchName, [out, size_is(cchName), length_is(*pcchName)] WCHAR szName[]); HRESULT GetProcessID([out] unsigned *pid); HRESULT IsManaged([out] BOOL *pbManaged); };
EnumAppDomains
HRESULT EnumAppDomains([out] ICorPublishAppDomainEnum **ppEnum);
Enumerate the list of know application domains in this process.
Parameter | Description |
---|---|
ppEnum | Pointer to pointer to the enumerator for application domains in this process. |
GetDisplayName
HRESULT GetDisplayName([in] SIZE_T cchName, [out] SIZE_T *pcchName, [out, size_is(cchName), length_is(*pcchName)] WCHAR szName[]);
Gets the display name for a process.
Parameter | Description |
---|---|
cchName | The size of the buffer passed to the method. |
pcchName | The actual length of the display name. This may be more than the size of the buffer in which case the method should be called again with the correct buffer size. |
szName | Pointer to the buffer to receive the characters in the display name. |
GetProcessID
HRESULT GetProcessID([out] unsigned *pid);
Gets the operating system identification number of this process.
Parameter | Description |
---|---|
pid | Pointer to the OS process ID of this process. |
IsManaged
HRESULT IsManaged([out] BOOL *pbManaged);
Checks whether or not this process is running managed code. Note that this method can return false at one point in time, but true later later on, if managed code is loaded into the process after the enumerator was built.
Parameter | Description |
---|---|
pbManaged | Pointer to a boolean that is true if this process is running managed code, false otherwise. |