GeekInterview.com
Series: Subject: Topic:
Question: 11 of 43

Define Query Interface,Adref,Release

Asked by: Interview Candidate | Asked on: Aug 28th, 2004
Showing Answers 1 - 1 of 1 Answers

QueryInterface is used for determining if a known component supports a specific interface.It is a mechanism in COM (microsofts Component Object Model).It uses the current interface pointer ( IUnknown), by passing an interface ID. If the object supports an interface which matches the ID, it gives back a pointer which can be cast into a pointer to the correct type of interface.

adref is used to increment the reference count.

release is used to delete an object when reference count reaches zero.

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.