public interface IUnknown
Enables clients to get pointers to other interfaces on a given object through the QueryInterface method, and manage the existence of the object through the AddRef and Release methods.
AddRef()
Increments the reference count for an interface on an object. This method should be called for every new copy of a pointer to an interface on an object.
public abstract Int32 AddRef()
Returns
The method returns the new reference count. This value is intended to be used only for test purposes.
QueryInterface(Guid& riid, IntPtr& ppvObject)
Retrieves pointers to the supported interfaces on an object.
public abstract Int32 QueryInterface(Guid& riid, IntPtr& ppvObject)
Parameters
riid
Guid&The identifier of the interface being requested.
ppvObject
IntPtr&The address of a pointer variable that receives the interface pointer requested in the riid parameter.
Returns
This method returns SOK if the interface is supported, and ENOINTERFACE otherwise. If ppvObject is NULL, this method returns E_POINTER.
Release()
Decrements the reference count for an interface on an object.
public abstract Int32 Release()
Returns
The method returns the new reference count. This value is intended to be used only for test purposes.