Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Wireless Networking > How set OID from user mode?

Reply
Thread Tools

How set OID from user mode?

 
 
noeftv
Guest
Posts: n/a
 
      04-04-2005
I am using Windows Xp sp1 ddk and I need set some OIDs of my wireless
card. How I can set OIDs 802.11 from user mode? What functios I need?
How do I use that functions?
Can I use DeviceIoControl with IOCTL_NDIS_QUERY_GLOBAL_STATS? How?
 
Reply With Quote
 
 
 
 
Pavel A.
Guest
Posts: n/a
 
      04-06-2005
"noeftv" <(E-Mail Removed)> wrote in message news:(E-Mail Removed) om...
> I am using Windows Xp sp1 ddk and I need set some OIDs of my wireless
> card. How I can set OIDs 802.11 from user mode? What functios I need?
> How do I use that functions?
> Can I use DeviceIoControl with IOCTL_NDIS_QUERY_GLOBAL_STATS? How?


No. IOCTL_NDIS_QUERY_GLOBAL_STATS by design can not set OIDs, only get.
You can try WMI to set some 802.11 OIDs.
--PA



 
Reply With Quote
 
 
 
 
noeftv
Guest
Posts: n/a
 
      04-12-2005
"Pavel A." <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> "noeftv" <(E-Mail Removed)> wrote in message news:(E-Mail Removed) om...
> > I am using Windows Xp sp1 ddk and I need set some OIDs of my wireless
> > card. How I can set OIDs 802.11 from user mode? What functios I need?
> > How do I use that functions?
> > Can I use DeviceIoControl with IOCTL_NDIS_QUERY_GLOBAL_STATS? How?

>
> No. IOCTL_NDIS_QUERY_GLOBAL_STATS by design can not set OIDs, only get.
> You can try WMI to set some 802.11 OIDs.
> --PA


Hello,
I can query/set OID 802.11 with NDISUIO.
I'm usinig NDISUIO for query/set from user mode.
I want to set some OID but first I want query some OID like SSID.The
code is below but it's wrong because when I call GetLastError()after
DeviceIoControl, GetLastError() return 1.What happen?
Can you tell me what happen? and Can you tell where is the Ssid?
Please, help me!!!!

hAndle = CreateFile(devicename,
GENERIC_READ|GENERIC_WRITE,
0,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL,
(HANDLE)INVALID_HANDLE_VALUE);


dwErr = GetLastError();
printf ("\nError al ejecutar CreateFile: %d \n", dwErr);

//OID_802_11_SSID//
//Query using NDISUIO//
UCHAR QueryBuffer[sizeof(NDISUIO_QUERY_OID)+
sizeof(NDIS_802_11_SSID)];
PNDISUIO_QUERY_OID pQueryOid;



pQueryOid = (PNDISUIO_QUERY_OID)&QueryBuffer[0];
pQueryOid->Oid = OID_802_11_SSID;

bl= DeviceIoControl (hAndle,
IOCTL_NDISUIO_QUERY_OID_VALUE,
&QueryBuffer[0],sizeof(QueryBuffer),
&QueryBuffer[0],sizeof(QueryBuffer),
&dwReturned,
NULL);


dwErr = GetLastError();
printf ("\nError al ejecutar DeviceIoControl: %d \n", dwErr);
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ASA 55xx oid active user ted Cisco 0 11-05-2008 12:11 PM
Net::SNMP dies on any OID error and doesn't return other possibly good values dan byers Perl 1 03-06-2004 09:50 AM
Re: OID to detect the line protocol Cisco Rich Blum Cisco 0 07-14-2003 04:54 PM
Re: OID to detect the line protocol Cisco Erik Tamminga Cisco 1 07-14-2003 03:56 PM
FCS Align Error OID`s Oliver Schlosser Cisco 0 07-11-2003 05:16 AM



Advertisments