ICorProfilerInfo5::GetEventMask2 Method

.NET Framework 4.5

[Supported in the .NET Framework 4.5.2 and later versions]

Gets the current event categories for which the profiler wants to receive notifications from the common language runtime (CLR). It provides functionality not provided by the ICorProfilerInfo::GetEventMask method.

HRESULT GetEventMask2(
        [out] DWORD* pdwEventsLow,
        [out] DWORD* pdwEventsHigh
);

pdwEventsLow

[out] A pointer to a 4-byte value that specifies the categories of events. Each bit controls a different capability, behavior, or type of event. The bits are described in the COR_PRF_MONITOR enumeration.

pdwEventsHigh

[out] A pointer to a 4-byte value that specifies the categories of events. Each bit controls a different capability, behavior, or type of event. The bits are described in the COR_PRF_HIGH_MONITOR enumeration.

The GetEventMask2 method is used to determine which callbacks the profiler has subscribed to. Typically, you perform a logical OR of the pdwEventsLow and pdwEventsHigh values and any new bits you want to set, and then call the SetEventMask2 method.

This method is the recommended alternative to the GetEventMask method.

Platforms: See .NET Framework System Requirements.

Header: CorProf.idl, CorProf.h

Library: CorGuids.lib

.NET Framework Versions: 4.5.2

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft