mshtml: Added JScriptProtocolInfo::QueryInfo implementation.

This commit is contained in:
Jacek Caban 2009-09-08 22:28:28 +02:00 committed by Alexandre Julliard
parent 5b5c8abcad
commit f66e95c0e2
1 changed files with 21 additions and 2 deletions

View File

@ -974,9 +974,28 @@ static HRESULT WINAPI JSProtocolInfo_QueryInfo(IInternetProtocolInfo *iface, LPC
QUERYOPTION QueryOption, DWORD dwQueryFlags, LPVOID pBuffer, DWORD cbBuffer, DWORD* pcbBuf,
DWORD dwReserved)
{
FIXME("%p)->(%s %08x %08x %p %d %p %d)\n", iface, debugstr_w(pwzUrl), QueryOption, dwQueryFlags, pBuffer,
TRACE("%p)->(%s %08x %08x %p %d %p %d)\n", iface, debugstr_w(pwzUrl), QueryOption, dwQueryFlags, pBuffer,
cbBuffer, pcbBuf, dwReserved);
return E_NOTIMPL;
switch(QueryOption) {
case QUERY_USES_NETWORK:
if(!pBuffer || cbBuffer < sizeof(DWORD))
return E_FAIL;
*(DWORD*)pBuffer = 0;
if(pcbBuf)
*pcbBuf = sizeof(DWORD);
break;
case QUERY_IS_SECURE:
FIXME("not supporte QUERY_IS_SECURE\n");
return E_NOTIMPL;
default:
return INET_E_USE_DEFAULT_PROTOCOLHANDLER;
}
return S_OK;
}
static const IInternetProtocolInfoVtbl JSProtocolInfoVtbl = {