RtGenerateEvent

RtGenerateEvent generates custom Monitoring events.

Syntax

Copy
BOOL RtGenerateEvent(
    [in]    unsigned int kind,
    [in]    void * buffer,
    [in]    size_t size
   );

Parameters

[in] 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.

[in] buffer

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

[in] size

The size of the buffer.

Return Value

If the function succeeds, it returns TRUE. If the function fails, it returns FALSE.

Remarks

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

Requirements

Minimum supported version Header Library

wRTOS 1.0 SDK

RtApi.h

RtApi.lib (Windows), Startup.lib (RTSS)

See Also: