Debugging Tools for Windows |
The GetNumberEvents method returns the number of events for the current target, if the number of events is fixed.
HRESULT
IDebugControl3::GetNumberEvents(
OUT PULONG Events
);
This method may also return error values. See Return Values for more details.
GetNumberEvents is available in IDebugControl3 and later versions.
Crash dump files contain a static list of events; each event represents a snapshot of the target at a particular point in time. If the current target is a crash dump file, this method sets Events to the number of stored events and returns S_OK.
Live targets generate events dynamically and do not necessarily have a known set of events. If the current target is a live target with unconstrained number of events, this method sets Events to the number of events currently available and returns S_FALSE.
For more information, see the topic Event Information.
Headers: Defined in Dbgeng.h. Include Dbgeng.h.