EndUpdateResource

  BOOL EndUpdateResource(hUpdateFile, fDiscard)    
  HANDLE hUpdateFile; /* handle from BeginUpdateResource */
  BOOL fDiscard; /* discard updates? */

The EndUpdateResource function completes a resource update in an executable file.

Parameters

hUpdateFile

Specifies an update handle. This handle is returned by the BeginUpdateResource function.

fDiscard

If TRUE, updates accumulated by the UpdateResource function are discarded. If FALSE, the updates are written to the executable file.

Return Value

The return value is TRUE if the accumulated resource modifications specified by calls to UpdateResource were written to the executable file specified by hUpdateFile. Otherwise, the return value is FALSE. Use the GetLastError function to obtain extended error information.

Comments

The EndUpdateResource function may be used as either a wide-character function (where text arguments must use Unicode) or an ANSI function (where text arguments must use characters from the Windows 3.x character set installed).

See Also

BeginUpdateResource, UpdateResource