2 * Copyright (C) 2014 Martin Storsjo
3 * Copyright (C) 2016 Michael Müller
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 #ifndef __WINE_ROAPI_H
21 #define __WINE_ROAPI_H
24 #include <activation.h>
28 RO_INIT_SINGLETHREADED
= 0,
29 RO_INIT_MULTITHREADED
= 1,
32 DECLARE_HANDLE(APARTMENT_SHUTDOWN_REGISTRATION_COOKIE
);
35 typedef struct {} *RO_REGISTRATION_COOKIE
;
37 typedef struct _RO_REGISTRATION_COOKIE
*RO_REGISTRATION_COOKIE
;
39 typedef HRESULT (WINAPI
*PFNGETACTIVATIONFACTORY
)(HSTRING
, IActivationFactory
**);
45 HRESULT WINAPI
RoActivateInstance(HSTRING classid
, IInspectable
**instance
);
46 HRESULT WINAPI
RoGetActivationFactory(HSTRING classid
, REFIID iid
, void **class_factory
);
47 HRESULT WINAPI
RoInitialize(RO_INIT_TYPE type
);
48 void WINAPI
RoUninitialize(void);
54 #endif /* __WINE_ROAPI_H */