Bewerken

Delen via


CustomQueryInterfaceResult Enum

Definition

Caution

CustomQueryInterfaceResult and support for ICustomQueryInterface may be unavailable in future releases.

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
public enum CustomQueryInterfaceResult
[System.Runtime.InteropServices.ComVisible(false)]
[System.Serializable]
public enum CustomQueryInterfaceResult
[<System.Obsolete("CustomQueryInterfaceResult and support for ICustomQueryInterface may be unavailable in future releases.")>]
type CustomQueryInterfaceResult = 
type CustomQueryInterfaceResult = 
[<System.Runtime.InteropServices.ComVisible(false)>]
[<System.Serializable>]
type CustomQueryInterfaceResult = 
Public Enum CustomQueryInterfaceResult
Inheritance
CustomQueryInterfaceResult
Attributes

Fields

Name Value Description
Handled 0

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

NotHandled 1

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

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.

Applies to