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

shlwapi

.

static extern bool PathCompactPathEx([Out] StringBuilder pszOut, string szPath, int cchMax, int dwFlags);

.

<DllImport("shlwapi.dll", EntryPoint:="PathCompactPathExW",  SetLastError:=True, CharSet:=CharSet.Unicode)>

.

Shared Public Function PathCompactPathEx(

.

Public Declare Function PathCompactPathEx Lib "shlwapi" Alias "PathCompactPathExA" _

.

    /// Test code for PathCompactPathEx

.

            string longPath = "c:\\a\\very\\very\\long\\path\\that\\needs\\to\\be\\shortened\\by\\calling\\the\\PathCompactpathEx";

.

            // displays : "c:\a\very\very\long...\PathCompactpathEx"

.

        static extern bool PathCompactPathEx([Out] StringBuilder pszOut, string szPath, int cchMax, int dwFlags);

.

            PathCompactPathEx(sb, longPathName, wantedLength + 1, 0);

.

        PathCompactPathEx(sb, path, MAX_WIDTH + 1, 0)

.
Documentation
PathCompactPathEx on MSDN [TextRenderer.MeasureText] on MSDN
.

static extern bool PathCompactPathEx([Out] StringBuilder pszOut, string szPath, int cchMax, int dwFlags);

.

<DllImport("shlwapi.dll", EntryPoint:="PathCompactPathExW",  SetLastError:=True, CharSet:=CharSet.Unicode)> _

.

Shared Public Function PathCompactPathEx(

.

Public Declare Function PathCompactPathEx Lib "shlwapi" Alias "PathCompactPathExA" _

.

    /// Test code for PathCompactPathEx

.

            string longPath = "c:\\a\\very\\very\\long\\path\\that\\needs\\to\\be\\shortened\\by\\calling\\the\\PathCompactpathEx";

.

            // displays : "c:\a\very\very\long...\PathCompactpathEx"

.

        static extern bool PathCompactPathEx([Out] StringBuilder pszOut, string szPath, int cchMax, int dwFlags);

.

            PathCompactPathEx(sb, longPathName, wantedLength + 1, 0);

.

        PathCompactPathEx(sb, path, MAX_WIDTH + 1, 0)

.
Documentation
PathCompactPathEx on MSDN [TextRenderer.MeasureText] on MSDN

 
Access PInvoke.net directly from VS: