Group: Resource - Library: kernel32
The BeginUpdateResource function returns a handle that can be used by the UpdateResource function to add, delete, or replace resources in an executable file.
Storing registration key in the resources of an executable file
HANDLE BeginUpdateResource(
LPCTSTR pFileName,
BOOL bDeleteExistingResources
);
DECLARE INTEGER BeginUpdateResource IN kernel32;
STRING pFileName,;
INTEGER bDeleteExistingResources
pFileName [in] Pointer to a null-terminated string that specifies the executable file in which to update resources.
bDeleteExistingResources [in] Specifies whether to delete the pFileName parameter"s existing resources.
If the function succeeds, the return value is a handle that can be used by the UpdateResource and EndUpdateResource functions.
An application must be able to obtain write access to the executable file; it cannot be currently executing. If pFileName does not specify a full path, the system searches for the file in the current directory.