Debugging Tools for Windows

GetNumberEventCallbacks

The GetNumberEventCallbacks method returns the number of event callbacks that are interested in the given events.

HRESULT
  IDebugClient5::GetNumberEventCallbacks(
    IN ULONG  EventFlags,
    OUT PULONG  Count
    );

Parameters

EventFlags
Specifies a set of events used to filter out some of the event callbacks; only event callbacks that have indicated an interest in one of the events in EventFlags will be counted. See DEBUG_EVENT_XXX for a list of the events.
Count
Receives the number of event callbacks that are interested in at least one of the events in EventFlags.

Return Value

S_OK
The method was successful.

This method may also return error values. See Return Values for more details.

Interface Version

GetNumberEventCallbacks is available in IDebugClient5 and later versions.

Comments

Each client can have at most one event callback registered with it. When a callback is registered with a client, its IDebugEventCallbacks::GetInterestMask method is called to allow the client to specify which events it is interested in.

For more information about callbacks, see Callbacks.

Requirements

Headers: Defined in dbgeng.h. Include dbgeng.h.

See Also

IDebugEventCallbacks, GetEventCallbacks, SetEventCallbacks, GetNumberOutputCallbacks, GetNumberInputCallbacks

Build machine: CAPEBUILD