Re: RAS Server for Win CE 4.20 (x86)
From: Jeff Kelley [MS] (jeffkel_at_online.microsoft.com)
Date: 08/24/04
- Previous message: Greg Scott [MS]: "RE: Virtual Com Ports..."
- In reply to: Popoi: "RAS Server for Win CE 4.20 (x86)"
- Next in thread: Jeff Kelley [MS]: "Re: RAS Server for Win CE 4.20 (x86)"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 24 Aug 2004 16:24:35 -0700
There is a master server enable switch as well as individual line on/off
switches. When you use RASCNTL_SERVER_GET_STATUS, it will return both the
master switch setting as well as the invidividual line settings. When you
write "i read the bEnabled value as 0", are you referring to the bEnable
within the RASCNTL_SERVERSTATUS structure (which is the master server
switch), or the bEnable within a RASCNTL_SERVERLINE structure?
Note that the RASCNTL_SERVER_ENABLE IOCTL is used to enable the master
server switch.
Unless the defaults are acceptable, you will need to set up the baud rate,
etc in the DeviceConfig blob. The sample code in
public\common\oak\drivers\netsamp\rasserver\unimodemutil.c demonstrates how
the speed can be set programatically. Here is a link to more info on this:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceoak40/html/coconeditingdeviceconfiguration.asp
-- Jeff Kelley Microsoft / Windows CE Networking This posting is provided AS IS with no warranties, and confers no rights. "Popoi" <Popoi@discussions.microsoft.com> wrote in message news:1217524E-9946-498E-80D4-B82DF896EC19@microsoft.com... > Hi all > > I'm trying to implement the RAS server in Windows CE 4.20 with little > success. I'm trying to follow the bullet points MS set up for starting it, > but i can't seem to get it running. > > What i have so far is a simple dialog app that does some basic querying of > the RAS server, i can enable and disable it. > > When i get the line information i find 2 lines: External Modem COM1: (a line > i attempted to create) and Serial Cable on COM1: (something that was probably > created by a code example from MS). > > However, when i query these lines using RASCNTL_SERVER_GET_STATUS in > RasIOControl() i read the bEnabled value as 0. If i try to Enable any of > these lines, using RASCNTL_SERVER_LINE_ENABLE, i get success, but when i > query again, bEnable is FALSE. > > Secondly: Do i need to set up baud rate, parity, databits, etc for serial > connections and modems? If so, how is that done? I've read about the mystical > DeviceConfig byte array that is undocumented... am i on the right track, and > how can i use it? I've been trying to use RasDevConfigDialogEdit() with zero > success. It returns an error value of 659. The documentation does not specify > what this means, or what defines are returned by the function. > > Any help or tips would be appreciated.! > > Cheers
- Previous message: Greg Scott [MS]: "RE: Virtual Com Ports..."
- In reply to: Popoi: "RAS Server for Win CE 4.20 (x86)"
- Next in thread: Jeff Kelley [MS]: "Re: RAS Server for Win CE 4.20 (x86)"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|