Re: CreateFile api call failing
- From: joy <joy@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 5 Apr 2006 08:41:01 -0700
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
- References:
- Re: CreateFile api call failing
- From: Paul G. Tobey [eMVP]
- Re: CreateFile api call failing
- From: joy
- Re: CreateFile api call failing
- From: Paul G. Tobey [eMVP]
- Re: CreateFile api call failing
- From: joy
- Re: CreateFile api call failing
- Prev by Date: how to set menu & title bar fonts for international support
- Next by Date: Re: HTML in pocket IE
- Previous by thread: Re: CreateFile api call failing
- Next by thread: Re: CreateFile api call failing
- Index(es):
Relevant Pages
|