1 | /*
|
---|
2 | * Copyright 2011 Hans Leidekker for CodeWeavers
|
---|
3 | *
|
---|
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.
|
---|
8 | *
|
---|
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.
|
---|
13 | *
|
---|
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
|
---|
17 | */
|
---|
18 |
|
---|
19 | /*
|
---|
20 | * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | #ifndef _PATCHAPI_H_
|
---|
29 | #define _PATCHAPI_H_
|
---|
30 |
|
---|
31 | #ifdef __cplusplus
|
---|
32 | extern "C" {
|
---|
33 | #endif
|
---|
34 |
|
---|
35 | #define APPLY_OPTION_FAIL_IF_EXACT 0x00000001
|
---|
36 | #define APPLY_OPTION_FAIL_IF_CLOSE 0x00000002
|
---|
37 | #define APPLY_OPTION_TEST_ONLY 0x00000004
|
---|
38 | #define APPLY_OPTION_VALID_FLAGS 0x00000007
|
---|
39 |
|
---|
40 | typedef struct _PATCH_IGNORE_RANGE
|
---|
41 | {
|
---|
42 | ULONG OffsetInOldFile;
|
---|
43 | ULONG LengthInBytes;
|
---|
44 | } PATCH_IGNORE_RANGE, *PPATCH_IGNORE_RANGE;
|
---|
45 |
|
---|
46 | typedef struct _PATCH_RETAIN_RANGE
|
---|
47 | {
|
---|
48 | ULONG OffsetInOldFile;
|
---|
49 | ULONG LengthInBytes;
|
---|
50 | ULONG OffsetInNewFile;
|
---|
51 | } PATCH_RETAIN_RANGE, *PPATCH_RETAIN_RANGE;
|
---|
52 |
|
---|
53 | BOOL WINAPI ApplyPatchToFileA(LPCSTR,LPCSTR,LPCSTR,ULONG);
|
---|
54 | BOOL WINAPI ApplyPatchToFileW(LPCWSTR,LPCWSTR,LPCWSTR,ULONG);
|
---|
55 | #define ApplyPatchToFile WINELIB_NAME_AW(ApplyPatchToFile)
|
---|
56 |
|
---|
57 | #ifdef __cplusplus
|
---|
58 | }
|
---|
59 | #endif
|
---|
60 |
|
---|
61 | #endif /* _PATCHAPI_H_ */
|
---|