IOCTL_NDISUIO_OPEN_DEVICE on XP SP1?

From: L. Zhou (lzhou97_at_hotmail.com)
Date: 02/24/04


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.



Relevant Pages

  • stop error code on blue screen crash 0x0000008E
    ... stop error code on blue screen crash 0x0000008E ... NETGEAR FA311 Fast Ethernet Adapter ... Standard 101/102-Key or Microsoft Natural PS/2 Keyboard ...
    (microsoft.public.windowsxp.general)
  • RE: Problems using "IOCTL_NDISUIO_OPEN_DEVICE" on WinCE
    ... "A network adapter hardware error occurred. ... I am not sure what that the Error Code stands for. ... Is it true that NDISUIO allows only one application to access to the Adapter at a time. ... DWORD dwError = GetLastError; ...
    (microsoft.public.pocketpc.developer)
  • Re: I cant create new Receive Handler
    ... It seems that you are trying to add adapter under user account, ... > Client Computer: computer1.server.com ... > Error Code: 0x80070005, Access is denied. ... Administrator and Biztalk Administrator groups but it doesn't work. ...
    (microsoft.public.biztalk.general)
  • Re: Error Code 31 for Network Devices
    ... The integrated NVidia card, and 1394 adapter both ... reinstalled with drivers from the manufacturer. ... with the same error code. ...
    (microsoft.public.windows.mediacenter)
  • Re: Determine Type of Ethernet Adapter
    ... The error code is 87, ... INVALID_HANDLE_VALUE (hence my original post), ... What's the required format of an adapter name on WinCe? ...
    (microsoft.public.windowsce.app.development)