CODConnection::QueueEvent

boolCODConnection::QueueEvent(IEvent*pIEvent, UINTnPriority)

Place an event in the queue and assign it a priority.

Defined in: OdConnection.cpp

Return Value

TRUE if the event is successfully added to the queue; otherwise FALSE.

Parameters

pIEvent

Pointer to event object.

nPriority

Priority that the queue should assign to the event.

Comments

This function inserts the given event into a list sorted by priority. If the list exceeds the value of the static member m_nMaxEvents, the event at the front of the list is discarded.