s3:vfs: Correctly check if OFD locks should be enabled or not
[Samba.git] / lib / replace / win32_replace.h
blob9901e72f6efd398e23c1836b8570803cd41e9182
1 #ifndef _WIN32_REPLACE_H
2 #define _WIN32_REPLACE_H
4 #ifdef HAVE_WINSOCK2_H
5 #include <winsock2.h>
6 #endif
8 #ifdef HAVE_WS2TCPIP_H
9 #include <ws2tcpip.h>
10 #endif
12 #ifdef HAVE_WINDOWS_H
13 #include <windows.h>
14 #endif
16 /* Map BSD Socket errorcodes to the WSA errorcodes (if possible) */
18 #define EAFNOSUPPORT WSAEAFNOSUPPORT
19 #define ECONNREFUSED WSAECONNREFUSED
20 #define EINPROGRESS WSAEINPROGRESS
21 #define EMSGSIZE WSAEMSGSIZE
22 #define ENOBUFS WSAENOBUFS
23 #define ENOTSOCK WSAENOTSOCK
24 #define ENETUNREACH WSAENETUNREACH
25 #define ENOPROTOOPT WSAENOPROTOOPT
26 #define ENOTCONN WSAENOTCONN
27 #define ENOTSUP 134
29 /* We undefine the following constants due to conflicts with the w32api headers
30 * and the Windows Platform SDK/DDK.
33 #undef interface
35 #undef ERROR_INVALID_PARAMETER
36 #undef ERROR_INSUFFICIENT_BUFFER
37 #undef ERROR_INVALID_DATATYPE
39 #undef FILE_GENERIC_READ
40 #undef FILE_GENERIC_WRITE
41 #undef FILE_GENERIC_EXECUTE
42 #undef FILE_ATTRIBUTE_READONLY
43 #undef FILE_ATTRIBUTE_HIDDEN
44 #undef FILE_ATTRIBUTE_SYSTEM
45 #undef FILE_ATTRIBUTE_DIRECTORY
46 #undef FILE_ATTRIBUTE_ARCHIVE
47 #undef FILE_ATTRIBUTE_DEVICE
48 #undef FILE_ATTRIBUTE_NORMAL
49 #undef FILE_ATTRIBUTE_TEMPORARY
50 #undef FILE_ATTRIBUTE_REPARSE_POINT
51 #undef FILE_ATTRIBUTE_COMPRESSED
52 #undef FILE_ATTRIBUTE_OFFLINE
53 #undef FILE_ATTRIBUTE_ENCRYPTED
54 #undef FILE_FLAG_WRITE_THROUGH
55 #undef FILE_FLAG_NO_BUFFERING
56 #undef FILE_FLAG_RANDOM_ACCESS
57 #undef FILE_FLAG_SEQUENTIAL_SCAN
58 #undef FILE_FLAG_DELETE_ON_CLOSE
59 #undef FILE_FLAG_BACKUP_SEMANTICS
60 #undef FILE_FLAG_POSIX_SEMANTICS
61 #undef FILE_TYPE_DISK
62 #undef FILE_TYPE_UNKNOWN
63 #undef FILE_CASE_SENSITIVE_SEARCH
64 #undef FILE_CASE_PRESERVED_NAMES
65 #undef FILE_UNICODE_ON_DISK
66 #undef FILE_PERSISTENT_ACLS
67 #undef FILE_FILE_COMPRESSION
68 #undef FILE_VOLUME_QUOTAS
69 #undef FILE_VOLUME_IS_COMPRESSED
70 #undef FILE_NOTIFY_CHANGE_FILE_NAME
71 #undef FILE_NOTIFY_CHANGE_DIR_NAME
72 #undef FILE_NOTIFY_CHANGE_ATTRIBUTES
73 #undef FILE_NOTIFY_CHANGE_SIZE
74 #undef FILE_NOTIFY_CHANGE_LAST_WRITE
75 #undef FILE_NOTIFY_CHANGE_LAST_ACCESS
76 #undef FILE_NOTIFY_CHANGE_CREATION
77 #undef FILE_NOTIFY_CHANGE_EA
78 #undef FILE_NOTIFY_CHANGE_SECURITY
79 #undef FILE_NOTIFY_CHANGE_STREAM_NAME
80 #undef FILE_NOTIFY_CHANGE_STREAM_SIZE
81 #undef FILE_NOTIFY_CHANGE_STREAM_WRITE
82 #undef FILE_NOTIFY_CHANGE_NAME
84 #undef PRINTER_ATTRIBUTE_QUEUED
85 #undef PRINTER_ATTRIBUTE_DIRECT
86 #undef PRINTER_ATTRIBUTE_DEFAULT
87 #undef PRINTER_ATTRIBUTE_SHARED
88 #undef PRINTER_ATTRIBUTE_NETWORK
89 #undef PRINTER_ATTRIBUTE_HIDDEN
90 #undef PRINTER_ATTRIBUTE_LOCAL
91 #undef PRINTER_ATTRIBUTE_ENABLE_DEVQ
92 #undef PRINTER_ATTRIBUTE_KEEPPRINTEDJOBS
93 #undef PRINTER_ATTRIBUTE_DO_COMPLETE_FIRST
94 #undef PRINTER_ATTRIBUTE_WORK_OFFLINE
95 #undef PRINTER_ATTRIBUTE_ENABLE_BIDI
96 #undef PRINTER_ATTRIBUTE_RAW_ONLY
97 #undef PRINTER_ATTRIBUTE_PUBLISHED
98 #undef PRINTER_ENUM_DEFAULT
99 #undef PRINTER_ENUM_LOCAL
100 #undef PRINTER_ENUM_CONNECTIONS
101 #undef PRINTER_ENUM_FAVORITE
102 #undef PRINTER_ENUM_NAME
103 #undef PRINTER_ENUM_REMOTE
104 #undef PRINTER_ENUM_SHARED
105 #undef PRINTER_ENUM_NETWORK
106 #undef PRINTER_ENUM_EXPAND
107 #undef PRINTER_ENUM_CONTAINER
108 #undef PRINTER_ENUM_ICON1
109 #undef PRINTER_ENUM_ICON2
110 #undef PRINTER_ENUM_ICON3
111 #undef PRINTER_ENUM_ICON4
112 #undef PRINTER_ENUM_ICON5
113 #undef PRINTER_ENUM_ICON6
114 #undef PRINTER_ENUM_ICON7
115 #undef PRINTER_ENUM_ICON8
116 #undef PRINTER_STATUS_PAUSED
117 #undef PRINTER_STATUS_ERROR
118 #undef PRINTER_STATUS_PENDING_DELETION
119 #undef PRINTER_STATUS_PAPER_JAM
120 #undef PRINTER_STATUS_PAPER_OUT
121 #undef PRINTER_STATUS_MANUAL_FEED
122 #undef PRINTER_STATUS_PAPER_PROBLEM
123 #undef PRINTER_STATUS_OFFLINE
124 #undef PRINTER_STATUS_IO_ACTIVE
125 #undef PRINTER_STATUS_BUSY
126 #undef PRINTER_STATUS_PRINTING
127 #undef PRINTER_STATUS_OUTPUT_BIN_FULL
128 #undef PRINTER_STATUS_NOT_AVAILABLE
129 #undef PRINTER_STATUS_WAITING
130 #undef PRINTER_STATUS_PROCESSING
131 #undef PRINTER_STATUS_INITIALIZING
132 #undef PRINTER_STATUS_WARMING_UP
133 #undef PRINTER_STATUS_TONER_LOW
134 #undef PRINTER_STATUS_NO_TONER
135 #undef PRINTER_STATUS_PAGE_PUNT
136 #undef PRINTER_STATUS_USER_INTERVENTION
137 #undef PRINTER_STATUS_OUT_OF_MEMORY
138 #undef PRINTER_STATUS_DOOR_OPEN
139 #undef PRINTER_STATUS_SERVER_UNKNOWN
140 #undef PRINTER_STATUS_POWER_SAVE
142 #undef DWORD
143 #undef HKEY_CLASSES_ROOT
144 #undef HKEY_CURRENT_USER
145 #undef HKEY_LOCAL_MACHINE
146 #undef HKEY_USERS
147 #undef HKEY_PERFORMANCE_DATA
148 #undef HKEY_CURRENT_CONFIG
149 #undef HKEY_DYN_DATA
150 #undef REG_DWORD
151 #undef REG_QWORD
153 #undef SERVICE_STATE_ALL
155 #undef SE_GROUP_MANDATORY
156 #undef SE_GROUP_ENABLED_BY_DEFAULT
157 #undef SE_GROUP_ENABLED
159 #endif /* _WIN32_REPLACE_H */