Re: IOCTL_NDIS_QUERY_GLOBAL_STATS on CE/PPC 2003

From: Paul G. Tobey [eMVP] (ptobey_no_spam_at_instrument_no_spam.com)
Date: 02/27/04


Date: Fri, 27 Feb 2004 11:05:20 -0700

Well, let's see. You have to have the driver return the indication that it
supports the given OID via the standard OID OID_GEN_SUPPORTED_LIST. Once
you've done that, the application level should be able to use NDISUIO and
IOCTL_NDISUIO_QUERY_OID_VALUE with DeviceIoControl() to send that OID
request to your miniport. You should be able to look at the shared source
PCX500 miniport to see exactly what it's supposed to look like.

I don't know much about NDIS internals, but it seems like this is the only
way in CE to do this (and that the old IOCTL_NDIS_QUERY_GLOBAL_STATS method
is deprecated, even on the desktop).

Paul T.

"Maxim S. Shatskih" <maxim@storagecraft.com> wrote in message
news:uzIJrgQ$DHA.2184@TK2MSFTNGP12.phx.gbl...
> > Or, is this a custom OID for your driver?
>
> Yes, a custom OID of my driver (NDIS IM), which is absolutely
parameter-less.
> Just a way for a user app to "kick" the driver to so some operation.
>
> I'm planning to use the custom OID for this. In the driver code, the query
for
> this OID starts the operation (it can run async, the result reporting to
the
> caller is not necessary).
>
> In the app code, I must send the OID query for this OID.
>
> I also do not want to have large differences from Windows by being too
> CE-specific, I want the code to be as Windows compatible as possible.
>
> --
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> maxim@storagecraft.com
> http://www.storagecraft.com
>
>



Relevant Pages

  • Re: NDIS Miniport NIC Loads, But No TCP/IP
    ... Then there are lots of OID ... The Windows network entry says the driver is working but there ... If you don't really want to install the full checked build on your system, ... Copy the i386 folder within this folder to a ...
    (microsoft.public.development.device.drivers)
  • Re: WZC doesnt know our driver is WPA capable...How to tell WZC?
    ... I went through the tests that guidelines described and right now our driver ... But one weird thing is WZC didn't sent me the Query ... It basically skipped this query OID. ... I know I am very close to pass tests as "WPA capable". ...
    (microsoft.public.pocketpc.wireless)
  • Re: WZC doesnt know our driver is WPA capable...How to tell WZC?
    ... I went through the tests that guidelines described and right now our driver ... But one weird thing is WZC didn't sent me the Query ... It basically skipped this query OID. ... I know I am very close to pass tests as "WPA capable". ...
    (microsoft.public.windowsce.app.development)
  • Re: WZC doesnt know our driver is WPA capable...How to tell WZC?
    ... I went through the tests that guidelines described and right now our driver ... But one weird thing is WZC didn't sent me the Query ... It basically skipped this query OID. ... I know I am very close to pass tests as "WPA capable". ...
    (microsoft.public.pocketpc.developer.networking)
  • Re: WZC doesnt know our driver is WPA capable...How to tell WZC?
    ... I went through the tests that guidelines described and right now our driver ... But one weird thing is WZC didn't sent me the Query ... It basically skipped this query OID. ... I know I am very close to pass tests as "WPA capable". ...
    (microsoft.public.windowsxp.device_driver.dev)