IShellFolderParseDisplayName Method
Translates the display name of a file object or a folder into an item identifier list.
Namespace: DevCase.Win32.InterfacesAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
void ParseDisplayName(
IntPtr hwnd,
[OptionalAttribute] IBindCtx bindContext,
string displayName,
ref uint refEaten,
ref PIDL refPidl,
out ShellItemAttributesMask refAttributes
)
Sub ParseDisplayName (
hwnd As IntPtr,
<OptionalAttribute> bindContext As IBindCtx,
displayName As String,
ByRef refEaten As UInteger,
ByRef refPidl As PIDL,
<OutAttribute> ByRef refAttributes As ShellItemAttributesMask
)
Dim instance As IShellFolder
Dim hwnd As IntPtr
Dim bindContext As IBindCtx
Dim displayName As String
Dim refEaten As UInteger
Dim refPidl As PIDL
Dim refAttributes As ShellItemAttributesMask
instance.ParseDisplayName(hwnd, bindContext,
displayName, refEaten, refPidl, refAttributes)
void ParseDisplayName(
IntPtr hwnd,
[OptionalAttribute] [InAttribute] IBindCtx^ bindContext,
String^ displayName,
unsigned int% refEaten,
PIDL^% refPidl,
[InAttribute] [OutAttribute] ShellItemAttributesMask% refAttributes
)
abstract ParseDisplayName :
hwnd : IntPtr *
[<OptionalAttribute>] bindContext : IBindCtx *
displayName : string *
refEaten : uint32 byref *
refPidl : PIDL byref *
refAttributes : ShellItemAttributesMask byref -> unit
No code example is currently available or this language may not be supported.
Parameters
- hwnd IntPtr
-
A window handle. The client should provide a window handle if it displays a dialog or message box.
Otherwise set hwnd to NULL.
- bindContext IBindCtx (Optional)
-
Optional. A pointer to a bind context used to pass parameters as inputs and outputs to the parsing function.
These passed parameters are often specific to the data source and are documented by the data source owners.
For example, the file system data source accepts the name being parsed (as a WIN32_FIND_DATA structure),
using the STR_FILE_SYS_BIND_DATA bind context parameter.
STR_PARSE_PREFER_FOLDER_BROWSING can be passed to indicate that URLs are parsed using the file system data source when possible.
Construct a bind context object using CreateBindCtx and populate the values using IBindCtx::RegisterObjectParam.
If no data is being passed to or received from the parsing function, this value can be NULL.
- displayName String
-
A null-terminated Unicode string with the display name.
Because each Shell folder defines its own parsing syntax, the form this string can take may vary.
The desktop folder, for instance, accepts paths such as "C:\My Docs\My File.txt".
It also will accept references to items in the namespace that have a GUID associated with them using the "::{GUID}" syntax.
- refEaten UInt32
-
A pointer to a value that receives the number of characters of the display name that was parsed.
If your application does not need this information, set refEaten to NULL, and no value will be returned.
- refPidl PIDL
-
When this method returns, contains a pointer to the PIDL for the object.
The returned item identifier list specifies the item relative to the parsing folder.
If the object associated with displayName is within the parsing folder,
the returned item identifier list will contain only one SHITEMID structure.
If the object is in a subfolder of the parsing folder,
the returned item identifier list will contain multiple SHITEMID structures.
If an error occurs, NULL is returned in this address.
When it is no longer needed, it is the responsibility of the caller to free this resource by calling CoTaskMemFree.
- refAttributes ShellItemAttributesMask
-
The value used to query for file attributes.
If not used, it should be set to NULL.
To query for one or more attributes, initialize this parameter with the
ShellItemAttributesMask flags that represent the attributes of interest.
On return, those attributes that are and were requested will be set.