This function places a voice call to the specified destination address.
DWORD NetworkDialNumber(
LPCWSTR pwszNumber
);
Parameters
pwszNumber
[in] Pointer to the null-terminated string that contains the destination address. This follows the standard dialable number format. This pointer can be NULL for non-dialed addresses (as with a hot phone). Service providers that have inverse multiplexing capabilities can enable an application to specify multiple addresses at once.
Return values
Zero indicates success. A non zero 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 .
Sample
// Application entry point
int WINAPI WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
// Load the RIL Library
if (LoadDynRILDll(TEXT("\\DynRILDll.dll")) != ERROR_SUCCESS) {
MessageBox(0, TEXT("Cannot load DynRILDll.dll . Try to reinstall this sample."), TEXT(""), MB_ICONERROR);
return 0;
}
DebugMode(1);
// Init the Library network component
if (NetworkInit() != ERROR_SUCCESS) {
UnloadDynRILDll();
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 (NetworkDialNumber(TEXT("555111222"))!=ERROR_SUCCESS) MessageBox(0,TEXT("Can't dial number"), TEXT(""),MB_ICONERROR);
...
NetworkDeinit();
UnloadDynRILDll();
...
Requirements
OS Versions: Windows CE 1.0 and later.
Header: dynril.h.
Dll Library: dynrildll.dll.