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 "GetShortPathName" in [All]

kernel32

.
Summary
.

static extern uint GetShortPathName(

.

static extern uint GetShortPathName(string lpszLongPath, char[] lpszShortPath, int cchBuffer);

.

[DllImport("kernel32.dll", CharSet = CharSet.Unicode, EntryPoint = "GetShortPathNameW", SetLastError = true)]

.

static extern int GetShortPathName(string pathName, System.Text.StringBuilder shortName, int cbShortName);

.

      Public Shared Function GetShortPathName(ByVal longPath As String, _

.

   Declare Unicode Function GetShortPathName Lib "kernel32.dll" Alias "GetShortPathNameW" (ByVal longPath As String, <MarshalAs(UnmanagedType.LPTStr)> ByVal ShortPath As System.Text.StringBuilder, <MarshalAs(UnmanagedType.U4)> ByVal bufferSize As Integer) As Integer

.

static int GetShortPathName(

.

    GetShortPathName(longName, shortNameBuffer, bufferSize);

.

    GetShortPathName(longpath, buffer, buffer.Length);

.

public static string GetShortPathName(string longFileName)

.

    int sz = GetShortPathName(longFileName, null, 0);

.

    sz = GetShortPathName(longFileName, sb, sb.Capacity);

.

      Public Shared Function GetShortPathName(ByVal longPath As String, _

.

      Dim tempVal As Integer = Interop.GetShortPathName(Path, sb, 1024)

.

Public Declare Function GetShortPathName Lib "kernel32" Alias "GetShortPathNameA" (ByVal lpszLongPath As String, ByVal lpszShortPath As String, ByVal cchBuffer As Integer) As Integer

.

RetVal = GetShortPathName(FindMedia, ShortFileName, Microsoft.VisualBasic.Len(ShortFileName))

.
Documentation
[GetShortPathName] on MSDN
.

    TempFile.GetShortPathName(Path.GetTempPath, shortPath, TempFile.MAX_PATH)


 
Access PInvoke.net directly from VS: