SaveImageListItemDataToFileA

Image handling

Description

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to SaveImageListItemDataToFile and string arguments are interpreted using the current SetAnsiMode code page

Saves the image data of an image list item to a file on disk

Syntax

Delphi

Function DLSaveImageListItemDataToFileA(InstanceID, ImageListID, ImageIndex, Options: Integer; ImageFileName: PAnsiChar): Integer;

DLL

int DLSaveImageListItemDataToFileA(int InstanceID, int ImageListID, int ImageIndex, int Options, const char * ImageFileName);

Parameters

ImageListIDA value returned by the GetPageImageList function The index of the image in the list. The first image has an index of 1
ImageIndex
OptionsReserved for future use. Should be set to 0
ImageFileNameThe path and filename of the file to create

Return values

0Image data could not be saved
1Image data was saved successfully