The AIDA_pstReceiveEvent function fetches one event from the AIDA receive event queue.
AIDA_tstEvent *AIDA_pstReceiveEvent(
handle hStack,
dword dwStackLevelMask,
dword dwEventMask,
tstTimeVal *pstTimeout
);
AIDA_pstReceiveEvent returns a pointer to a received event.
In case of failure the function will return NULL. The application can retrieve the error code using AIDA_iGetError.
If dwEventMask is not set to receive all events the events of types not selected in dwEventMask remain in the queue. Either the application may prevent the generation of events of unwanted types using AIDA_boSetEventTypes or has to make sure that it removes unwanted events from the queue before a queue overflow occurs.
If an AIDA component can not process an event generated by a lower component it will pass it to the next higher AIDA component in the stack. So it may happen that the AIDA_pstReceiveEvent function returns events of lower components. An application is able to block the generation of these eventually unwanted events using the AIDA_boSetEventTypes function.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Linux: Requires a kernel supporting ELF binaries.
Header: Declared in bsk_aida.h, also requires portab.h.
Import Library (Windows): Use BSK_AIDA.lib.
AIDA Overview, AIDA Functions, AIDA_pstCreateEvent, AIDA_pstCreateEventEx, AIDA_boSetEventID, AIDA_boDeleteEvent, AIDA_pstCloneEvent, AIDA_boSendEvent, AIDA_boWaitEvent, AIDA_boSetEventTypes, AIDA_boGetEventTypes