Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.19 KB

EndUpdateResource.md

File metadata and controls

47 lines (32 loc) · 1.19 KB

Home

Function name : EndUpdateResource

Group: Resource - Library: kernel32


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


Code examples:

Storing registration key in the resources of an executable file

Declaration:

BOOL EndUpdateResource(
	HANDLE hUpdate,
	BOOL fDiscard
);  

FoxPro declaration:

DECLARE INTEGER EndUpdateResource IN kernel32;
	INTEGER hUpdate,;
	INTEGER fDiscard
  

Parameters:

hUpdate [in] Handle used in a resource update. This handle is returned by the BeginUpdateResource function.

fDiscard [in] Specifies whether to write resource updates to an executable file. If this parameter is TRUE, no changes are made to the executable file. If it is FALSE, the changes are made.


Return value:

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.