Shell32SHGetPathFromIDListEx Method
Converts an item identifier list to a file system path.
This function extends
SHGetPathFromIDList(IntPtr, StringBuilder) by allowing you to
set the initial size of the string buffer and declare the options below.
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 bool SHGetPathFromIDListEx(
IntPtr pidl,
StringBuilder path,
uint pathSize,
GetPathFromIdListOption option
)
<DllImportAttribute("Shell32.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ExactSpelling := true, ThrowOnUnmappableChar := true, SetLastError := true>]
Public Shared Function SHGetPathFromIDListEx (
pidl As IntPtr,
path As StringBuilder,
pathSize As UInteger,
option As GetPathFromIdListOption
) As Boolean
Dim pidl As IntPtr
Dim path As StringBuilder
Dim pathSize As UInteger
Dim option As GetPathFromIdListOption
Dim returnValue As Boolean
returnValue = Shell32.SHGetPathFromIDListEx(pidl,
path, pathSize, option)
public:
[DllImportAttribute(L"Shell32.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ExactSpelling = true, ThrowOnUnmappableChar = true, SetLastError = true)]
static bool SHGetPathFromIDListEx(
IntPtr pidl,
StringBuilder^ path,
unsigned int pathSize,
GetPathFromIdListOption option
)
[<DllImportAttribute("Shell32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ExactSpelling = true, ThrowOnUnmappableChar = true, SetLastError = true)>]
static member SHGetPathFromIDListEx :
pidl : IntPtr *
path : StringBuilder *
pathSize : uint32 *
option : GetPathFromIdListOption -> 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.
- pathSize UInt32
-
The size of the buffer pointed to by path parameter, in characters.
- option GetPathFromIdListOption
-
Determine the type of path returned.
Boolean if successful; otherwise,
.