Calvin
Fri Jul 01 13:58:18 CDT 2005
Tom, I agreed that using C to query WMI is complicated. I personally use
VBScript whenever I want to query my driver for WMI. However, there's a UM
app with src in the e100 sample shows how to query/set OID via wmi in C.
--
Calvin Guan Windows DDK MVP
Staff SW Engineer, NetXtreme MINIPORT
Enterprise Network Controller Engineering
Broadcom Corporation www.broadcom.com
<pcausa@hotmail.com> wrote in message
news:1120243137.479151.169880@g49g2000cwa.googlegroups.com...
> It is scarey when questions like this show up...
>
> If you want to get RSSI and other information from a Wireless adapter
> then you must be able to make NDIS queries for data that is identified
> by a NDIS "Object Identifier" (OID). The OIDs in the OID_802_11_xyz
> family of OIDs are reserved for 802.11 adapter information. For
> example, OID_802_11_RSSI is used to fetch the current received signal
> strength indication in dBm.
>
> You must read the Windows Driver Development Kit (DDK) documentation to
> learn about all of the OIDs. You can start by looking at the MSDN at
>
http://msdn.microsoft.com. Search for "802.11 Wireless LAN Objects" to
> get started.
>
> Now, how to actually make the NDIS query from your application.
>
> Unfortunately, I don't know Beans about Java...
>
> Using 'C' you can make the necessary queries using
> IOCTL_NDIS_QUERY_GLOBAL_STATS. The PCAUSA MacAddr II sample illustrates
> using IOCTL_NDIS_QUERY_GLOBAL_STATS. See:
>
>
http://www.pcausa.com/Utilities/macaddr2.htm
>
> You can also try using the WMI interface to fetch OID information (Too
> complex for me...). See:
>
>
http://www.ndis.com/faq/QA01050301/default.htm
>
> You can also consider using a companion NDIS protocol driver of your
> own. Start with the NDISPROT sample from the recent DDK.
>
> Good luck,
>
> Thomas F. Divine
>