IOCTL_NDISUIO_OPEN_DEVICE on XP SP1?
From: L. Zhou (lzhou97_at_hotmail.com)
Date: 02/24/04
- Next message: Daniel: "NamedPipe and error 1784"
- Previous message: Arkady Frenkel: "Re: programmatically control of modem ppp connection"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 24 Feb 2004 09:37:13 -0600
I tried to open a network adapter in Windows XP (SP1) through
IOCTL_NDISUIO_OPEN_DEVICE. But no matter what device name I paas into, the
function DeviceIoControl() always returns error code 2. I even tried to
enumerate the adapters and then used the buffer returned by
(IOCTL_NDISUIO_QUERY_BINDING),
DeviceIoControl(
Handle,
IOCTL_NDISUIO_OPEN_DEVICE,
(LPVOID)(pQueryBinding +
pQueryBinding->DeviceNameOffset),
pQueryBinding->DeviceNameLength,
NULL,
0,
&BytesWritten,
NULL))
Here are the list of devices in my system,
0. \DEVICE\{7A68F24C-5D72-4430-AA88-6A484E0504BD}
- 3Com 3C920 Integrated Fast Ethernet Controller (3C905C-TX Compatible)
1. \DEVICE\{4AD186B7-C99E-4247-B72E-2984784F79ED}
- Texas Instrument WLAN Card
When I tried to open either one, I got error code 2. What is the device name
anyway? Isn't it "\DEVICE\{7A68F24C-5D72-4430-AA88-6A484E0504BD} " for the
first adapter?
Thanks a lot in advance.
- Next message: Daniel: "NamedPipe and error 1784"
- Previous message: Arkady Frenkel: "Re: programmatically control of modem ppp connection"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|