Hey I am running into a problem with CoCreateInstance() in a program that I am using to try to disable all the network adapters.
When I try to use
hr = CoCreateInstance(CLSID_ConnectionManager,
NULL,
CLSCTX_LOCAL_SERVER | CLSCTX_NO_CODE_DOWNLOAD,
IID_INetConnectionManager,
reinterpret_cast<LPVOID *>(&pNetConnectionManager)
);
I get two errors.
undefined reference to `_IID_INetConnectionManager'
undefined reference to `_CLSID_ConnectionManager'
I am using Code::Blocks and Windows XP.
Also I have the following headers/libs
windows.h
objbase.h
Netcon.h
libole32.a