Desktop Functions: Smart Device Functions:
|
Search Results for "GetTempPath" in [All]kernel32
return GetTempFileName(prefix, unique, Path.GetTempPath());
return GetTempFolderName(prefix, unique, Path.GetTempPath()); 2: GetTempPath
static extern uint GetTempPath(uint nBufferLength,
Declare Function GetTempPath Lib "kernel32.dll" (nBufferLength As Integer, _ Note that there are two entrypoints to GetTempPath in kernel32.dll called "GetTempPathA" and "GetTempPathW". So if you want to use GetTempPath you have to set the EntryPoint on the DllImport-Attribute as follows (C#): [DllImport("kernel32.dll", EntryPoint = "GetTempPathA")]
lngRet = GetTempPath(MAX_PATH - 14, tempPath)
TempFile.GetShortPathName(Path.GetTempPath, shortPath, TempFile.MAX_PATH)
expected = shortPath.ToString + Left(fPrefix, 3) ' GetTempPath end with "\" [System.IO.Path.GetTempPath] |