共用方式為


IProtocolManager::GetCustomInterface 方法

從通訊協定管理員擷取自訂介面。

語法

virtual HRESULT GetCustomInterface(  
   IN DWORD InterfaceId,  
   OUT PVOID* ppInterface  
) = 0;  

參數

InterfaceId
要傳回之介面的識別碼。

ppInterface
緩衝區的指標,將接收 所 InterfaceId 指定的介面。

傳回值

HRESULT。 可能的值包括 (但不限於) 下表中的這些值。

描述
S_OK 表示作業成功。

備註

GetCustomInterface使用 方法來擷取未定義于PM_INTERFACE_ID_ENUM列舉中,且可由通訊協定管理員公開的任何介面。 若要從 所 PM_INTERFACE_ID_ENUM 定義的通訊協定管理員擷取介面,請使用 IProtocolManager::GetPmInterface 方法。

規格需求

類型 描述
Client - Windows Vista 上的 IIS 7.0
- Windows 7 上的 IIS 7.5
- Windows 8 上的 IIS 8.0
- Windows 10上的 IIS 10.0
伺服器 - Windows Server 2008 上的 IIS 7.0
- Windows Server 2008 R2 上的 IIS 7.5
- Windows Server 2012 上的 IIS 8.0
- Windows Server 2012 R2 上的 IIS 8.5
- Windows Server 2016上的 IIS 10.0
產品 - IIS 7.0、IIS 7.5、IIS 8.0、IIS 8.5、IIS 10.0
- IIS Express 7.5、IIS Express 8.0、IIS Express 10.0
標頭 Wpframework.h

另請參閱

IProtocolManager 介面
IProtocolManager::GetPmInterface 方法
IProtocolManager::Shutdown 方法