- Re: get the device name to create the handle
- Posted by Thomas F. Divine on August 6th, 2003
On Pocket PC 2003 you can communicate with the WLAN adapter in one of two
ways:
1.) Use NDISUIO as a "relay" between your application and the adapter
miniport. This means that you first open NDISUIO, then use the IOCTLs
defined in
uio_ce.c to query NDISUIO's bindings (IOCTL_NDISUIO_QUERY_BINDING) and then
make queries (IOCTL_NDISUIO_QUERY_OID_VALUE).
2.) Use some other NDIS protocol driver as a relay to the adapter miniport.
The PCAUSA Rawether for Windows CE product uses approach No. 2. A common API
can be used on Pocket PC 2002 and Pocket PC 2003.
You can download executables for the Pocket PC 2002 and Pocket PC 2003
versions of PCAUSA's "OID Scope" from the URL
http://www.rawether.net/embedded/WINCE/downloads.htm.
Good luck,
--
Thomas F. Divine
PCAUSA - Toolkits & Resources For Network Software Developers
NDIS Protocol - NDIS Intermediate - TDI Client/Filter
<http://www.pcausa.com> - <http://www.rawether.net>
"Marc-Aurčle Brothier" <m_a_r_c_o@shockfish.com> wrote in message
news:uegadi1WDHA.2476@tk2msftngp13.phx.gbl...
- Posted by Marc-Aurčle Brothier on August 6th, 2003
For the first solution, what can be the device name that will be used
for the CreateFile function ? simply "NDISUIO"?
/Marco
Thomas F. Divine wrote:
- Posted by Thomas F. Divine on August 6th, 2003
Try "UIO" (#defined as DOS_DEVICE_NAME in ndisuio.h). If that doesn't work,
then look for the "RegisterDevice" call in the NDISUIO code. Examine the
parameters passed to RegisterDevice and you should be able to determine what
to use.
I have never used NDISUIO on CE so I won't be able to give specific help.
You must learn the Windows CE I/O implementation which is different from
"Big Windows" from naming and other aspects - at least from a driver's
perspective.
Thomas
"Marc-Aurčle Brothier" <m_a_r_c_o@shockfish.com> wrote in message
news:3F311C44.5050202@shockfish.com...
- Posted by Paul G. Tobey [eMVP] on August 6th, 2003
The help has lots of information on NDISUIO, at least for eVC 4. Here's how
you open the NDISUIO driver:
ndisuioHdl = CreateFile( NDISUIO_DEVICE_NAME, 0, 0, NULL, OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL | FILE_FLAG_OVERLAPPED,
INVALID_HANDLE_VALUE );
Paul T.
"Thomas F. Divine" <tdivine@pcausa.com> wrote in message
news:%23fKVIADXDHA.2524@TK2MSFTNGP09.phx.gbl...
- Posted by Thomas F. Divine on August 7th, 2003
I added the topic "NDIS on Windows CE" to the NDIS FAQ at
http://www.ndis.com/faq/default.htm. It provides basic pointers to NDISUIO
information on Windows CE 4.X.
Regards,
--
Thomas F. Divine
PCAUSA - Toolkits & Resources For Network Software Developers
NDIS Protocol - NDIS Intermediate - TDI Client/Filter
<http://www.pcausa.com> - <http://www.rawether.net>
"Paul G. Tobey [eMVP]" <ptobey_no_spam@instrument.com> wrote in message
news:%23Kg$FSDXDHA.652@tk2msftngp13.phx.gbl...
- Posted by Marc-Aurčle Brothier on August 7th, 2003
Thank you since my help file in EVC4 doesn't work .... even after
resintallation. Maybe you can send me the file directly to my email
address (without the _).
/Marco
Paul G. Tobey [eMVP] wrote:
- Posted by Marc-Aurčle Brothier on August 7th, 2003
Should I do the
DeviceIoControl(
hAdapter,
IOCTL_NDISUIO_OPEN_DEVICE,
TEXT("VNETUSBA1"),
wcslen(TEXT("VNETUSBA1")) + sizeof(TCHAR),
NULL,
0,
&dwReturnedBytes,
NULL);
function to open my device???
Paul G. Tobey [eMVP] wrote:
- Posted by Marc-Aurčle Brothier on August 7th, 2003
I resolved my problem, thanks your help.... And i used the source code
in WRAPI to have example about the queries.
By the way, OPEN_DEVICE doesn't want to work at all ....
http://ramp.ucsd.edu/pawn/wrapi/
Marc-Aurčle Brothier wrote: