RtMonitorSetTriggers
RtMonitorSetTriggers transiently sets the event types that will trigger the start of a monitoring session.
Syntax
BOOL RtMonitorSetTriggers( const RT_MONITOR_TRIGGER_CONTROL * eventTriggers, size_t countEventTriggers, BOOL enable );
Parameters
eventTriggers
An array of RT_MONITOR_TRIGGER_CONTROL structures that will either be set or unset as monitoring triggers based on parameter enable.
countEventTriggers
The number of elements in the array.
enable
Determines whether the events are enabled or disabled as trigger events.
Return Value
Returns TRUE if successful, otherwise it returns FALSE and sets the last error value.
REMarks
For operation MONITOR_CONTROL_SET_EVENT_TRIGGERS, the following kinds of monitoring events cannot be associated with triggers:
- MF_EVENT_KIND_RESERVED (Reserved)
- MF_EVENT_KIND_BUGCHECK_RTSS_RESERVED (Bugcheck RTSS)
- MF_EVENT_KIND_MARKER (Marker)
- MF_EVENT_KIND_SUBSYSTEM_STOP (Subsystem Stop)
- MF_EVENT_KIND_FAST_SEMAPHORE_ACQUIRE (Fast Semaphore Acquire)
- MF_EVENT_KIND_FAST_SEMAPHORE_RELEASE (Fast Semaphore Release)
- MF_EVENT_KIND_FAST_SEMAPHORE_RELEASE_ALL (Fast Semaphore Release All)
- MF_EVENT_KIND_WFSOEX_WAIT (WaitForSingleObjectEx Wait)
- MF_EVENT_KIND_WFMOEX_WAIT (WaitForMultipleObjectEx Wait)
- MF_EVENT_KIND_THREAD_SLEEP (Thread Sleep)
Attempts to associate one of the above event kinds with a trigger will cause RtMonitorSetTriggers to fail with ERROR_INVALID_PARAMETER.
Requirements
Minimum Supported Version |
RTX64 3.6 |
Header |
Rtapi.h |
Library | rtx_rtss.lib (RTSS), rtapi.h (Windows) |
See Also: