Commit adc9b650 authored by Jon Griffiths's avatar Jon Griffiths Committed by Alexandre Julliard

Move IQueryAssociations into shlwapi. Docs/-W/MSVC++ fixes.

parent cf2f57f9
......@@ -405,151 +405,3 @@ BOOL HCR_GetFolderAttributes (REFIID riid, LPDWORD szDest)
return TRUE;
}
typedef struct
{ ICOM_VFIELD(IQueryAssociations);
DWORD ref;
} IQueryAssociationsImpl;
static struct ICOM_VTABLE(IQueryAssociations) qavt;
/**************************************************************************
* IQueryAssociations_Constructor
*/
IQueryAssociations* IQueryAssociations_Constructor(void)
{
IQueryAssociationsImpl* ei;
ei=(IQueryAssociationsImpl*)HeapAlloc(GetProcessHeap(),0,sizeof(IQueryAssociationsImpl));
ei->ref=1;
ei->lpVtbl = &qavt;
TRACE("(%p)\n",ei);
return (IQueryAssociations *)ei;
}
/**************************************************************************
* IQueryAssociations_QueryInterface
*/
static HRESULT WINAPI IQueryAssociations_fnQueryInterface(
IQueryAssociations * iface,
REFIID riid,
LPVOID *ppvObj)
{
ICOM_THIS(IQueryAssociationsImpl,iface);
TRACE("(%p)->(\n\tIID:\t%s,%p)\n",This,debugstr_guid(riid),ppvObj);
*ppvObj = NULL;
if(IsEqualIID(riid, &IID_IUnknown)) /*IUnknown*/
{
*ppvObj = This;
}
else if(IsEqualIID(riid, &IID_IQueryAssociations)) /*IExtractIcon*/
{
*ppvObj = (IQueryAssociations*)This;
}
if(*ppvObj)
{
IQueryAssociations_AddRef((IQueryAssociations*) *ppvObj);
TRACE("-- Interface: (%p)->(%p)\n",ppvObj,*ppvObj);
return S_OK;
}
TRACE("-- Interface: E_NOINTERFACE\n");
return E_NOINTERFACE;
}
/**************************************************************************
* IQueryAssociations_AddRef
*/
static ULONG WINAPI IQueryAssociations_fnAddRef(IQueryAssociations * iface)
{
ICOM_THIS(IQueryAssociationsImpl,iface);
TRACE("(%p)->(count=%lu)\n",This, This->ref );
return ++(This->ref);
}
/**************************************************************************
* IQueryAssociations_Release
*/
static ULONG WINAPI IQueryAssociations_fnRelease(IQueryAssociations * iface)
{
ICOM_THIS(IQueryAssociationsImpl,iface);
TRACE("(%p)->()\n",This);
if (!--(This->ref))
{
TRACE(" destroying IExtractIcon(%p)\n",This);
HeapFree(GetProcessHeap(),0,This);
return 0;
}
return This->ref;
}
static HRESULT WINAPI IQueryAssociations_fnInit(
IQueryAssociations * iface,
ASSOCF flags,
LPCWSTR pszAssoc,
HKEY hkProgid,
HWND hwnd)
{
return E_NOTIMPL;
}
static HRESULT WINAPI IQueryAssociations_fnGetString(
IQueryAssociations * iface,
ASSOCF flags,
ASSOCSTR str,
LPCWSTR pszExtra,
LPWSTR pszOut,
DWORD *pcchOut)
{
return E_NOTIMPL;
}
static HRESULT WINAPI IQueryAssociations_fnGetKey(
IQueryAssociations * iface,
ASSOCF flags,
ASSOCKEY key,
LPCWSTR pszExtra,
HKEY *phkeyOut)
{
return E_NOTIMPL;
}
static HRESULT WINAPI IQueryAssociations_fnGetData(
IQueryAssociations * iface,
ASSOCF flags,
ASSOCDATA data,
LPCWSTR pszExtra,
LPVOID pvOut,
DWORD *pcbOut)
{
return E_NOTIMPL;
}
static HRESULT WINAPI IQueryAssociations_fnGetEnum(
IQueryAssociations * iface,
ASSOCF flags,
ASSOCENUM assocenum,
LPCWSTR pszExtra,
REFIID riid,
LPVOID *ppvOut)
{
return E_NOTIMPL;
}
static struct ICOM_VTABLE(IQueryAssociations) qavt =
{
ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
IQueryAssociations_fnQueryInterface,
IQueryAssociations_fnAddRef,
IQueryAssociations_fnRelease,
IQueryAssociations_fnInit,
IQueryAssociations_fnGetString,
IQueryAssociations_fnGetKey,
IQueryAssociations_fnGetData,
IQueryAssociations_fnGetEnum
};
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