CPackage::UndoApply

The CPackage::UndoApply function reverses the application of a patch package, restoring files that have been removed or updated.

BOOL UndoApply(
LPCTSTR lpszUndoFile // name of package undo file
);

Parameters

lpszUndoFile
[in] A pointer to a null-terminated string which specifies the name of the reverse patch package created when the CPackage::Apply function was called.

Return Values

If the CPackage::UndoApply function succeeds, it will return a non-zero value.

If the function fails, it will return a value of zero. To get extended error information, call GetLastError.

Remarks

The undo file is removed after the patch has been successfully reversed.

If multiple patch packages have been applied, they should be reversed in the opposite order in which they were created.

Requirements

Windows NT/2000/XP: Requires Windows NT 4.0 SP3 or later.
Windows 95/98: Requires Windows 95 or later.
Header: Include apatch.h.
Library: Use apatch32.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT/2000/XP.

See Also

CPackage::Apply