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

urlmon: Added GetBindInfoString implementation.

parent d8e98fe6
......@@ -351,7 +351,39 @@ static HRESULT WINAPI InternetBindInfo_GetBindString(IInternetBindInfo *iface,
ULONG ulStringType, LPOLESTR *ppwzStr, ULONG cEl, ULONG *pcElFetched)
{
Binding *This = BINDINF_THIS(iface);
FIXME("(%p)->(%ld %p %ld %p)\n", This, ulStringType, ppwzStr, cEl, pcElFetched);
TRACE("(%p)->(%ld %p %ld %p)\n", This, ulStringType, ppwzStr, cEl, pcElFetched);
switch(ulStringType) {
case BINDSTRING_ACCEPT_MIMES: {
static const WCHAR wszMimes[] = {'*','/','*',0};
if(!ppwzStr || !pcElFetched)
return E_INVALIDARG;
ppwzStr[0] = CoTaskMemAlloc(sizeof(wszMimes));
memcpy(ppwzStr[0], wszMimes, sizeof(wszMimes));
*pcElFetched = 1;
return S_OK;
}
case BINDSTRING_USER_AGENT: {
IInternetBindInfo *bindinfo = NULL;
HRESULT hres;
hres = IBindStatusCallback_QueryInterface(This->callback, &IID_IInternetBindInfo,
(void**)&bindinfo);
if(FAILED(hres))
return hres;
hres = IInternetBindInfo_GetBindString(bindinfo, ulStringType, ppwzStr,
cEl, pcElFetched);
IInternetBindInfo_Release(bindinfo);
return hres;
}
}
FIXME("not supported string type %ld\n", ulStringType);
return E_NOTIMPL;
}
......
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