# Events

Natural Access events are defined in the ctadef.h include file. Events are prefixed with CTAEVN_. The following table alphabetically lists the Natural Access events:

Event name | Hex | Decimal | Description
--- | --- | --- | ---
CTAEVN_CLOSE_SERVICES_DONE | 0x10002103 | 268443907 | The specified services were closed on the context.
CTAEVN_DESTROY_CONTEXT_DONE | 0x10002101 | 268443905 | The context was destroyed.
CTAEVN_NULL_EVENT | 0x10002100 | 268443904 | ctaWaitEvent returned an error.
CTAEVN_OPEN_SERVICES_DONE | 0x10002102 | 268443906 | The specified services were opened on the context. Refer to ctaOpenServices.
CTAEVN_TRACE_MESSAGE | 0X10002104 | 268443908 | The buffer field of the CTA_EVENT structure points to a char array containing trace messages the server sent to the application.
CTAEVN_UPDATE_WAITOBJS | 0x10002005 | 268443653 | The internal array of wait objects managed by Natural Access changed. Refer to ctaQueryWaitObjects.
CTAEVN_WAIT_TIMEOUT | 0x10002004 | 268443652 | ctaWaitEvent timed out.