#include <stdarg.h>
#include <string.h>
#define COBJMACROS
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "winerror.h"
#include "objbase.h"
#include "servprov.h"
#include "comcat.h"
#include "docobj.h"
#include "shobjidl.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(actxprxy);
HRESULT CALLBACK IServiceProvider_QueryService_Proxy(
IServiceProvider* This,
REFGUID guidService,
REFIID riid,
void** ppvObject)
{
TRACE("(%p, %s, %s, %p)\n", This, debugstr_guid(guidService),
debugstr_guid(riid), ppvObject);
return IServiceProvider_RemoteQueryService_Proxy(This, guidService, riid,
(IUnknown **)ppvObject);
}
HRESULT __RPC_STUB IServiceProvider_QueryService_Stub(
IServiceProvider* This,
REFGUID guidService,
REFIID riid,
IUnknown** ppvObject)
{
TRACE("(%p, %s, %s, %p)\n", This, debugstr_guid(guidService),
debugstr_guid(riid), ppvObject);
return IServiceProvider_QueryService(This, guidService, riid,
(void **)ppvObject);
}
HRESULT CALLBACK ICatInformation_EnumClassesOfCategories_Proxy(
ICatInformation *This,
ULONG cImplemented,
CATID rgcatidImpl[],
ULONG cRequired,
CATID rgcatidReq[],
IEnumCLSID** ppenumClsid )
{
TRACE("(%p)\n", This);
return ICatInformation_RemoteEnumClassesOfCategories_Proxy( This, cImplemented, rgcatidImpl,
cRequired, rgcatidReq, ppenumClsid );
}
HRESULT __RPC_STUB ICatInformation_EnumClassesOfCategories_Stub(
ICatInformation *This,
ULONG cImplemented,
CATID rgcatidImpl[],
ULONG cRequired,
CATID rgcatidReq[],
IEnumCLSID** ppenumClsid )
{
TRACE("(%p)\n", This);
return ICatInformation_EnumClassesOfCategories( This, cImplemented, rgcatidImpl,
cRequired, rgcatidReq, ppenumClsid );
}
HRESULT CALLBACK ICatInformation_IsClassOfCategories_Proxy(
ICatInformation *This,
REFCLSID rclsid,
ULONG cImplemented,
CATID rgcatidImpl[],
ULONG cRequired,
CATID rgcatidReq[] )
{
TRACE("(%p)\n", This);
return ICatInformation_RemoteIsClassOfCategories_Proxy( This, rclsid, cImplemented, rgcatidImpl,
cRequired, rgcatidReq );
}
HRESULT __RPC_STUB ICatInformation_IsClassOfCategories_Stub(
ICatInformation *This,
REFCLSID rclsid,
ULONG cImplemented,
CATID rgcatidImpl[],
ULONG cRequired,
CATID rgcatidReq[] )
{
TRACE("(%p)\n", This);
return ICatInformation_IsClassOfCategories( This, rclsid, cImplemented, rgcatidImpl,
cRequired, rgcatidReq );
}
HRESULT CALLBACK IPrint_Print_Proxy(
IPrint *This,
DWORD grfFlags,
DVTARGETDEVICE **pptd,
PAGESET **ppPageSet,
STGMEDIUM *pstgmOptions,
IContinueCallback *pcallback,
LONG nFirstPage,
LONG *pcPagesPrinted,
LONG *pnLastPage )
{
TRACE("(%p)\n", This);
return IPrint_RemotePrint_Proxy( This, grfFlags, pptd, ppPageSet, (RemSTGMEDIUM *)pstgmOptions,
pcallback, nFirstPage, pcPagesPrinted, pnLastPage );
}
HRESULT __RPC_STUB IPrint_Print_Stub(
IPrint *This,
DWORD grfFlags,
DVTARGETDEVICE **pptd,
PAGESET **ppPageSet,
RemSTGMEDIUM *pstgmOptions,
IContinueCallback *pcallback,
LONG nFirstPage,
LONG *pcPagesPrinted,
LONG *pnLastPage )
{
TRACE("(%p)\n", This);
return IPrint_Print( This, grfFlags, pptd, ppPageSet, (STGMEDIUM *)pstgmOptions,
pcallback, nFirstPage, pcPagesPrinted, pnLastPage );
}
HRESULT CALLBACK IEnumOleDocumentViews_Next_Proxy(
IEnumOleDocumentViews *This,
ULONG cViews,
IOleDocumentView **rgpView,
ULONG *pcFetched )
{
TRACE("(%p)\n", This);
return IEnumOleDocumentViews_RemoteNext_Proxy( This, cViews, rgpView, pcFetched );
}
HRESULT __RPC_STUB IEnumOleDocumentViews_Next_Stub(
IEnumOleDocumentViews *This,
ULONG cViews,
IOleDocumentView **rgpView,
ULONG *pcFetched )
{
TRACE("(%p)\n", This);
return IEnumOleDocumentViews_Next( This, cViews, rgpView, pcFetched );
}
HRESULT CALLBACK IEnumShellItems_Next_Proxy(
IEnumShellItems *This,
ULONG celt,
IShellItem **rgelt,
ULONG *pceltFetched)
{
ULONG fetched;
TRACE("(%p)->(%ld, %p, %p)\n", This, celt, rgelt, pceltFetched);
if (!pceltFetched) pceltFetched = &fetched;
return IEnumShellItems_RemoteNext_Proxy(This, celt, rgelt, pceltFetched);
}
HRESULT __RPC_STUB IEnumShellItems_Next_Stub(
IEnumShellItems *This,
ULONG celt,
IShellItem **rgelt,
ULONG *pceltFetched)
{
HRESULT hr;
TRACE("(%p)->(%ld, %p, %p)\n", This, celt, rgelt, pceltFetched);
*pceltFetched = 0;
hr = IEnumShellItems_Next(This, celt, rgelt, pceltFetched);
if (hr == S_OK) *pceltFetched = celt;
return hr;
}
HRESULT CALLBACK IModalWindow_Show_Proxy(
IModalWindow *This,
HWND hwndOwner)
{
TRACE("(%p)->(%p)\n", This, hwndOwner);
return IModalWindow_RemoteShow_Proxy(This, hwndOwner);
}
HRESULT __RPC_STUB IModalWindow_Show_Stub(
IModalWindow *This,
HWND hwndOwner)
{
TRACE("(%p)->(%p)\n", This, hwndOwner);
return IModalWindow_Show(This, hwndOwner);
}
HRESULT __RPC_STUB IFolderView2_GetGroupBy_Stub(
IFolderView2 *This,
PROPERTYKEY *pkey,
BOOL *ascending)
{
TRACE("(%p)->(%p %p)\n", This, pkey, ascending);
return IFolderView2_GetGroupBy(This, pkey, ascending);
}
HRESULT __RPC_STUB IFolderView2_GetGroupBy_Proxy(
IFolderView2 *This,
PROPERTYKEY *pkey,
BOOL *ascending)
{
TRACE("(%p)->(%p %p)\n", This, pkey, ascending);
return IFolderView2_RemoteGetGroupBy_Proxy(This, pkey, ascending);
}
HRESULT __RPC_STUB IParentAndItem_GetParentAndItem_Stub(
IParentAndItem *This,
PIDLIST_ABSOLUTE *parent,
IShellFolder **folder,
PITEMID_CHILD *child)
{
TRACE("(%p)->(%p %p %p)\n", This, parent, folder, child);
return IParentAndItem_GetParentAndItem(This, parent, folder, child);
}
HRESULT __RPC_STUB IParentAndItem_GetParentAndItem_Proxy(
IParentAndItem *This,
PIDLIST_ABSOLUTE *parent,
IShellFolder **folder,
PITEMID_CHILD *child)
{
TRACE("(%p)->(%p %p %p)\n", This, parent, folder, child);
return IParentAndItem_RemoteGetParentAndItem_Proxy(This, parent, folder, child);
}
HRESULT CALLBACK IEnumObjects_Next_Proxy(IEnumObjects *This, ULONG celt, REFIID riid, void **rgelt, ULONG *pceltFetched)
{
ULONG fetched;
TRACE("(%p)->(%ld, %p, %p, %p)\n", This, celt, debugstr_guid(riid), rgelt, pceltFetched);
if (!pceltFetched) pceltFetched = &fetched;
return IEnumObjects_RemoteNext_Proxy(This, celt, riid, rgelt, pceltFetched);
}
HRESULT __RPC_STUB IEnumObjects_Next_Stub(IEnumObjects *This, ULONG celt, REFIID riid, void **rgelt, ULONG *pceltFetched)
{
HRESULT hr;
TRACE("(%p)->(%ld, %p, %p, %p)\n", This, celt, debugstr_guid(riid), rgelt, pceltFetched);
*pceltFetched = 0;
hr = IEnumObjects_Next(This, celt, riid, rgelt, pceltFetched);
return hr;
}