3 * Define Win32 API subset defaults.
4 * Other subsetters can fork this file, or
5 * define symbols ahead of it, or after it (with undef).
7 * Note that #if of an undefined symbols is defined as if 0,
8 * so that an implicit default here.
10 * Copyright 2018 Microsoft
11 * Licensed under the MIT license. See LICENSE file in the project root for full license information.
14 #ifndef HAVE_API_SUPPORT_WIN32_GET_COMPUTER_NAME
15 #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT)
16 #define HAVE_API_SUPPORT_WIN32_GET_COMPUTER_NAME 1
20 #ifndef HAVE_API_SUPPORT_WIN32_GET_DRIVE_TYPE
21 #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT)
22 #define HAVE_API_SUPPORT_WIN32_GET_DRIVE_TYPE 1
26 #ifndef HAVE_API_SUPPORT_WIN32_REPLACE_FILE
27 #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT)
28 #define HAVE_API_SUPPORT_WIN32_REPLACE_FILE 1
32 #ifndef HAVE_API_SUPPORT_WIN32_COPY_FILE
33 #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT)
34 #define HAVE_API_SUPPORT_WIN32_COPY_FILE 1
38 #ifndef HAVE_API_SUPPORT_WIN32_COPY_FILE2 // not on Windows7
39 #if G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT)
40 #define HAVE_API_SUPPORT_WIN32_COPY_FILE2 1
44 #ifndef HAVE_API_SUPPORT_WIN32_LOCK_FILE
45 #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT)
46 #define HAVE_API_SUPPORT_WIN32_LOCK_FILE 1
50 #ifndef HAVE_API_SUPPORT_WIN32_UNLOCK_FILE
51 #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT)
52 #define HAVE_API_SUPPORT_WIN32_UNLOCK_FILE 1
56 #ifndef HAVE_API_SUPPORT_WIN32_MOVE_FILE
57 #if G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT)
58 #define HAVE_API_SUPPORT_WIN32_MOVE_FILE 0
59 #elif G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT)
60 #define HAVE_API_SUPPORT_WIN32_MOVE_FILE 1
64 #ifndef HAVE_API_SUPPORT_WIN32_MOVE_FILE_EX
65 #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT)
66 #define HAVE_API_SUPPORT_WIN32_MOVE_FILE_EX 1
70 #ifndef HAVE_API_SUPPORT_WIN32_GET_STD_HANDLE
71 #if G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT)
72 #define HAVE_API_SUPPORT_WIN32_GET_STD_HANDLE 0
73 #elif G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT)
74 #define HAVE_API_SUPPORT_WIN32_GET_STD_HANDLE 1
78 #ifndef HAVE_API_SUPPORT_WIN32_GET_LOGICAL_DRIVE_STRINGS
79 #if G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT)
80 #define HAVE_API_SUPPORT_WIN32_GET_LOGICAL_DRIVE_STRINGS 0
81 #elif G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT)
82 #define HAVE_API_SUPPORT_WIN32_GET_LOGICAL_DRIVE_STRINGS 1
86 #ifndef HAVE_API_SUPPORT_WIN32_SH_GET_FOLDER_PATH
87 #if G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT)
88 #define HAVE_API_SUPPORT_WIN32_SH_GET_FOLDER_PATH 0
89 #elif G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT)
90 #define HAVE_API_SUPPORT_WIN32_SH_GET_FOLDER_PATH 1
94 #ifndef HAVE_API_SUPPORT_WIN32_SEND_MESSAGE_TIMEOUT
95 #if G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT)
96 #define HAVE_API_SUPPORT_WIN32_SEND_MESSAGE_TIMEOUT 0
97 #elif G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT)
98 #define HAVE_API_SUPPORT_WIN32_SEND_MESSAGE_TIMEOUT 1
102 #ifndef HAVE_API_SUPPORT_WIN32_WAIT_FOR_INPUT_IDLE
103 #if G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT)
104 #define HAVE_API_SUPPORT_WIN32_WAIT_FOR_INPUT_IDLE 0
105 #elif G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT)
106 #define HAVE_API_SUPPORT_WIN32_WAIT_FOR_INPUT_IDLE 1