Dear All,
I am developing an application to get the networks available on the system. Trying to run the same on windows vista. (The below code is based on the link : http://msdn.microsoft.com/en-us/library/ms697388(VS.85).aspx)
Below is the Code Snippet:
#include "Netlistmgr.h"
#include "Objbase.h"
INetworkListManager* pNLM = NULL;
IEnumNetworks *pEnumNetworks = NULL;
hr = ::CoCreateInstance(CLSID_CNetworkListManager,
NULL,
CLSCTX_LOCAL_SERVER,
IID_INetworkListManager,
(LPVOID*) &pNLM);
error C2065: 'CLSID_CNetworkListManager' : undeclared identifier
Kindly help... Have i missed any header files/Library files???
Thanks, Suren