Shell32SHGetPathFromIDList Method
Converts an item identifier list to a file system 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,
ThrowOnUnmappableChar = true, SetLastError = true)]
public static bool SHGetPathFromIDList(
IntPtr pidl,
StringBuilder path
)
<DllImportAttribute("Shell32.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ThrowOnUnmappableChar := true, SetLastError := true>]
Public Shared Function SHGetPathFromIDList (
pidl As IntPtr,
path As StringBuilder
) As Boolean
Dim pidl As IntPtr
Dim path As StringBuilder
Dim returnValue As Boolean
returnValue = Shell32.SHGetPathFromIDList(pidl,
path)
public:
[DllImportAttribute(L"Shell32.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
static bool SHGetPathFromIDList(
IntPtr pidl,
StringBuilder^ path
)
[<DllImportAttribute("Shell32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)>]
static member SHGetPathFromIDList :
pidl : IntPtr *
path : StringBuilder -> bool
No code example is currently available or this language may not be supported.
- pidl IntPtr
-
The address of an item identifier list that specifies a file or directory location relative to the
root of the namespace (the desktop).
- path StringBuilder
-
The address of a buffer to receive the file system path.
This buffer must be at least MAX_PATH characters in size.
Boolean if successful; otherwise,
.