GetEmbeddedFileContentToFileA

Document properties

Description

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

Extracts the specified embedded file and writes the content to the specified file.

Syntax

Delphi

Function DLGetEmbeddedFileContentToFileA(InstanceID, Index: Integer; FileName: PAnsiChar): Integer;

DLL

int DLGetEmbeddedFileContentToFileA(int InstanceID, int Index, const char * FileName);

Parameters

IndexThe index of the embedded file. Must be a value between 1 and the value returned by EmbeddedFileCount.
FileNameThe path and file name of the file to write the contents to.

Return values

0Could not write to the specified file or Index parameter was invalid. Embedded file contents written to the specified file successfully.
1