
Chapter 19: Wireless Wide-Area Networking
Windows Mobile and Windows Embedded Hand-Held
Psion Mobile Devices Developers Guide
208
The following example uses the RAS namespace for the Mobile Devices SDK to make the Internet connec-
tion. See Chapter 12: “RAS (Remote Access Service)” for more information.
19.7.2 Windows Mobile and Windows Embedded Hand-Held
For Windows Mobile operating systems, Microsoft provides the Connection Manager API. This replaces RAS
for making WWAN connections.
For a list of Psion computers that support Connection Manager and that support RAS see
Section 12.2 Support for RAS and Windows Connection Manager on Psion Computers on page 87.
For more information on using the Connection Manager API, visit the following URLs:
http://msdn2.microsoft.com/en-us/library/bb416435.aspx
http://msdn2.microsoft.com/en-us/library/bb840031.aspx
http://msdn.microsoft.com/en-ca/netframework/dd296752.aspx
See also Section 19.7.3 The DbGprs.csv File on page 209 for information that may need to be provided to
complete the connection.
if (hRasComm != NULL)
{
RasHangUp(hRasComm);
hRasComm = NULL;
}
return FALSE;
}
return TRUE;
}
//
// Window's Message handler (WndProc)
//
case WM_RASDIALEVENT:
{
RASCONNSTATE rasconnstate = (RASCONNSTATE) wParam;
DWORD dwError = (DWORD) lParam;
}
return TRUE;
using PsionTeklogix.WWAN;
using PsionTeklogix.RAS;
bool returnValue = true;
// see ealier section on WWAN Initialization
if (InitWWANandWait())
{
private Entry wwanEntry = new Entry("Wireless WAN");
wwanEntry.UserName = "ISP@CINGULARGPRS.COM";
wwanEntry.Password = "CINGULAR1";
try
{
if (!wwanEntry.Dial(false))
{
returnValue = false;
}
}
catch (Exception ex)
{
MessageBox.Show("FAIL: \r\n" + ex.Message, "RAS Dial");
returnValue = false;
}
}
return returnValue;
Kommentare zu diesen Handbüchern