Commits or discards changes made prior to a call to UpdateResource.
BOOL EndUpdateResourceW( HANDLE hUpdate, BOOL fDiscard );
Indicates whether to write the resource updates to the file. If this parameter is TRUE, no changes are made. If it is FALSE, the changes are made: the resource updates will take effect.
Returns TRUE if the function succeeds; FALSE otherwise. If the function succeeds and
fDiscard is TRUE, then no resource updates are made to the file; otherwise all
successful resource updates are made to the file. To get extended error information, call GetLastError.
Before you call this function, make sure all file handles other than the one returned by BeginUpdateResource are closed.
This function can update resources within modules that contain both code and resources. There are restrictions on resource updates in LN files and .mui files, both of which contain Resource Configuration data; details of the restrictions are in the reference for the UpdateResource function.
For an example, see Updating Resources.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|Header||winbase.h (include Windows.h)|