NAME

PathCompactPathExA  (SHLWAPI.@)

SYNOPSIS

 BOOL PathCompactPathExA
 (
  LPSTR  lpszDest,
  LPCSTR lpszPath,
  UINT   cchMax,
  DWORD  dwFlags
 )

DESCRIPTION

Compact a path into a given number of characters.

PARAMS

lpszDest [Out] Destination for compacted path.
lpszPath [In] Source path.
cchMax [In] Maximum size of compacted path.
dwFlags [In] Reserved.

RETURNS

Success: TRUE. The compacted path is written to lpszDest.

Failure: FALSE. lpszPath is undefined.

NOTES

If cchMax is given as 0, lpszDest will still be NUL terminated.

The Win32 version of this function contains a bug: When cchMax == 7, 8 bytes will be written to lpszDest. This bug is fixed in the Wine implementation.

Some relative paths will be different when cchMax == 5 or 6. This occurs because Win32 will insert a "\" in lpszDest, even if one is not present in the original path.

IMPLEMENTATION

Declared in "shlwapi.h". https://source.winehq.org/source/include/shlwapi.h

Implemented in "dlls/shlwapi/path.c". https://source.winehq.org/source/dlls/shlwapi/path.c

Debug channel "shell".


Copyright © 2024 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Apr 2024.