The BeginUpdateResource function returns a handle that can be used by the UpdateResource function to add, delete, or replace resources in an executable file.
HANDLE BeginUpdateResource(
LPCTSTR pFileName, |
// pointer to file in which to update resources |
BOOL bDeleteExistingResources |
// deletion option |
); |
If the function succeeds, the return value is a handle that can be used by the UpdateResource and EndUpdateResource functions. The return value is NULL if the specified file is not an executable file, the executable file is already loaded, the file does not exist, or the file cannot be opened for writing. To get extended error information, call GetLastError.
EndUpdateResource, UpdateResource
Questions:
Interested: