Very basic implementation of IInternetProtocolInfo, this will allow us to correctly parse links in virtual file systems.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68432 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Steve Lamerton
2011-07-26 16:11:38 +00:00
parent 61d3188b01
commit 666f73c4d6
2 changed files with 57 additions and 7 deletions

View File

@@ -158,7 +158,7 @@ private:
};
class VirtualProtocol : public IInternetProtocol
class VirtualProtocol : public IInternetProtocol, public IInternetProtocolInfo
{
protected:
ULONG m_refCount;
@@ -202,6 +202,25 @@ public:
ULARGE_INTEGER* WXUNUSED(plibNewPosition))
{ return E_FAIL; }
HRESULT STDMETHODCALLTYPE UnlockRequest() { return S_OK; }
//IInternetProtocolInfo
HRESULT STDMETHODCALLTYPE CombineUrl(LPCWSTR pwzBaseUrl,
LPCWSTR pwzRelativeUrl,
DWORD dwCombineFlags,
LPWSTR pwzResult, DWORD cchResult,
DWORD *pcchResult, DWORD dwReserved);
HRESULT STDMETHODCALLTYPE CompareUrl(LPCWSTR pwzUrl1, LPCWSTR pwzUrl2,
DWORD dwCompareFlags)
{ return INET_E_DEFAULT_ACTION; }
HRESULT STDMETHODCALLTYPE ParseUrl(LPCWSTR pwzUrl, PARSEACTION ParseAction,
DWORD dwParseFlags, LPWSTR pwzResult,
DWORD cchResult, DWORD *pcchResult,
DWORD dwReserved);
HRESULT STDMETHODCALLTYPE QueryInfo(LPCWSTR pwzUrl,
QUERYOPTION OueryOption,
DWORD dwQueryFlags, LPVOID pBuffer,
DWORD cbBuffer, DWORD *pcbBuf,
DWORD dwReserved);
};
class ClassFactory : public IClassFactory