Re: CreateFile api call failing

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



hi,
I m not sure about the device name to be used in the call below to open a
device.
DeviceIoControl(
hAdapter,
IOCTL_NDISUIO_OPEN_DEVICE,
TEXT(""),//?????WHAT SHOULD I USE HERE???????
wcslen(TEXT("")) * sizeof(TCHAR),
NULL,
0,
&dwReturnedBytes,
NULL);

where do i find this entry?
is it in HKLM\Comm\
i m not seeing any diff in result if i use any value in this field,everytime
i m getting a valid handle
pleasee advice me!!!!!
waitin for the result
thanks
joy



"joy" wrote:

Hi ,
thanks for your help ,
i have opened the device handle.
but i m getting invalid parameter error when i m trying to use the following
call after it
pQueryOid = (PNDISUIO_QUERY_OID)&QueryBuffer[o];
pQueryOid->Oid = (NDIS_OID)OidCode
DeviceIoControl(hMac,
//handle obtained after create file and IOCTL_NDISUIO_OPEN_DEVICE
IOCTL_NDISUIO_QUERY_OID_VALUE,
(LPVOID)pQueryOid,
sizeof(NDISUIO_QUERY_OID) + sizeof(DWORD)
MyReturnedCount,
lpOverlapped)

please advice me.
can i use the above call fo all the OIDS eg for fetching BSSID list
or only for long values.
thanks
joy



"Paul G. Tobey [eMVP]" wrote:

You would not use CreateFile( adaptername, ... ) to do that. Look up
NDISUIO and use that to send OIDs to the driver. Obviously, Windows CE is
*not* XP, so expecting this back door method of accessing drivers from
applications to work the same is, at best, naive.

Paul T.

"joy" <joy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D8BA7E87-D0F4-411A-99A4-FE6290CC9C5E@xxxxxxxxxxxxxxxx
Hi,
i m trying to configure n check the driver using oids.
hence i m trying to open the interface to get a valid handle.
is there any other call which you would advice to achieve the same or
there
is some important thing i m missing out.
i would like to mention here that the same call succedds in normal xp
desktops.
thanks
joy


"Paul G. Tobey [eMVP]" wrote:

No, that's still not what you're trying to do; it's how you're trying to
do
it. You want to, what, send raw packets over the interface? Query some
status or information about the interface?

Paul T.

"joy" <joy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C9760CE3-2381-4E2E-8080-70261FA6E814@xxxxxxxxxxxxxxxx
hi ,
i m trying to open ISL1 interface and want to get a valid handle,to use
them
furthe rin
devioctl calls.
thanks
joyjit

"Paul G. Tobey [eMVP]" wrote:

If you're trying to open "NE20001", that will never work. *What* are
you
trying to accomplish (you've told us *how* you've decided to do it,
but
not
what you're trying to do)?

Paul T.

"joy" <joy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:8C7CAA72-9DA3-4C01-9800-D22B0F592F78@xxxxxxxxxxxxxxxx
os used : wince5.0
hi ,
i m trying to open a wlan driver interface using this call,
the call is failing with an error code 55.and the
HANDLE hMac ;
szMacFileName is the interafce name:
hMac = CreateFile(szMacFileName,
GENERIC_READ,
0, // FILE_SHARE_READ | FILE_SHARE_WRITE,
&SecurityAttributes,
OPEN_EXISTING,
dwFileAttributes,(value is
FILE_ATTRIBUTE_NORMAL)
NULL
);
please advice me on the relevant solutions
thanks in advance
joy









.



Relevant Pages

  • Re: Generic USB driver
    ... PB does describe how USB device is loaded. ... > Just a request for advice before I go charging off down a blind alley ... ... I've been asked to write a USB driver that offers the same functionality as ... (boot interface subclass), and InterfaceProtocolCode of 2. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Linux Firewall/LoadBalancer
    ... The bonding driver originally came from Donald Becker's beowulf patches for ... Build kernel with the bonding driver ... "Bonding driver support" in the "Network device support" section. ... so the bonding driver will automatically load when the bond0 interface is ...
    (Security-Basics)
  • Re: [RFC] Staging:IIO: New ABI
    ... Hardware chip or device accessed by on communication port. ... An event driven driver of data capture to an in kernel buffer. ... There is already a well-defined api for these things. ... don't have a custom interface just for these device. ...
    (Linux-Kernel)
  • [PATCH] IPMI driver updates, part 2
    ... It has been far too long since the last IPMI driver updates, ... This second part adds the "System Interface" driver. ...
    (Linux-Kernel)
  • [2.6 patch] remove comx driver docs
    ... info on the driver for Baycom style amateur radio modems ... -LMI) protocols are available as link-level protocol. ... -The COMX driver set has a new type of user interface based on the /proc ... -To create the interface 'comx0' which is the first channel of a COMX card: ...
    (Linux-Kernel)