Solved

setting NDIS OID.

Posted on 2004-09-16
7
1,009 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
PAQed with points refunded (500)

modulo
Community Support Moderator
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we 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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now