
UM0516
Files library
3.3.10
FILES_GetImageNbElement
FILES_GetImageNbElement (HANDLE Handle, PDWORD pNbElements)
Gets the number of elements in the given image.
Table 42. FILES_GetImageNbElement description
Field
Type
Description
Handle
HANDLE Pointer to the image handle.
Input
pNbElements PDWORD Number of elements.
Output
DWORD SUCCESS, Error otherwise (see Error codes).
3.3.11
FILES_ImageFromFile
FILES_ImageFromFile (PSTR pPathFile, PHANDLE pImage, BYTE
nAlternate)
Loads the image from the given S19 or Hex file specified by pPathFile. The file format is
recognized by its extension (*.s19 or *.Hex).
Table 43. FILES_ImageFromFile description
Field
Type
Description
pPathFile PSTR
Path of the file to be loaded, can be S19 or Hex file.
Input pImage PHANDLE Pointer to an image handle to be created.
nAlternate BYTE
Index to be associated with the image.
Output
DWORD SUCCESS, Error otherwise (see Error codes).
3.3.12
FILES_ImageToFile
FILES_ImageToFile (PSTR pPathFile, HANDLE Image)
Saves the given image handle to the S19 or Hex file specified by pPathFile. The file format
is recognized by its extension (*.s19 or *.Hex).
Table 44. FILES_ImageToFile description
Field Type
Description
pPathFile PSTR Path of the file, can be S19 or Hex file.
Input
Image HANDLE Pointer to image handle
Output
DWORD SUCCESS, Error otherwise (see Error codes).
Doc ID 14490 Rev 2
23/26

























