IUnknown struct IUnknown : IComIID Documentation Code public uint AddRef() Increments the reference count for an interface pointer to a COM object. You should call this method whenever you make a copy of an interface pointer. public HRESULT QueryInterface(Guid* riid, Void** ppvObject) public uint Release() Decrements the reference count for an interface on a COM object.