Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Called to initialize the code profiler whenever a new common language runtime (CLR) application is started.
HRESULT Initialize(
[in] IUnknown *pICorProfilerInfoUnk);
Parameters
Parameter | Description |
---|---|
pICorProfilerInfoUnk |
[in] Pointer to an IUnknown interface that the profiler must query for an ICorProfilerInfo Interface interface pointer. |
Remarks
The Initialize call is the only opportunity to enable (or disable) callbacks that are immutable. Once a callback is enabled by the Initialize call, it cannot be disabled later using ICorProfilerInfo::SetEventMask Method. The COR_PRF_MONITOR_IMMUTABLE value of the COR_PRF_MONITOR Enumeration enumeration indicates which events are immutable.
Requirements
Platforms: Windows 2000, Windows XP, Windows Server 2003 family
Header: CorProf.idl
Library: CorGuids.lib
.NET Framework Version: 2.0