qasf/tests: Test that the DMO wrapper (de)commits its source pins' allocators when...
[wine.git] / include / winapifamily.h
blobc1df2e162779821bfd06fea1179fb12e09755872
1 /*
2 * Copyright 2020 Jacek Caban for CodeWeavers
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.
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.
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
19 #ifndef _INC_WINAPIFAMILY
20 #define _INC_WINAPIFAMILY
22 #define WINAPI_FAMILY_PC_APP 2
23 #define WINAPI_FAMILY_PHONE_APP 3
24 #define WINAPI_FAMILY_SYSTEM 4
25 #define WINAPI_FAMILY_SERVER 5
26 #define WINAPI_FAMILY_DESKTOP_APP 100
28 #define WINAPI_FAMILY_APP WINAPI_FAMILY_PC_APP
30 #ifndef WINAPI_FAMILY
31 #define WINAPI_FAMILY WINAPI_FAMILY_DESKTOP_APP
32 #endif
34 #ifndef WINAPI_PARTITION_DESKTOP
35 #define WINAPI_PARTITION_DESKTOP (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP)
36 #endif
38 #ifndef WINAPI_PARTITION_APP
39 #define WINAPI_PARTITION_APP (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP || \
40 WINAPI_FAMILY == WINAPI_FAMILY_PC_APP || \
41 WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP)
42 #endif
44 #ifndef WINAPI_PARTITION_PC_APP
45 #define WINAPI_PARTITION_PC_APP (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP || \
46 WINAPI_FAMILY == WINAPI_FAMILY_PC_APP)
47 #endif
49 #ifndef WINAPI_PARTITION_PHONE_APP
50 #define WINAPI_PARTITION_PHONE_APP (WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP)
51 #endif
53 #ifndef WINAPI_PARTITION_SYSTEM
54 #define WINAPI_PARTITION_SYSTEM (WINAPI_FAMILY == WINAPI_FAMILY_SYSTEM || \
55 WINAPI_FAMILY == WINAPI_FAMILY_SERVER)
56 #endif
58 #define WINAPI_PARTITION_PHONE WINAPI_PARTITION_PHONE_APP
60 #define WINAPI_FAMILY_PARTITION(x) x
62 #endif /* _INC_WINAPIFAMILY */