Answers

Question and Answer:

  Home  COM DCOM

⟩ What happens when client calls CoCreateInstance?

- Reads RootClassesProgId for the matching ProgID

- Reads RootClassesProgId for the matching CLSID. The

CLSID is read from the above step.

- From the CLSID key, the server type and image filename is

known.

- Depending upon the server type, it starts the server.

- Calls CoGetClassObject function to get a handle to the

factory object.

- Then calls createinstance on the factory interface to get

the pointer to the derived object.

 218 views

More Questions for you: