patchapi.h revision 3194da424708abdd288b28d96892b3a5f3f7df0b
251N/A/*
251N/A * Copyright 2011 Hans Leidekker for CodeWeavers
251N/A *
251N/A * This library is free software; you can redistribute it and/or
251N/A * modify it under the terms of the GNU Lesser General Public
251N/A * License as published by the Free Software Foundation; either
251N/A * version 2.1 of the License, or (at your option) any later version.
251N/A *
251N/A * This library is distributed in the hope that it will be useful,
251N/A * but WITHOUT ANY WARRANTY; without even the implied warranty of
251N/A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
251N/A * Lesser General Public License for more details.
251N/A *
251N/A * You should have received a copy of the GNU Lesser General Public
251N/A * License along with this library; if not, write to the Free Software
251N/A * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
251N/A */
251N/A
251N/A#ifndef _PATCHAPI_H_
251N/A#define _PATCHAPI_H_
2790N/A
251N/A#ifdef __cplusplus
3817N/Aextern "C" {
2790N/A#endif
2790N/A
251N/A#define APPLY_OPTION_FAIL_IF_EXACT 0x00000001
251N/A#define APPLY_OPTION_FAIL_IF_CLOSE 0x00000002
4845N/A#define APPLY_OPTION_TEST_ONLY 0x00000004
784N/A#define APPLY_OPTION_VALID_FLAGS 0x00000007
618N/A
4845N/Atypedef struct _PATCH_IGNORE_RANGE
4845N/A{
844N/A ULONG OffsetInOldFile;
844N/A ULONG LengthInBytes;
4845N/A} PATCH_IGNORE_RANGE, *PPATCH_IGNORE_RANGE;
1289N/A
251N/Atypedef struct _PATCH_RETAIN_RANGE
2899N/A{
2899N/A ULONG OffsetInOldFile;
251N/A ULONG LengthInBytes;
251N/A ULONG OffsetInNewFile;
251N/A} PATCH_RETAIN_RANGE, *PPATCH_RETAIN_RANGE;
251N/A
3817N/ABOOL WINAPI ApplyPatchToFileA(LPCSTR,LPCSTR,LPCSTR,ULONG);
3817N/ABOOL WINAPI ApplyPatchToFileW(LPCWSTR,LPCWSTR,LPCWSTR,ULONG);
3817N/A#define ApplyPatchToFile WINELIB_NAME_AW(ApplyPatchToFile)
251N/A
1938N/A#ifdef __cplusplus
1938N/A}
2790N/A#endif
2790N/A
2790N/A#endif /* _PATCHAPI_H_ */
5069N/A