Basic COM   «Prev 

Std Api coGetClassObject

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

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

3) 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.

4) Parameters riid is IID_IClassFactory

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