Shell32SHGetNameFromIDList(PIDL, ShellItemGetDisplayName, StringBuilder) Method
Retrieves the display name of an item identified by its IDList.
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)]
public static HResult SHGetNameFromIDList(
PIDL pidl,
ShellItemGetDisplayName sigdn,
out StringBuilder refName
)
<DllImportAttribute("Shell32.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ThrowOnUnmappableChar := true>]
Public Shared Function SHGetNameFromIDList (
pidl As PIDL,
sigdn As ShellItemGetDisplayName,
<OutAttribute> ByRef refName As StringBuilder
) As HResult
Dim pidl As PIDL
Dim sigdn As ShellItemGetDisplayName
Dim refName As StringBuilder
Dim returnValue As HResult
returnValue = Shell32.SHGetNameFromIDList(pidl,
sigdn, refName)
public:
[DllImportAttribute(L"Shell32.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true)]
static HResult SHGetNameFromIDList(
PIDL^ pidl,
ShellItemGetDisplayName sigdn,
[OutAttribute] StringBuilder^% refName
)
[<DllImportAttribute("Shell32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true)>]
static member SHGetNameFromIDList :
pidl : PIDL *
sigdn : ShellItemGetDisplayName *
refName : StringBuilder byref -> HResult
No code example is currently available or this language may not be supported.
- 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.
HResult
If this function succeeds, it returns
S_OK.
Otherwise, it returns an
HResult error code.