IUnknown IUnknown

IUnknown - Definition and Overview

The published COM specification (http://www.microsoft.com/com/resources/comdocs.asp) mandates that COM objects must minimally implement the IUnknown interface. This interface is comprised of three functions - QueryInterface, AddRef and Release.

  • QueryInterface is used to retrieve a pointer to a vector containing pointers to object methods
  • AddRef is used by clients to indicate that a COM object is being referenced. This is necessary to ensure that a COM object is not disposed prematurely
  • Release is used by clients to indicate that they have finished using the COM object. An unreferenced COM object may be safely disposed

Example Usage of IUnknown

mr_qizz: Или даже вот: IUnknown *punk
vden: Из ЖЖ-шной пятилетней дельфевой юности: «…И приснились ему сиськи, IUnknown и Automation…»
Copyright 2009 WordIQ.com - Privacy Policy  :: Terms of Use  :: Contact Us  :: About Us
This article is licensed under the GNU Free Documentation License. It uses material from the this Wikipedia article.