IGetAppTrackerData::GetComponentDetails method (comsvcs.h)
Retrieves detailed information about a single COM+ component hosted in a process.
Syntax
HRESULT GetComponentDetails(
[in] REFGUID ApplicationInstanceId,
[in] DWORD ProcessId,
[in] REFCLSID Clsid,
[in] DWORD Flags,
[out] ComponentSummary *Summary,
[out] ComponentStatistics *Statistics,
[out] ComponentHangMonitorInfo *HangMonitorInfo
);
Parameters
[in] ApplicationInstanceId
The application instance GUID that uniquely identifies the tracked process to select, or GUID_NULL if the ProcessId parameter will be used for selection instead.
[in] ProcessId
The process ID that identifies the process to select, or 0 if ApplicationInstanceId will be used for selection instead.
[in] Clsid
The CLSID of the component.
[in] Flags
A combination of flags from the GetAppTrackerDataFlags enumeration to select which data is returned. The following flags are supported: GATD_INCLUDE_CLASS_NAME (if retrieving a summary), GATD_INCLUDE_APPLICATION_NAME (if retrieving a summary).
[out] Summary
On return, a ComponentSummary structure with summary information for the component. This parameter can be NULL.
[out] Statistics
On return, a ComponentStatistics structure with statistics for the component. This parameter can be NULL.
[out] HangMonitorInfo
On return, a ComponentHangMonitorInfo structure with hang monitoring configuration for the component. This parameter can be NULL.
Return value
This method can return the standard return values E_INVALIDARG and E_OUTOFMEMORY, as well as the following values.
Return code | Description |
---|---|
|
The method completed successfully. |
|
The specified process does not exist, or is not hosting any tracked COM+ applications. |
|
The specified component does not exist in the specified process. |
Remarks
A process may be selected by its application instance ID or its process ID, but not both. Selection by application instance ID is generally preferred, because process IDs may be reused after a process terminates. However, selection by process ID may be useful if you obtain the process ID from some other source, such as a command line argument to your program.
You may request any or all of the information available for the component by passing non-NULL values for Summary, Statistics, or HangMonitorInfo. At least one of these parameters must be non-NULL.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP with SP2 [desktop apps only] |
Minimum supported server | Windows Server 2003 with SP1 [desktop apps only] |
Target Platform | Windows |
Header | comsvcs.h |