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

MSDelta

DeltaFree