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
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
;
35 } PATCH_IGNORE_RANGE
, *PPATCH_IGNORE_RANGE
;
37 typedef struct _PATCH_RETAIN_RANGE
39 ULONG OffsetInOldFile
;
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)
52 #endif /* _PATCHAPI_H_ */