Shell32PathGetShortPath Method
Retrieves the short path form of a specified input path.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Shell32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ExactSpelling = true, ThrowOnUnmappableChar = true, SetLastError = true)]
public static void PathGetShortPath(
StringBuilder longPath
)
<DllImportAttribute("Shell32.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ExactSpelling := true, ThrowOnUnmappableChar := true, SetLastError := true>]
Public Shared Sub PathGetShortPath (
longPath As StringBuilder
)
Dim longPath As StringBuilder
Shell32.PathGetShortPath(longPath)
public:
[DllImportAttribute(L"Shell32.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ExactSpelling = true, ThrowOnUnmappableChar = true, SetLastError = true)]
static void PathGetShortPath(
StringBuilder^ longPath
)
[<DllImportAttribute("Shell32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ExactSpelling = true, ThrowOnUnmappableChar = true, SetLastError = true)>]
static member PathGetShortPath :
longPath : StringBuilder -> unit
No code example is currently available or this language may not be supported.
Parameters
- longPath StringBuilder
-
A pointer to a null-terminated, Unicode string that contains the long path.
When the function returns, it contains the equivalent short path.