Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
Recupera un'interfaccia HTTP estesa in base all'istanza del server HTTP e al puntatore da arrestare.
Sintassi
template <class HttpType1, class HttpType2>
HRESULT HttpGetExtendedInterface(
__in IHttpServer* pHttpServer,
__in HttpType1* pInput,
__deref_out HttpType2** ppOutput
);
Parametri
pHttpServer
[IN] Punta a un'istanza dell'interfaccia IHttpServer .
pInput
[IN] Punta a un'istanza dell'interfaccia da arrestare.
ppOutput
[OUT] Punta all'interfaccia HTTP estesa.
Valore restituito
Oggetto HRESULT. I valori possibili includono, ma non sono limitati a, quelli indicati nella tabella seguente.
| Valore | Descrizione |
|---|---|
| S_OK | Indica che l'operazione è riuscita. |
Commenti
I parametri di modello (HttpType1 e HttpType2) possono essere dedotti dagli argomenti alla funzione, come illustrato nell'esempio seguente.
IHttpRequest * pHttpRequest = pHttpContext->GetRequest();
IHttpRequest2 * pHttpRequest2;
HRESULT hr = HttpGetExtendedInterface(g_pHttpServer, pHttpRequest, &pHttpRequest2);
if( SUCCEEDED(hr) )
{
// Use pHttpRequest2.
}
Dove pHttpContext è un puntatore IHttpContext ed g_pHttpServer è un puntatore IHttpServer .
Requisiti
| Tipo | Descrizione |
|---|---|
| Client | - IIS 7.0 in Windows Vista - IIS 7.5 in Windows 7 - IIS 8.0 in Windows 8 - IIS 10.0 in Windows 10 |
| Server | - IIS 7.0 in Windows Server 2008 - IIS 7.5 in Windows Server 2008 R2 - IIS 8.0 in Windows Server 2012 - IIS 8.5 in Windows Server 2012 R2 - IIS 10.0 in Windows Server 2016 |
| Prodotto | - 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 |
| Intestazione | Httpserv.h |