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.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: 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
)

Parameters

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.

Return Value

Boolean
if successful; otherwise, .

Remarks

See Also