Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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.
The IUnknown interface has these methods.
IUnknown::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. |
IUnknown::QueryInterface A helper function template that infers an interface identifier, and calls QueryInterface(REFIID,void). |
IUnknown::QueryInterface Retrieves pointers to the supported interfaces on an object. |
IUnknown::Release Decrements the reference count for an interface on a COM object. |
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps | UWP apps] |
Minimum supported server | Windows 2000 Server [desktop apps | UWP apps] |
Target Platform | Windows |
Header | unknwn.h |
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today