NetworkDialData
This function places a data call to the specified destination address.
DWORD NetworkDialData(
   LPCWSTR pwszNumber
);
Parameters
pwszNumber
[in] Pointer to the null-terminated string that contains the destination address.

Return values
Zero indicates success. A negative error number indicates that an error occurred. For additional error information, enable the library debug mode.

Remarks
After dialing has completed, several network messages are usually sent to the application to notify it about the progress of the call. See Network Callback Messages .
If the data call succeeds, and the line is connected, a handler to the serial comm port associated with the line is automatically configured and the user can send data with SendData API or receive data streams in the Callback function with the DATA_EVENT_READ.

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);
    // Try dialing a number
    if (NetworkDialData(TEXT("555111222"))!=ERROR_SUCCESS) MessageBox(0,TEXT("Can't dial modem"), TEXT(""),MB_ICONERROR);
    ...
    NetworkDeinit();
    UnloadDynTapiDll();
    ...

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.