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 | #ifndef _PATCHAPI_H_
|
---|
20 | #define _PATCHAPI_H_
|
---|
21 |
|
---|
22 | #ifdef __cplusplus
|
---|
23 | extern "C" {
|
---|
24 | #endif
|
---|
25 |
|
---|
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
|
---|
30 |
|
---|
31 | typedef struct _PATCH_IGNORE_RANGE
|
---|
32 | {
|
---|
33 | ULONG OffsetInOldFile;
|
---|
34 | ULONG LengthInBytes;
|
---|
35 | } PATCH_IGNORE_RANGE, *PPATCH_IGNORE_RANGE;
|
---|
36 |
|
---|
37 | typedef struct _PATCH_RETAIN_RANGE
|
---|
38 | {
|
---|
39 | ULONG OffsetInOldFile;
|
---|
40 | ULONG LengthInBytes;
|
---|
41 | ULONG OffsetInNewFile;
|
---|
42 | } PATCH_RETAIN_RANGE, *PPATCH_RETAIN_RANGE;
|
---|
43 |
|
---|
44 | BOOL WINAPI ApplyPatchToFileA(LPCSTR,LPCSTR,LPCSTR,ULONG);
|
---|
45 | BOOL WINAPI ApplyPatchToFileW(LPCWSTR,LPCWSTR,LPCWSTR,ULONG);
|
---|
46 | #define ApplyPatchToFile WINELIB_NAME_AW(ApplyPatchToFile)
|
---|
47 |
|
---|
48 | #ifdef __cplusplus
|
---|
49 | }
|
---|
50 | #endif
|
---|
51 |
|
---|
52 | #endif /* _PATCHAPI_H_ */
|
---|