Shell32SHCreateItemFromParsingName(String, IBindCtx, Guid, IShellItem) Method

Creates and initializes a Shell item object from a parsing name.

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)]
public static HResult SHCreateItemFromParsingName(
	string path,
	[OptionalAttribute] IBindCtx bindContext,
	ref Guid refIid,
	out IShellItem refShellItem
)

Parameters

path  String
A pointer to a display name.
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.

refIid  Guid
A reference to the IID of the interface to retrieve through refShellItem, typically IID_IShellItem or IID_IShellItem2.
refShellItem  IShellItem
When this function returns, contains the IShellItem interface pointer requested in refIid.

Return Value

HResult
If this function succeeds, it returns S_OK. Otherwise, it returns an HResult error code.

Remarks

See Also