SetTempPathA

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 SetTempPath and string arguments are interpreted using the current SetAnsiMode code page

Sets the folder to use for storage of temporary files which are generated by functions such as

MergeFileList.

Syntax

Delphi

Function DLSetTempPathA(InstanceID: Integer; NewPath: PAnsiChar): Integer;

DLL

int DLSetTempPathA(int InstanceID, const char* NewPath);

Parameters

NewPathThe new folder to use. This folder must exist already, it will not be created.

Return values

0The specified folder does not exists or does not have read/write access
1The temporary path was set successfully