Network Callback Messages
These constants describe different types of messages received in the callback function set with SetNetworkEventCallback.
NETWORK_EVENT_CALL_IN
This message is provided by tpfnCallback dwEvent for an incoming call.
lpvParam is a pointer to a null terminated string, containing the caller ID number.
cbParam contains the size in bytes, of the data pointed by lpvParam.

NETWORK_EVENT_CALL_OUT
This message is provided by tpfnCallback dwEvent for an outgoing call.
lpvParam is a pointer to a BYTE, that contains 1 if this is a voice call, and 2 if this is a data call.
cbParam contains the size in bytes, of the data pointed by lpvParam, in this case 1 (1 BYTE).

NETWORK_EVENT_CALL_CONNECT
This message is provided by tpfnCallback dwEvent when a call is connected.
lpvParam is a pointer to a BYTE, that contains 1 if this is a voice call, and 2 if this is a data call.
cbParam contains the size in bytes, of the data pointed by lpvParam, in this case 1.

NETWORK_EVENT_CALL_DISCONNECT
This message is provided by tpfnCallback dwEvent when a call is disconnected.
lpvParam is a pointer to a BYTE, that contains the number of calls that were actually disconnected.
cbParam contains the size in bytes, of the data pointed by lpvParam.

NETWORK_EVENT_CALL_REJECT
This message is provided by tpfnCallback dwEvent when a call is rejected.
lpvParam is a pointer to a BYTE, that contains 1 if this is a voice call, and 2 if this is a data call.
cbParam contains the size in bytes, of the data pointed by lpvParam, in this case 1.

NETWORK_EVENT_CALL_INFO
This message is provided by tpfnCallback dwEvent when the call info is available.
lpvParam is a pointer to a null terminated string, containing the caller ID number.
cbParam contains the size in bytes, of the data pointed by lpvParam.

NETWORK_EVENT_CALL_BUSY
This message is provided by tpfnCallback dwEvent when a call comes as busy.
lpvParam is a pointer to a BYTE, that contains the number of currently active calls.
cbParam contains the size in bytes, of the data pointed by lpvParam.

NETWORK_EVENT_RING
This message is provided by tpfnCallback dwEvent when the phone is ringing.
lpvParam is not used.
cbParam is not used.

NETWORK_EVENT_DMTFDIGIT
This message is provided by tpfnCallback dwEvent when a digit has been received.
lpvParam is a pointer to a BYTE, that contains the digit ascii code.
cbParam contains the size in bytes, of the data pointed by lpvParam.

HARDWARE_EVENT_RADIOSTATUS
This message is provided by tpfnCallback dwEvent when the radio state changes.
lpvParam is a pointer to a BYTE, that contains 1 for radio on and 0 for radio off .
cbParam contains the size in bytes, of the data pointed by lpvParam.

HARDWARE_EVENT_REGISTERSTATUS
This message is provided by tpfnCallback dwEvent when the network registration state changes.
lpvParam is a pointer to a BYTE, that contains one of the NETWORK_STATE constants.
cbParam contains the size in bytes, of the data pointed by lpvParam.

DATA_EVENT_READ
This message is provided by tpfnCallback dwEvent when data has been read on a data connection.
lpvParam is a BYTE* pointer containing the data.
cbParam contains the size in bytes, of the data pointed by lpvParam.

NETWORK_EVENT_FAILED
This message is provided by tpfnCallback dwEvent when a network operation has failed to complete
lpvParam is a pointer to a NetworkCallFailedInfo structure.
cbParam contains the size in bytes, of the data pointed by lpvParam.

Requirements
OS Versions: Windows CE 1.0 and later.
Header: dyntapi.h.
Dll Library: dyntapidll.dll.

For the latest DynTAPI version, visit www.teksoftco.com.