The function reads the additional information on a memory image from the file specified and then stores the same in the structure transferred. The additional information is
The name of the file,
The memory date,
The controller type,
The size of the retain memory of the controller,
The user information,
The MD5 hash value and
The size of the memory image.
Input |
Data type |
Description |
---|---|---|
i_sRetainImageFileName |
STRING[80] |
Name of the file whose ProgramIdent is to be compared with the ProgramIdent of the application currently located in the memory. The file name automatically receives the extension .ret. The file may be located in any existing directory of the controller. The file name must not include any special characters or wildcards. |
Input/Output |
Data type |
Description |
---|---|---|
iq_stInfo |
ST_RetainImageInfo |
Transfer of additional information (see structure ST_RetainImageInfo). |
Data type |
Description |
---|---|
DINT |
0: The additional information was read successfully from the specified file. -1: The additional information could not be read because the transferred file name is invalid. The file name contains special characters ":", "\" or "/" and wildcards "*" or "?". -2: The additional information could not be read because the specified directory does not exist. -3: The additional information could not be read because the specified file name does not exist. -4: The additional information could not be read because the specified file is not a memory image file of a retain memory. -5: The additional information could not be read because a general error has been detected in the function FC_GetRetainImageInfo(). |
diResult := FC_GetRetainImageInfo(‚karton', stRetainInfo);
The additional information is read from the file 'karton.ret' and then stored in the structure 'stRetainInfo' of the type 'ST_RetainImageInfo'. The file 'karton.ret' is located on the default device 'ide0:'.
diResult := FC_GetRetainImageInfo(‚ide0:\retain\plister', stRetainInfo);
The additional information is read from the file ‚plister.ret’ and stored in the structure 'stRetainInfo' of the type 'ST_RetainImageInfo'. The file 'plister.ret' is located in the directory ‚retain’ on the default device 'ide0:'.
diResult := FC_GetRetainImageInfo(‚remote:ide0:\etikett', stRetainInfo);
The additional information is read from the file 'plister.ret' and stored in the structure 'stRetainInfo' of the type 'ST_RetainImageInfo'. The file 'etikett.ret' is located on the remote device ‚remote:’ in the drive 'ide0:'.