This function deinitializes the Network Component.
void NetworkDeinit(void);
Parameters
none.
Return values
None.
Remarks
If this function is called when the application has lines open or calls active, the call handles are deleted and TAPI automatically performs the equivalent of a lineClose on each open line.
Sample
// Application entry point
int WINAPI WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
// Load the TAPI Library
if (LoadDynTapiDll(TEXT("\\DynTapiDll.dll")) != ERROR_SUCCESS) {
MessageBox(0, TEXT("Cannot load DynTapiDll.dll . Try to reinstall this sample."), TEXT(""), MB_ICONERROR);
return 0;
}
DebugMode(1);
// Init the Library network component
if (NetworkInit(hInstance) != ERROR_SUCCESS) {
UnloadDynTapiDll();
MessageBox(0, TEXT("Error using the network, does this device have a phone module?"), TEXT(""), MB_ICONERROR);
return 0;
}
// Set callback for events
SetNetworkEventCallback((tpfnCallback)PhoneCallback);
...
NetworkDeinit();
UnloadDynTapiDll();
...
Requirements
OS Versions: Windows CE 1.0 and later.
Header: dyntapi.h.
Dll Library: dyntapidll.dll.