The EndUpdateResource function ends a resource update in an executable file.
BOOL EndUpdateResource(
HANDLE hUpdate, // update-file handle
BOOL fDiscard // write flag
);
If the function succeeds and the accumulated resource modifications specified by calls to the UpdateResource function are written to the specified executable file, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Windows NT: Requires version 3.1 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in winbase.h.
Import Library: Use kernel32.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT.
Resources Overview, Resource Functions, BeginUpdateResource, UpdateResource