CustomQueryInterfaceResult 枚举

定义

警告

此 API 现已过时。

提供 GetInterface(Guid, IntPtr) 方法的返回值。Provides return values for the GetInterface(Guid, IntPtr) method.

public enum class CustomQueryInterfaceResult
[System.Runtime.InteropServices.ComVisible(false)]
[System.Obsolete("CustomQueryInterfaceResult and support for ICustomQueryInterface may be unavailable in future releases.")]
[System.Serializable]
public enum CustomQueryInterfaceResult
type CustomQueryInterfaceResult = 
Public Enum CustomQueryInterfaceResult
继承
CustomQueryInterfaceResult
属性

字段

Failed 2

特定接口 ID 的接口不可用。The interface for a specific interface ID is not available. 在这种情况下,返回的接口为 nullIn this case, the returned interface is null. E_NOINTERFACE 会返回给 IUnknown::QueryInterface 的调用方。E_NOINTERFACE is returned to the caller of IUnknown::QueryInterface.

Handled 0

GetInterface(Guid, IntPtr) 方法返回的接口指针可用作 IUnknown::QueryInterface 的结果。The interface pointer that is returned from the GetInterface(Guid, IntPtr) method can be used as the result of IUnknown::QueryInterface.

NotHandled 1

未使用自定义的 QueryInterfaceThe custom QueryInterface was not used. 相反,应该使用 IUnknown::QueryInterface 的默认实现。Instead, the default implementation of IUnknown::QueryInterface should be used.

适用于