A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z



PathCompactPathEx

Truncates a path to fit within a certain number of characters by replacing path components with ellipses.

VB4-32,5,6
Declare Function PathCompactPathEx Lib "shlwapi.dll" Alias "PathCompactPathExA" (ByVal pszOut As String, ByVal pszSrc As String, ByVal cchMax As Long, ByVal dwFlags As Long) As Long

Operating Systems Supported
Requires Windows 2000 (or Windows NT 4.0 with Internet Explorer 4.0 or later); Requires Windows 98 (or Windows 95 with Internet Explorer 4.0 or later)

Library
Shlwapi

Parameter Information
- pszOut
[out] Address of the string that has been altered.

- pszSrc
[in] Address of the string to be altered.

- cchMax
[in] Maximum number of characters to be contained in the new string, including the terminating NULL character. For example, if cchMax = 8, the resulting string can contain a maximum of 7 characters plus the NULL terminator.

- dwFlags
Reserved.

Return Values
Returns TRUE if successful, or FALSE otherwise

Last update: 07 April 2006