Commit e93353b2 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Added ResProtocolInfo::QueryInfo implementation.

parent 8a87ea5b
......@@ -880,9 +880,30 @@ static HRESULT WINAPI ResProtocolInfo_QueryInfo(IInternetProtocolInfo *iface, LP
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,
cbBuffer, pcbBuf, dwReserved);
return E_NOTIMPL;
TRACE("%p)->(%s %08x %08x %p %d %p %d)\n", iface, debugstr_w(pwzUrl), QueryOption, dwQueryFlags, pBuffer,
cbBuffer, pcbBuf, dwReserved);
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;
case QUERY_IS_SAFE:
FIXME("not supporte QUERY_IS_SAFE\n");
return E_NOTIMPL;
default:
return INET_E_USE_DEFAULT_PROTOCOLHANDLER;
}
return S_OK;
}
static const IInternetProtocolInfoVtbl ResProtocolInfoVtbl = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment