Shell32SHGetNameFromIDList(PIDL, ShellItemGetDisplayName, StringBuilder) Method

Retrieves the display name of an item identified by its IDList.

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, 
	ThrowOnUnmappableChar = true)]
public static HResult SHGetNameFromIDList(
	PIDL pidl,
	ShellItemGetDisplayName sigdn,
	out StringBuilder refName
)

Parameters

pidl  PIDL
A PIDL that identifies the item.
sigdn  ShellItemGetDisplayName
A value from the ShellItemGetDisplayName enumeration that specifies the type of display name to retrieve.
refName  StringBuilder
A value that, when this function returns successfully, receives the retrieved display name.

Return Value

HResult
If this function succeeds, it returns S_OK.

Otherwise, it returns an HResult error code.

Remarks

See Also