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. IUnknown::QueryInterface 的呼叫端則傳回 E_NOINTERFACE。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.

適用於