/* * PatchAPI PA19 file format handlers * * Copyright 2019 Conor McCarthy * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */DWORDapply_patch_to_file_by_buffers(constBYTE*patch_file_view,constULONGpatch_file_size,constBYTE*old_file_view,ULONGold_file_size,BYTE**new_file_buf,constULONGnew_file_buf_size,ULONG*new_file_size,FILETIME*new_file_time,constULONGapply_option_flags,PATCH_PROGRESS_CALLBACK*progress_fn,void*progress_ctx,constBOOLtest_header_only);BOOLapply_patch_to_file_by_handles(HANDLEpatch_file_hndl,HANDLEold_file_hndl,HANDLEnew_file_hndl,constULONGapply_option_flags,PATCH_PROGRESS_CALLBACK*progress_fn,void*progress_ctx,constBOOLtest_header_only);BOOLapply_patch_to_file(LPCWSTRpatch_file_name,LPCWSTRold_file_name,LPCWSTRnew_file_name,constULONGapply_option_flags,PATCH_PROGRESS_CALLBACK*progress_fn,void*progress_ctx,constBOOLtest_header_only);