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
21 #define WIN32_NO_STATUS
23 #define COM_NO_WINDOWS_H
29 #define NONAMELESSUNION
30 #define NONAMELESSSTRUCT
35 //#include "winuser.h"
36 //#include "winerror.h"
38 //#include "servprov.h"
43 #include <wine/debug.h>
45 WINE_DEFAULT_DEBUG_CHANNEL(actxprxy
);
47 HRESULT CALLBACK
IServiceProvider_QueryService_Proxy(
48 IServiceProvider
* This
,
53 TRACE("(%p, %s, %s, %p)\n", This
, debugstr_guid(guidService
),
54 debugstr_guid(riid
), ppvObject
);
56 return IServiceProvider_RemoteQueryService_Proxy(This
, guidService
, riid
,
57 (IUnknown
**)ppvObject
);
60 HRESULT __RPC_STUB
IServiceProvider_QueryService_Stub(
61 IServiceProvider
* This
,
66 TRACE("(%p, %s, %s, %p)\n", This
, debugstr_guid(guidService
),
67 debugstr_guid(riid
), ppvObject
);
69 return IServiceProvider_QueryService(This
, guidService
, riid
,
73 HRESULT CALLBACK
ICatInformation_EnumClassesOfCategories_Proxy(
74 ICatInformation
*This
,
79 IEnumCLSID
** ppenumClsid
)
81 TRACE("(%p)\n", This
);
82 return ICatInformation_RemoteEnumClassesOfCategories_Proxy( This
, cImplemented
, rgcatidImpl
,
83 cRequired
, rgcatidReq
, ppenumClsid
);
86 HRESULT __RPC_STUB
ICatInformation_EnumClassesOfCategories_Stub(
87 ICatInformation
*This
,
92 IEnumCLSID
** ppenumClsid
)
94 TRACE("(%p)\n", This
);
95 return ICatInformation_EnumClassesOfCategories( This
, cImplemented
, rgcatidImpl
,
96 cRequired
, rgcatidReq
, ppenumClsid
);
99 HRESULT CALLBACK
ICatInformation_IsClassOfCategories_Proxy(
100 ICatInformation
*This
,
107 TRACE("(%p)\n", This
);
108 return ICatInformation_RemoteIsClassOfCategories_Proxy( This
, rclsid
, cImplemented
, rgcatidImpl
,
109 cRequired
, rgcatidReq
);
112 HRESULT __RPC_STUB
ICatInformation_IsClassOfCategories_Stub(
113 ICatInformation
*This
,
120 TRACE("(%p)\n", This
);
121 return ICatInformation_IsClassOfCategories( This
, rclsid
, cImplemented
, rgcatidImpl
,
122 cRequired
, rgcatidReq
);
125 HRESULT CALLBACK
IPrint_Print_Proxy(
128 DVTARGETDEVICE
**pptd
,
130 STGMEDIUM
*pstgmOptions
,
131 IContinueCallback
*pcallback
,
133 LONG
*pcPagesPrinted
,
136 TRACE("(%p)\n", This
);
137 return IPrint_RemotePrint_Proxy( This
, grfFlags
, pptd
, ppPageSet
, (RemSTGMEDIUM
*)pstgmOptions
,
138 pcallback
, nFirstPage
, pcPagesPrinted
, pnLastPage
);
141 HRESULT __RPC_STUB
IPrint_Print_Stub(
144 DVTARGETDEVICE
**pptd
,
146 RemSTGMEDIUM
*pstgmOptions
,
147 IContinueCallback
*pcallback
,
149 LONG
*pcPagesPrinted
,
152 TRACE("(%p)\n", This
);
153 return IPrint_Print( This
, grfFlags
, pptd
, ppPageSet
, (STGMEDIUM
*)pstgmOptions
,
154 pcallback
, nFirstPage
, pcPagesPrinted
, pnLastPage
);
157 HRESULT CALLBACK
IEnumOleDocumentViews_Next_Proxy(
158 IEnumOleDocumentViews
*This
,
160 IOleDocumentView
**rgpView
,
163 TRACE("(%p)\n", This
);
164 return IEnumOleDocumentViews_RemoteNext_Proxy( This
, cViews
, rgpView
, pcFetched
);
167 HRESULT __RPC_STUB
IEnumOleDocumentViews_Next_Stub(
168 IEnumOleDocumentViews
*This
,
170 IOleDocumentView
**rgpView
,
173 TRACE("(%p)\n", This
);
174 return IEnumOleDocumentViews_Next( This
, cViews
, rgpView
, pcFetched
);
177 HRESULT CALLBACK
IEnumShellItems_Next_Proxy(
178 IEnumShellItems
*This
,
184 TRACE("(%p)->(%d, %p, %p)\n", This
, celt
, rgelt
, pceltFetched
);
185 if (!pceltFetched
) pceltFetched
= &fetched
;
186 return IEnumShellItems_RemoteNext_Proxy(This
, celt
, rgelt
, pceltFetched
);
189 HRESULT __RPC_STUB
IEnumShellItems_Next_Stub(
190 IEnumShellItems
*This
,
196 TRACE("(%p)->(%d, %p, %p)\n", This
, celt
, rgelt
, pceltFetched
);
198 hr
= IEnumShellItems_Next(This
, celt
, rgelt
, pceltFetched
);
199 if (hr
== S_OK
) *pceltFetched
= celt
;
203 HRESULT CALLBACK
IModalWindow_Show_Proxy(
207 TRACE("(%p)->(%p)\n", This
, hwndOwner
);
208 return IModalWindow_RemoteShow_Proxy(This
, hwndOwner
);
211 HRESULT __RPC_STUB
IModalWindow_Show_Stub(
215 TRACE("(%p)->(%p)\n", This
, hwndOwner
);
216 return IModalWindow_Show(This
, hwndOwner
);
219 HRESULT __RPC_STUB
IFolderView2_GetGroupBy_Stub(
224 TRACE("(%p)->(%p %p)\n", This
, pkey
, ascending
);
225 return IFolderView2_GetGroupBy(This
, pkey
, ascending
);
228 HRESULT __RPC_STUB
IFolderView2_GetGroupBy_Proxy(
233 TRACE("(%p)->(%p %p)\n", This
, pkey
, ascending
);
234 return IFolderView2_RemoteGetGroupBy_Proxy(This
, pkey
, ascending
);