Solved

setting NDIS OID.

Posted on 2004-09-16
7
1,018 Views
Last Modified: 2012-06-21
Hi experts,
How will set NDIS OIDs. I can use deviceiocontrol and query OIDs. But i can not set any OID. How this could be done?
IOCTL_NDIS_QUERY_GLOBAL_STATS works for query. Is there a set constant for this purpose?

Thanks
0
Comment
Question by:mmurat
  • 2
  • 2
7 Comments
 
LVL 15

Expert Comment

by:unknown_routine
ID: 12076625
objects registered by the NDIS WMI provider have a one-to-one correspondence with NDIS object identifiers (OIDs).
therefore you can not set OID's directly.


have a look here:

http://www.ndis.com/faq/QA01050301/default.htm

and here

http://docsrv.sco.com:507/en/NetAdminG/CONTENTS.html


0
 

Author Comment

by:mmurat
ID: 12076688
so what should i do? I think some softwares like netstumbler, cirond winc or windows zero configuration can do this.
So what is the method doing this?
I need to associate and take the RSSI and NOISE. I dont have problem with RSSI or NOISE. But Association to a network needs to be made by setting OIDs.
or is there another method to do this?
thanx.
0
 
LVL 15

Expert Comment

by:unknown_routine
ID: 12076746
mmurat :

While im very experienced in VB and database but I have to confess that im a not

that good in network.

Add the 20 point question here:
http://www.experts-exchange.com/Networking/

and put a link to this page

http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_21133313.html

there. in the question title mention this is a 500 points question.


the chances that you get an answer there is 10 times more than here(VB forum)


Good luck.


0
 

Author Comment

by:mmurat
ID: 12092378
well. I found the Prism OIDs. They are working. But I have problem with data type.
This is the data type of  802_11_SSID OID.

typedef UCHARNDIS_802_11_SSID;
{
  ULONG  SsidLength;
  UCHAR  Ssid[32];
} NSID_802_11_SSID, *PNDIS_802_11_SSID;

'vb form
Public Type testssid
    length(1) As long
    ssid(32) As Byte
End Type

     setssid.length = 7
     setssid.ssid(0) = &H41
     setssid.ssid(1) = &H69
     setssid.ssid(2) = &H72
     setssid.ssid(3) = &H74
     setssid.ssid(4) = &H69
     setssid.ssid(5) = &H65
     setssid.ssid(6) = &H73
' ssid is Airties
nret = DeviceIoControl(hDevice, IOCTL_NDIS_QUERY_GLOBAL_STATS, OID_802_11_SSID, 4, setssid, 36, lpret, 0&)
when i run this code, card disconnects from network. But it doesnt connect to Airties network either.
Pls help..
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 12752449
PAQed with points refunded (500)

modulo
Community Support Moderator
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question