ApplyDeltaB function
Uses the delta and source (provided as buffers) to create a new copy of the target data. The output data is returned in an MSDelta-allocated buffer.
Note
You must call DeltaFree to free the output buffer after this function has completed.
Note
If the specified delta was created using PatchAPI, and the DELTA_APPLY_FLAG_ALLOW_PA19 flag is set, MSDelta will call PatchAPI to apply the delta.
Syntax
BOOL WINAPI ApplyDeltaB(
DELTA_FLAG_TYPE ApplyFlags,
DELTA_INPUT Source,
DELTA_INPUT Delta,
LPDELTA_OUTPUT lpTarget
);
Parameters
ApplyFlags
[in] Either DELTA_FLAG_NONE or DELTA_APPLY_FLAG_ALLOW_PA19.
Source
[in] A DELTA_INPUT structure containing a pointer to the buffer containing the source data.
Delta
[in] A DELTA_INPUT structure containing a pointer to the buffer containing the delta data.
lpTarget
[out] Pointer to the DELTA_OUTPUT structure where the target is to be written.
Return value
This function returns TRUE if it succeeds; otherwise, it returns FALSE. When the function returns FALSE, you can call GetLastError to get the corresponding Win32 system error code.
Requirements
Requirement | Value |
---|---|
Header | msdelta.h |
DLL | msdelta.dll |
Unicode | Not applicable |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for