COM DCOM Question:

What are the purposes of AddRef, Release and QueryInterface functions?

Tweet Share WhatsApp

Answer:

Query Interface method is used to get the pointer to the
interface specified in one of the parameters of this
method. Client then uses this pointer to call the method of
the component.
AddRef and Release are used to increase and decrease the
count of the instance of component loaded in memory
respectively. when the count reaches zero the component is
unloaded.

Download COM DCOM PDF Read All 25 COM DCOM Questions
Previous QuestionNext Question
Which tool is used to configure the port range and protocols for DCOM communications?What is IUnknown? What methods are provided by IUnknown?