Click here to Skip to main content
15,912,457 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Infinite Linking fights back Pin
John R. Shaw27-May-03 5:28
John R. Shaw27-May-03 5:28 
GeneralRe: Infinite Linking fights back Pin
Peter Weyzen27-May-03 7:48
Peter Weyzen27-May-03 7:48 
GeneralRe: Infinite Linking fights back Pin
John R. Shaw27-May-03 10:13
John R. Shaw27-May-03 10:13 
GeneralRe: Infinite Linking ( This time, i logged on before ) Pin
John M. Drescher27-May-03 10:39
John M. Drescher27-May-03 10:39 
GeneralRe: Infinite Linking ( This time, i logged on before ) Pin
Miszou29-May-03 12:03
Miszou29-May-03 12:03 
GeneralRe: Infinite Linking ( This time, i logged on before ) Pin
Somaa3-Jun-03 13:41
Somaa3-Jun-03 13:41 
GeneralInfinite Linking... Pin
Anonymous26-May-03 14:11
Anonymous26-May-03 14:11 
QuestionDeviceIoControl & OID_802_11_BSSID_LIST_SCAN ? Pin
clintsinger26-May-03 12:08
clintsinger26-May-03 12:08 
Hi All,

I am hoping that there is someone out there who will understand my problem as there seems to be very little documentation avalible to read the values of the NDIS 5.1 compatible drivers. I would like to initiate a scan of the BSSID's in my network area. The documentaion tells me I need to use OID_802_11_BSSID_LIST_SCAN to force the wirelss nic to scan the area for access points. Unforetunately I haven't been able to guess how to call this feature. The code that I tried is the following

PNDISUIO_QUERY_OID      pQueryOid       = NULL;

pSetOid = (PNDISUIO_SET_OID)&QueryBuffer[0];
pSetOid->ptcDeviceName = _T("WLAGS461");
pSetOid->Oid = OID_802_11_BSSID_LIST_SCAN;

hr = DeviceIoControl(
        m_hNdisUio,
        IOCTL_NDISUIO_SET_OID_VALUE,
        (LPVOID) pSetOid,
        sizeof(PNDISUIO_SET_OID),
        NULL,
        0,
        &dwBytesReturned,
        NULL);


but it fails with error 0x57 (parameter not correct) and I don't know what to change.

I also have the following code that I have been using to get the aquired list (or the one already in the NIC database)

<code>
	PNDISUIO_QUERY_OID		pQueryOid		= NULL;

	pQueryOid = (PNDISUIO_QUERY_OID)&QueryBuffer[0];
	pQueryOid->ptcDeviceName = _T("WLAGS461");
	pQueryOid->Oid = OID_802_11_BSSID_LIST;

	hr = DeviceIoControl(
			m_hNdisUio,
			IOCTL_NDISUIO_QUERY_OID_VALUE,
			(LPVOID) pQueryOid,
			0xFFF,
			(LPVOID) pQueryOid,
			0xFFF,
			&dwBytesReturned,
			NULL);

</code>


and it works fine. I get a list of access points.

Anyone have any suggestions?

Sincerly,
Clint Singer

P.S. I should mention that I am also working on Windows CE (although that shouldn't make a differance except for the ptcDeviceName) paramter.
AnswerRe: DeviceIoControl &amp; OID_802_11_BSSID_LIST_SCAN ? Pin
amitalonm9-Oct-09 13:21
amitalonm9-Oct-09 13:21 
QuestionWhat is wrong with this way of displaying a bitmap on a window? Pin
Redeemer-dk26-May-03 11:58
Redeemer-dk26-May-03 11:58 
QuestionClassWizard Object IDs? Pin
Jonah Bishop26-May-03 11:39
Jonah Bishop26-May-03 11:39 
AnswerRe: ClassWizard Object IDs? Pin
John R. Shaw26-May-03 12:09
John R. Shaw26-May-03 12:09 
GeneralStretchBlt memory leak Pin
Anonymous26-May-03 11:32
Anonymous26-May-03 11:32 
GeneralRe: StretchBlt memory leak Pin
John R. Shaw26-May-03 11:42
John R. Shaw26-May-03 11:42 
QuestionPicture in a ListCtrl ?? Pin
Cris26-May-03 10:30
Cris26-May-03 10:30 
AnswerRe: Picture in a ListCtrl ?? Pin
Anonymous26-May-03 23:35
Anonymous26-May-03 23:35 
GeneralRe: Picture in a ListCtrl ?? Pin
Cris27-May-03 1:27
Cris27-May-03 1:27 
GeneralDraw text in a pane of a static splitter in a SDI application Pin
Claude Gagnon26-May-03 10:13
Claude Gagnon26-May-03 10:13 
GeneralRe: Draw text in a pane of a static splitter in a SDI application Pin
Neville Franks26-May-03 11:28
Neville Franks26-May-03 11:28 
GeneralRe: Draw text in a pane of a static splitter in a SDI application Pin
John R. Shaw26-May-03 11:57
John R. Shaw26-May-03 11:57 
GeneralCS_SAVEBITS Pin
John R. Shaw26-May-03 8:22
John R. Shaw26-May-03 8:22 
GeneralRe: CS_SAVEBITS Pin
Neville Franks26-May-03 11:31
Neville Franks26-May-03 11:31 
GeneralRe: CS_SAVEBITS Pin
John R. Shaw26-May-03 12:15
John R. Shaw26-May-03 12:15 
GeneralRe: CS_SAVEBITS Pin
Neville Franks26-May-03 12:20
Neville Franks26-May-03 12:20 
GeneralRe: CS_SAVEBITS Pin
John R. Shaw26-May-03 12:48
John R. Shaw26-May-03 12:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.