Sweden-Number/dlls/actxprxy/usrmarshal.c

250 lines
7.1 KiB
C
Raw Normal View History

/*
* Miscellaneous Marshaling Routines
*
* Copyright 2006 Robert Shearman (for CodeWeavers)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#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"
2009-09-11 12:31:26 +02:00
#include "comcat.h"
2009-09-11 12:33:13 +02:00
#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);
}
2009-09-11 12:31:26 +02:00
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 );
}
2009-09-11 12:33:13 +02:00
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);
}
2015-04-29 20:20:15 +02:00
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);
}