OOPortal OOPortal


Basic COM   «Prev 

Std Api coGetClassObject

The rclsid parameter is the CLSID of the COM object whose class factory we are interested in

Parameter dwContext is CLSCTX_INPROC_SERVER. This tells COM we want to access a COM object's class factory form an in-process server.

pServerInfo is used with DCOM to specify the machine to access the server on. For us this value is NULL. This tells COM to look in the registry for the location of the server.

Parameters riid is IID_IClassFactory

ppv will contain a pointer to IClassFactory if the call is successful