RtMonitorEnableComponents

RtMonitorEnableComponents transiently sets the generation of monitor events by one or more RTX64 product components. Changes made by this function are transient, and thus last only until the RTX64 Subsystem stops. To persistently change which components have event generation enabled, use the Managed Code Framework API Monitor.Subsystem.EnableComponents.

Syntax

BOOL RtMonitorEnableComponents(
    unsigned __int64 components,
    BOOL enable
);

Parameters

components

Specifies the component to select monitor events for.

enable

Specifies whether to enable or disable the components specified by parameter components.

Return Value

Returns TRUE if successful, otherwise it returns FALSE and sets the last error value. Use function RtMonitorGetEnabledComponents to return a list of the product components that are currently enabled.

Requirements

Minimum Supported Version

 

RTX64 3.6

Header

Rtapi.h

Library rtx_rtss.lib (RTSS), rtapi.h (Windows)

See Also: