2 * PatchAPI PA19 file format handlers
4 * Copyright 2019 Conor McCarthy
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 DWORD
apply_patch_to_file_by_buffers(const BYTE
*patch_file_view
, const ULONG patch_file_size
,
22 const BYTE
*old_file_view
, ULONG old_file_size
,
23 BYTE
**new_file_buf
, const ULONG new_file_buf_size
, ULONG
*new_file_size
,
24 FILETIME
*new_file_time
,
25 const ULONG apply_option_flags
,
26 PATCH_PROGRESS_CALLBACK
*progress_fn
, void *progress_ctx
,
27 const BOOL test_header_only
);
29 BOOL
apply_patch_to_file_by_handles(HANDLE patch_file_hndl
, HANDLE old_file_hndl
, HANDLE new_file_hndl
,
30 const ULONG apply_option_flags
,
31 PATCH_PROGRESS_CALLBACK
*progress_fn
, void *progress_ctx
,
32 const BOOL test_header_only
);
34 BOOL
apply_patch_to_file(LPCWSTR patch_file_name
, LPCWSTR old_file_name
, LPCWSTR new_file_name
,
35 const ULONG apply_option_flags
,
36 PATCH_PROGRESS_CALLBACK
*progress_fn
, void *progress_ctx
,
37 const BOOL test_header_only
);