CustomQueryInterfaceResult CustomQueryInterfaceResult CustomQueryInterfaceResult CustomQueryInterfaceResult Enum



This API is now obsolete.

Provides return values for the GetInterface(Guid, IntPtr) method.

public enum class CustomQueryInterfaceResult
[System.Obsolete("CustomQueryInterfaceResult and support for ICustomQueryInterface may be unavailable in future releases.")]
public enum CustomQueryInterfaceResult
type CustomQueryInterfaceResult = 
Public Enum CustomQueryInterfaceResult


Failed Failed Failed Failed 2

The interface for a specific interface ID is not available. In this case, the returned interface is null. E_NOINTERFACE is returned to the caller of IUnknown::QueryInterface.

Handled Handled Handled Handled 0

The interface pointer that is returned from the GetInterface(Guid, IntPtr) method can be used as the result of IUnknown::QueryInterface.

NotHandled NotHandled NotHandled NotHandled 1

The custom QueryInterface was not used. Instead, the default implementation of IUnknown::QueryInterface should be used.

Applies to