Created
November 12, 2013 09:33
-
-
Save jfsurban/7428076 to your computer and use it in GitHub Desktop.
Enumerate available connections on WM5 device - ConnMgrQueryDetailedStatus
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CONNMGR_CONNECTION_DETAILED_STATUS *pConnMgrDet; | |
HRESULT hResult; | |
DWORD dwBufferSize=0;/ | |
hResult=ConnMgrQueryDetailedStatus(pConnMgrDet,&dwBufferSize); | |
if(hResult==(HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER))) | |
{ | |
pConnMgrDet=(CONNMGR_CONNECTION_DETAILED_STATUS *)new BYTE[dwBufferSize]; | |
hResult=ConnMgrQueryDetailedStatus(pConnMgrDet,&dwBufferSize); | |
} | |
. | |
. | |
. | |
delete pConnMgrDet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment