That's a *very* big job. Think about all of the possible configuration
options for wireless: WEP keys, open/shared keys, automatically-generated
keys or manually-entered keys, if the access points aren't broadcasting
their SSID values, the user would need to enter those, WPA (two types, TKIP
and PSK, which requires the entry of a key), and then there's the
authentication stuff EAP-TLS, PEAP, etc., etc.
OK, so convinced yet? I assume that, since you're talking about a Web page,
you're planning to have a Web server on the device, right? And, when the
guy wants to configure the unit, he has to plug in wired Ethernet, configure
the wireless stuff, then allow wireless to connect and check that? How is
the Web server going to make something in .NET CF 2.0 happen? I don't
recall the Windows CE Web server having the ability to be extended using
managed code.
Convinced now? Well, it is possible. The best reference to the actual
wireless API is probably going to be the source code for the WZCTool that
comes with Windows CE itself. If you are building this device, you should
find it in Platform Builder's folder structure at
PUBLIC\COMMON\OAK\DRIVERS\NETSAMP\WZCTOOL. There's no actual written
documentation of the API, but we've wrapped some of the things that it can
do in OpenNETCF's SDF,
www.opennetcf.org. There's not enough stuff there,
probably, to write a complete configurator, but there are some things that
you'll need to call in native code wrapped in managed code, at least.
An alternative method of doing this, since you're planning to force the guy
to plug in wired Ethernet anyway, is to include the Remote Display utility
in the device OS and ship the matching PC side of that utility. When the
remote display utility runs, it allows the matching program on the PC to
remotely see the screen of the device, sending keyboard and mouse actions to
the device, etc. If you did that, you'd just have to find a way to
configure what PC the device will talk to, which is a much easier thing to
accomplish with a Web page (just launch "cerdisp.exe -c" after writing the
IP address of the target PC to the right spot in the registry). In that
case, the full Windows CE wireless configuration API is available with no
coding from you (except to save the IP to the registry). Much easier and
much easier to maintain, if MS changes something.
Paul T.