Shell32SHCreateItemFromParsingName(String, IntPtr, Guid, IShellItem) Method
Creates and initializes a Shell item object from a parsing name.
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, SetLastError = true)]
public static HResult SHCreateItemFromParsingName(
string path,
IntPtr pbc,
ref Guid refIID,
ref IShellItem refShellItem
)
<DllImportAttribute("Shell32.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ThrowOnUnmappableChar := true, SetLastError := true>]
Public Shared Function SHCreateItemFromParsingName (
path As String,
pbc As IntPtr,
ByRef refIID As Guid,
ByRef refShellItem As IShellItem
) As HResult
Dim path As String
Dim pbc As IntPtr
Dim refIID As Guid
Dim refShellItem As IShellItem
Dim returnValue As HResult
returnValue = Shell32.SHCreateItemFromParsingName(path,
pbc, refIID, refShellItem)
public:
[DllImportAttribute(L"Shell32.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
static HResult SHCreateItemFromParsingName(
String^ path,
IntPtr pbc,
Guid% refIID,
IShellItem^% refShellItem
)
[<DllImportAttribute("Shell32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)>]
static member SHCreateItemFromParsingName :
path : string *
pbc : IntPtr *
refIID : Guid byref *
refShellItem : IShellItem byref -> HResult
No code example is currently available or this language may not be supported.
- path String
-
A display name.
- pbc IntPtr
-
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 Win32FindDataW structure),
using the STR_FILE_SYS_BIND_DATA bind context parameter.
- refIID Guid
-
A reference to the IID of the interface to retrieve through ppv, typically IID_IShellItem or IID_IShellItem2.
- refShellItem IShellItem
-
When this method returns successfully, contains the interface pointer requested in refIID.
This is typically IShellItem or IShellItem2.
HResult
If this function succeeds, it returns
S_OK.
Otherwise, it returns an
HResult error code.