Create a temporary file name in Windows temp area
{******************************************************<br />function skuGetTempFileName(prefix: string): string;<br />Creates a temporary file name with the given prefix. The<br />Windows temporary folder name is used as the path of<br />the temporary file.<br />Note: Only the first three characters of the prefix are used.<br />Example: tempFile := skuGetTempFileName('FTS');<br />******************************************************}<br />function skuGetTempFileName(prefix: string): string;<br />var<br /> tempPath, tempFile: string;<br />begin<br /> SetLength(tempPath, MAX_PATH);<br /> GetTempPath(MAX_PATH, PChar(tempPath));<br /> SetLength(tempFile, MAX_PATH);<br /> GetTempFileName(PChar(tempPath), PChar(prefix), 0, PChar(tempFile));<br /> SetLength(tempFile, StrLen(PChar(tempFile)));<br /> Result := tempFile;<br />end;<br />