2 * Miscellaneous Marshaling Routines
4 * Copyright 2006 Robert Shearman (for CodeWeavers)
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
37 #include "wine/debug.h"
39 WINE_DEFAULT_DEBUG_CHANNEL(actxprxy
);
41 HRESULT CALLBACK
IServiceProvider_QueryService_Proxy(
42 IServiceProvider
* This
,
47 TRACE("(%p, %s, %s, %p)\n", This
, debugstr_guid(guidService
),
48 debugstr_guid(riid
), ppvObject
);
50 return IServiceProvider_RemoteQueryService_Proxy(This
, guidService
, riid
,
51 (IUnknown
**)ppvObject
);
54 HRESULT __RPC_STUB
IServiceProvider_QueryService_Stub(
55 IServiceProvider
* This
,
60 TRACE("(%p, %s, %s, %p)\n", This
, debugstr_guid(guidService
),
61 debugstr_guid(riid
), ppvObject
);
63 return IServiceProvider_QueryService(This
, guidService
, riid
,
67 HRESULT CALLBACK
ICatInformation_EnumClassesOfCategories_Proxy(
68 ICatInformation
*This
,
73 IEnumCLSID
** ppenumClsid
)
75 TRACE("(%p)\n", This
);
76 return ICatInformation_RemoteEnumClassesOfCategories_Proxy( This
, cImplemented
, rgcatidImpl
,
77 cRequired
, rgcatidReq
, ppenumClsid
);
80 HRESULT __RPC_STUB
ICatInformation_EnumClassesOfCategories_Stub(
81 ICatInformation
*This
,
86 IEnumCLSID
** ppenumClsid
)
88 TRACE("(%p)\n", This
);
89 return ICatInformation_EnumClassesOfCategories( This
, cImplemented
, rgcatidImpl
,
90 cRequired
, rgcatidReq
, ppenumClsid
);
93 HRESULT CALLBACK
ICatInformation_IsClassOfCategories_Proxy(
94 ICatInformation
*This
,
101 TRACE("(%p)\n", This
);
102 return ICatInformation_RemoteIsClassOfCategories_Proxy( This
, rclsid
, cImplemented
, rgcatidImpl
,
103 cRequired
, rgcatidReq
);
106 HRESULT __RPC_STUB
ICatInformation_IsClassOfCategories_Stub(
107 ICatInformation
*This
,
114 TRACE("(%p)\n", This
);
115 return ICatInformation_IsClassOfCategories( This
, rclsid
, cImplemented
, rgcatidImpl
,
116 cRequired
, rgcatidReq
);
119 HRESULT CALLBACK
IPrint_Print_Proxy(
122 DVTARGETDEVICE
**pptd
,
124 STGMEDIUM
*pstgmOptions
,
125 IContinueCallback
*pcallback
,
127 LONG
*pcPagesPrinted
,
130 TRACE("(%p)\n", This
);
131 return IPrint_RemotePrint_Proxy( This
, grfFlags
, pptd
, ppPageSet
, (RemSTGMEDIUM
*)pstgmOptions
,
132 pcallback
, nFirstPage
, pcPagesPrinted
, pnLastPage
);
135 HRESULT __RPC_STUB
IPrint_Print_Stub(
138 DVTARGETDEVICE
**pptd
,
140 RemSTGMEDIUM
*pstgmOptions
,
141 IContinueCallback
*pcallback
,
143 LONG
*pcPagesPrinted
,
146 TRACE("(%p)\n", This
);
147 return IPrint_Print( This
, grfFlags
, pptd
, ppPageSet
, (STGMEDIUM
*)pstgmOptions
,
148 pcallback
, nFirstPage
, pcPagesPrinted
, pnLastPage
);
151 HRESULT CALLBACK
IEnumOleDocumentViews_Next_Proxy(
152 IEnumOleDocumentViews
*This
,
154 IOleDocumentView
**rgpView
,
157 TRACE("(%p)\n", This
);
158 return IEnumOleDocumentViews_RemoteNext_Proxy( This
, cViews
, rgpView
, pcFetched
);
161 HRESULT __RPC_STUB
IEnumOleDocumentViews_Next_Stub(
162 IEnumOleDocumentViews
*This
,
164 IOleDocumentView
**rgpView
,
167 TRACE("(%p)\n", This
);
168 return IEnumOleDocumentViews_Next( This
, cViews
, rgpView
, pcFetched
);
171 HRESULT CALLBACK
IEnumShellItems_Next_Proxy(
172 IEnumShellItems
*This
,
178 TRACE("(%p)->(%d, %p, %p)\n", This
, celt
, rgelt
, pceltFetched
);
179 if (!pceltFetched
) pceltFetched
= &fetched
;
180 return IEnumShellItems_RemoteNext_Proxy(This
, celt
, rgelt
, pceltFetched
);
183 HRESULT __RPC_STUB
IEnumShellItems_Next_Stub(
184 IEnumShellItems
*This
,
190 TRACE("(%p)->(%d, %p, %p)\n", This
, celt
, rgelt
, pceltFetched
);
192 hr
= IEnumShellItems_Next(This
, celt
, rgelt
, pceltFetched
);
193 if (hr
== S_OK
) *pceltFetched
= celt
;
197 HRESULT CALLBACK
IModalWindow_Show_Proxy(
201 TRACE("(%p)->(%p)\n", This
, hwndOwner
);
202 return IModalWindow_RemoteShow_Proxy(This
, hwndOwner
);
205 HRESULT __RPC_STUB
IModalWindow_Show_Stub(
209 TRACE("(%p)->(%p)\n", This
, hwndOwner
);
210 return IModalWindow_Show(This
, hwndOwner
);
213 HRESULT __RPC_STUB
IFolderView2_GetGroupBy_Stub(
218 TRACE("(%p)->(%p %p)\n", This
, pkey
, ascending
);
219 return IFolderView2_GetGroupBy(This
, pkey
, ascending
);
222 HRESULT __RPC_STUB
IFolderView2_GetGroupBy_Proxy(
227 TRACE("(%p)->(%p %p)\n", This
, pkey
, ascending
);
228 return IFolderView2_RemoteGetGroupBy_Proxy(This
, pkey
, ascending
);