Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter FifteenWindows/OS Functions (continued)

ReplaceModuleIcon Function

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