The AIDA_pstCreateEventEx function creates a new AIDA event.
AIDA_tstEvent *AIDA_pstCreateEventEx(
handle hStack,
AIDA_tenEventType enType,
byte bLevel,
dword dwSize
bool boCyclic,
word wCycles
);
AIDA_pstCreateEvent returns a pointer to the new event on success.
If the event could not be created the function returns NULL. The application can retrieve the error code using AIDA_iGetError.
An AIDA application will only have to create events of the types AIDA_nenTransmitData, AIDA_nenStatus or AIDA_nenTimer for normal operation.
The dwSize parameter is placed in the dwDataSize or dwStatusSize member of the created event depending on the event type. This value may be decreased by the application if necessary but never be increased. In general the application should pass the final data block size to the AIDA_pstCreateEvent function so that no resizing is necessary.
In contrast to AIDA_pstCreateEvent this function will assign a valid event id in any case. This function shall not be used when an event shall be used as cyclic event because it already has been assigned a unique event id as a regular event if the event id manager is used. To create cyclic events use AIDA_pstCreateEvent and AIDA_boSetEventID instead.
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_boSetEventID, AIDA_boDeleteEvent, AIDA_pstCloneEvent, AIDA_boSendEvent, AIDA_pstReceiveEvent, AIDA_boWaitEvent, AIDA_boSetEventTypes, AIDA_boGetEventTypes