ReactOS 0.4.16-dev-2320-ge1853c6
combaseapi.h
Go to the documentation of this file.
1/*
2 * Copyright 2021 Jacek Caban for CodeWeavers
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19#include <rpc.h>
20#include <rpcndr.h>
21
22#ifndef _COMBASEAPI_H_
23#define _COMBASEAPI_H_
24
25#ifndef RC_INVOKED
26#include <stdlib.h>
27#endif
28
29#include <objidlbase.h>
30#include <guiddef.h>
31
32#ifndef INITGUID
33#include <cguid.h>
34#endif
35
36#ifdef __cplusplus
37extern "C" {
38#endif
39
41{
46
48{
51};
52
55
56#ifdef __cplusplus
57extern "C++" template<typename T> void **IID_PPV_ARGS_Helper(T **obj)
58{
59 (void)static_cast<IUnknown *>(*obj);
60 return reinterpret_cast<void **>(obj);
61}
62#define IID_PPV_ARGS(obj) __uuidof(**(obj)), IID_PPV_ARGS_Helper(obj)
63#endif /* __cplusplus */
64
65#ifdef __cplusplus
66}
67#endif
68
69#endif /* _COMBASEAPI_H_ */
COMPILER_DEPENDENT_UINT64 UINT64
Definition: actypes.h:131
AgileReferenceOptions
Definition: combaseapi.h:48
@ AGILEREFERENCE_DEFAULT
Definition: combaseapi.h:49
@ AGILEREFERENCE_DELAYEDMARSHAL
Definition: combaseapi.h:50
struct tagServerInformation * PServerInformation
HRESULT WINAPI CoDecodeProxy(_In_ DWORD client_pid, _In_ UINT64 proxy_addr, _Out_ ServerInformation *server_info)
struct tagServerInformation ServerInformation
HRESULT WINAPI RoGetAgileReference(_In_ enum AgileReferenceOptions options, _In_ REFIID riid, _In_ IUnknown *obj, _Out_ IAgileReference **agile_reference)
unsigned long DWORD
Definition: ntddk_ex.h:95
REFIID riid
Definition: atlbase.h:39
static DWORD client_pid
Definition: msiexec.c:401
#define _Out_
Definition: no_sal2.h:160
#define _In_
Definition: no_sal2.h:158
#define REFIID
Definition: guiddef.h:118
#define T(num)
Definition: thunks.c:311
UINT64 ui64ServerAddress
Definition: combaseapi.h:44
#define WINAPI
Definition: msvc.h:6