SetTempFileA
Miscellaneous functions
Description
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to SetTempFile and string arguments are interpreted using the current SetAnsiMode code page
Specifies a temporary file which can be used during operations such as encryption. This allows large documents to be processed without running out of memory
Syntax
Delphi
Function DLSetTempFileA(InstanceID: Integer; FileName: PAnsiChar): Integer;
DLL
int DLSetTempFileA(int InstanceID, const char* FileName);
Parameters
| FileName | The full path and file to use as a temporary file. This path must have write access by the running process. For example, "c:\temp\pdftemp.dat". |
|---|
Return values
| 0 | The path specified was not valid. A temporary file could not be created |
|---|---|
| 1 | The temporary file could be created successfully |