 |
UpdateResource Add comment W32 Constants Translate this page |
 |
 |
|
The UpdateResource function adds, deletes, or replaces a resource in an executable file. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL UpdateResource(
HANDLE hUpdate,
LPCTSTR lpType,
LPCTSTR lpName,
WORD wLanguage,
LPVOID lpData,
DWORD cbData
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER UpdateResource IN kernel32;
INTEGER hUpdate,;
INTEGER lpType,;
INTEGER lpName,;
INTEGER wLanguage,;
STRING lpData,;
INTEGER cbData
|
 |
 |
 |
| Parameters: |
 |
hUpdate
[in] Specifies an update-file handle. This handle is returned by the BeginUpdateResource function.
lpType
[in] Pointer to a null-terminated string specifying the resource type to be updated.
lpName
[in] Pointer to a null-terminated string specifying the name of the resource to be updated.
wLanguage
[in] Specifies the language identifier of the resource to be updated.
lpData
[in]
Pointer to the resource data to be inserted into the executable file.
|
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is nonzero. |
 |
 |
| My comment: |
 |
An application can use UpdateResource repeatedly to make changes to the resource data. Each call to UpdateResource contributes to an internal list of additions, deletions, and replacements but does not actually write the data to the executable file.
The application must use the EndUpdateResource function to write the accumulated changes to the executable file. |
 |
 |
| Word Index links for the UpdateResource : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2003-05-16 10:36:09 | | Modified: | 2003-05-16 10:39:00 | Visited in last 7 days: 15 |