9d5318fcec572d05872f71f68e08fab66ea0ed17
[reactos.git] / reactos / dll / win32 / actxprxy / usrmarshal.c
1 /*
2 * Miscellaneous Marshaling Routines
3 *
4 * Copyright 2006 Robert Shearman (for CodeWeavers)
5 *
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.
10 *
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.
15 *
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
19 */
20
21 #include <stdarg.h>
22 #include <string.h>
23
24 #define COBJMACROS
25 #define NONAMELESSUNION
26 #define NONAMELESSSTRUCT
27
28 #include "windef.h"
29 #include "winbase.h"
30 #include "wingdi.h"
31 #include "winuser.h"
32 #include "winerror.h"
33 #include "objbase.h"
34 #include "servprov.h"
35
36 #include "wine/debug.h"
37
38 WINE_DEFAULT_DEBUG_CHANNEL(actxprxy);
39
40 HRESULT CALLBACK IServiceProvider_QueryService_Proxy(
41 IServiceProvider* This,
42 REFGUID guidService,
43 REFIID riid,
44 void** ppvObject)
45 {
46 TRACE("(%p, %s, %s, %p)\n", This, debugstr_guid(guidService),
47 debugstr_guid(riid), ppvObject);
48
49 return IServiceProvider_RemoteQueryService_Proxy(This, guidService, riid,
50 (IUnknown **)ppvObject);
51 }
52
53 HRESULT __RPC_STUB IServiceProvider_QueryService_Stub(
54 IServiceProvider* This,
55 REFGUID guidService,
56 REFIID riid,
57 IUnknown** ppvObject)
58 {
59 TRACE("(%p, %s, %s, %p)\n", This, debugstr_guid(guidService),
60 debugstr_guid(riid), ppvObject);
61
62 return IServiceProvider_QueryService(This, guidService, riid,
63 (void **)ppvObject);
64 }