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. All other COM interfaces are inherited, directly or indirectly, from IUnknown. Therefore, the three methods in IUnknown are the first entries in the VTable for every interface.
Namespace: Dapplo.Windows.Com
Assembly: Dapplo.Windows.Com.dll
Syntax
public interface IUnknown
Methods
| Improve this Doc View SourceAddRef()
Increments the reference count for an interface on an object.
Declaration
uint AddRef()
Returns
Type | Description |
---|---|
System.UInt32 | uint |
QueryInterface(ref Guid)
Retrieves pointers to the supported interfaces on an object.
Declaration
IntPtr QueryInterface(ref Guid riid)
Parameters
Type | Name | Description |
---|---|---|
Guid | riid |
Returns
Type | Description |
---|---|
IntPtr | IntPtr |
Release()
Decrements the reference count for an interface on an object.
Declaration
uint Release()
Returns
Type | Description |
---|---|
System.UInt32 | uint |