Gets the total processor time that has been used by all threads while executing in the current application domain, since the application domain was created.
HRESULT GetCurrentCpuTime([in] DWORD dwAppDomainId, [out] ULONGLONG* pMilliseconds);
[in] The ID of the requested application domain.
[out] A pointer to the total processor time that has been used by all threads while executing in the current application domain since the application domain was created. This parameter can be
|S_OK||The method completed successfully.|
|COR_E_APPDOMAINUNLOADED||The application domain has been unloaded or does not exist.|
|E_FAIL||Application domain resource monitoring is not enabled.
All other failures.
This method is the unmanaged equivalent of the managed AppDomain.MonitoringTotalProcessorTime property.
Platforms: See System Requirements.
Library: Included as a resource in MSCorEE.dll
.NET Framework Versions: Available since 4