Gets the type of the task that is currently executing.
HRESULT GetCurrentTaskType( [out] ETaskType *pTaskType );
[out] A pointer to a value of the ETaskType enumeration that indicates the type of task that is currently executing.
Platforms: See System Requirements.
Library: Included as a resource in MSCorEE.dll
.NET Framework Versions: Available since 2.0