I have this piece of C++ code which creates a COM object and am looking to redo this in Python using win32com.client, but just cant seems to find a how to or example below is the C++ code.
C++ CODE:
//Initialize COM
CheckHR( CoInitialize(NULL) );
//Get an Instance of INetConnectionManager
CheckHR( CoCreateInstance(CLSID_ConnectionManager, NULL, CLSCTX_SERVER, IID_INetConnectionManager, (void**)&pManager) );
PYTHON CODE: (thus far)
//Create COM object, not working
object = win32com.client.Dispatch("INetConnectionManager")
C++ CODE:
//Initialize COM
CheckHR( CoInitialize(NULL) );
//Get an Instance of INetConnectionManager
CheckHR( CoCreateInstance(CLSID_ConnectionManager, NULL, CLSCTX_SERVER, IID_INetConnectionManager, (void**)&pManager) );
PYTHON CODE: (thus far)
//Create COM object, not working
object = win32com.client.Dispatch("INetConnectionManager")