ws2_32: UDP sockets can write data even when unbound.
[wine.git] / include / patchapi.h
blob9a62a0ff64e46cc1b4adfa2e1aa6338a557b5a77
1 /*
2 * Copyright 2011 Hans Leidekker 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 _PATCHAPI_H_
20 #define _PATCHAPI_H_
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
26 #define APPLY_OPTION_FAIL_IF_EXACT 0x00000001
27 #define APPLY_OPTION_FAIL_IF_CLOSE 0x00000002
28 #define APPLY_OPTION_TEST_ONLY 0x00000004
29 #define APPLY_OPTION_VALID_FLAGS 0x00000007
31 typedef struct _PATCH_IGNORE_RANGE
33 ULONG OffsetInOldFile;
34 ULONG LengthInBytes;
35 } PATCH_IGNORE_RANGE, *PPATCH_IGNORE_RANGE;
37 typedef struct _PATCH_RETAIN_RANGE
39 ULONG OffsetInOldFile;
40 ULONG LengthInBytes;
41 ULONG OffsetInNewFile;
42 } PATCH_RETAIN_RANGE, *PPATCH_RETAIN_RANGE;
44 BOOL WINAPI ApplyPatchToFileA(LPCSTR,LPCSTR,LPCSTR,ULONG);
45 BOOL WINAPI ApplyPatchToFileW(LPCWSTR,LPCWSTR,LPCWSTR,ULONG);
46 #define ApplyPatchToFile WINELIB_NAME_AW(ApplyPatchToFile)
48 #ifdef __cplusplus
50 #endif
52 #endif /* _PATCHAPI_H_ */