Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "GetTempPath" in [All]

kernel32

.

    return GetTempFileName(prefix, unique, Path.GetTempPath());

.

    return GetTempFolderName(prefix, unique, Path.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]

.
Documentation
[GetTempPath] on MSDN

 
Access PInvoke.net directly from VS: