RtGenerateEvent

RtGenerateEvent generates custom Monitoring events.

Syntax

BOOL RtGenerateEvent(
    unsigned int kind,
    void * buffer,
    size_t size
   );

Parameters

kind

A user-selected unique identifier for the custom event. This identifier must be between 0 and 999. Identifiers outside of this range are reserved for internal use.

buffer

Must point to a memory region (no larger than 500 bytes) containing the custom event data.

size

The size of the buffer.

Return Value

Returns TRUE if the function succeeds, otherwise it returns FALSE.

Remarks

If RtGenerateEvent fails, call GetLastError to obtain an error code. The possible errors are as follows:

Requirements

Minimum Supported Version RTX64 2014
Header Rtapi.h
Library RtApi.lib (Windows), Rtx_Rtss.lib (RTSS)

See Also:

RTMonitorControl