GoFiler Legato Script Reference
Legato v 1.5d Application v 5.25a
|
Table of Contents | < < Previous | Next >> |
Chapter Fifteen — Windows/OS Functions (continued)
Overview
The ReplaceModuleIcon function finds a specific icon resources and replaces or updates the icon resources, in all its sizes, within a specified module.
Syntax/Parameters
Syntax
int = ReplaceModuleIcon ( string target, string name, handle | string data );
Parameters
target
A string specifying the filename and path for a target module. The module must be an exe or dll file.
name
A string specifying the name of the resource.
data
A handle or string specifying the source data. If a handle is specified, it must be a Data Object containing the binary data to use as the new resource item. If a string is specified, it must be a filename and path to a file containing the binary data to use as the new resource item.
Return Value
Returns an int as ERROR_NONE or a formatted error code on failure.
Remarks
Information specified by the data parameter must be data in ICON format. Note that internally, resource icon data is broken into individual images of varying resolution. If an icon size exists in the data but not in the module, it is added. If an icon at a size does not exist in the data but exist in the module, it is deleted.
The script mast have the appropriate rights to modify the target file.
Related Functions
Platform Support
Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL
Legato IDE, Legato Basic
Table of Contents | < < Previous | Next >> |
© 2012-2024 Novaworks, LLC. All rights reserved worldwide. Unauthorized use, duplication or transmission prohibited by law. Portions of the software are protected by US Patents 10,095,672, 10,706,221 and 11,210,456. GoFiler™ and Legato™ are trademarks of Novaworks, LLC. EDGAR® is a federally registered trademark of the U.S. Securities and Exchange Commission. Novaworks is not affiliated with or approved by the U.S. Securities and Exchange Commission. All other trademarks are property of their respective owners. Use of the features specified in this language are subject to terms, conditions and limitations of the Software License Agreement.