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 by the common language runtime (CLR) to give the profiler an opportunity to initialize its state after an attach operation.
Syntax
HRESULT InitializeForAttach(
[in] IUnknown * pCorProfilerInfoUnk,
[in] void * pvClientData,
[in] UINT cbClientData);
Parameters
pCorProfilerInfoUnk
[in] An interface pointer for the ICorProfilerInfo*
interface.
pvClientData
[in] A pointer to the data passed to the IClrProfiling::AttachProfiler method in its pvClientData
parameter. If this parameter is null, cbClientData
will be 0 (zero). The CLR frees this memory when it returns from InitializeForAttach
.
cbClientData
[in] The size, in bytes, of the data that pvClientData
points to.
Remarks
The CLR calls InitializeForAttach
to give the profiler an opportunity to request callbacks.
Requirements
Platforms: See System Requirements.
Header: CorProf.idl, CorProf.h
Library: CorGuids.lib
.NET Framework Versions: Available since 4