For languages that do not support registering callback functions for external DLL's, we have provided a check event pool mechanism. This function will return the oldest event received, from the internal queue.
DWORD CheckNetworkEvent(
PDWORD dwEvent,
LPVOID lpvParam,
PDWORD cbParam
);
Parameters
dwEvent
Pointer to a DWORD, that will receive the event code
lpvParam
Pointer that will receive the address of the event additional data (eg. CalledID number, type of call, etc)
cbParam
Pointer to a DWORD, that will receive the size of the event additional data
Return values
Zero indicates success. A negative error number indicates that an error occurred. For additional error information, enable the library debug mode.
Remarks
The messages used are the same as in the case of the callback.
The Callback type is defined as:
typedef void (*tpfnCallback)(DWORD dwEvent,LPVOID lpvParam,DWORD cbParam);
This function is used to provide processing for any messages received from the Network Component.
For additional info on events, see Callback Messages .
Requirements
OS Versions: Windows CE 1.0 and later.
Header: dyntapi.h.
Dll Library: dyntapidll.dll.