Shell32SHCreateItemFromRelativeName(IShellItem, String, IBindCtx, Guid, Object) Method
Creates and initializes a Shell item object from a relative 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,
ExactSpelling = true, ThrowOnUnmappableChar = true)]
[SecurityCriticalAttribute]
public static HResult SHCreateItemFromRelativeName(
IShellItem parent,
string name,
IBindCtx bindContext,
ref Guid refIid,
out Object refShellItem
)
<DllImportAttribute("Shell32.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ExactSpelling := true, ThrowOnUnmappableChar := true>]
<SecurityCriticalAttribute>
Public Shared Function SHCreateItemFromRelativeName (
parent As IShellItem,
name As String,
bindContext As IBindCtx,
ByRef refIid As Guid,
<OutAttribute> ByRef refShellItem As Object
) As HResult
Dim parent As IShellItem
Dim name As String
Dim bindContext As IBindCtx
Dim refIid As Guid
Dim refShellItem As Object
Dim returnValue As HResult
returnValue = Shell32.SHCreateItemFromRelativeName(parent,
name, bindContext, refIid, refShellItem)
public:
[DllImportAttribute(L"Shell32.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ExactSpelling = true, ThrowOnUnmappableChar = true)]
[SecurityCriticalAttribute]
static HResult SHCreateItemFromRelativeName(
[InAttribute] IShellItem^ parent,
[InAttribute] String^ name,
[InAttribute] IBindCtx^ bindContext,
Guid% refIid,
[OutAttribute] Object^% refShellItem
)
[<DllImportAttribute("Shell32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ExactSpelling = true, ThrowOnUnmappableChar = true)>]
[<SecurityCriticalAttribute>]
static member SHCreateItemFromRelativeName :
parent : IShellItem *
name : string *
bindContext : IBindCtx *
refIid : Guid byref *
refShellItem : Object byref -> HResult
No code example is currently available or this language may not be supported.
- parent IShellItem
-
A pointer to the parent Shell item.
- name String
-
A pointer to a null-terminated, Unicode string that specifies a display name that is relative to the parent.
- bindContext IBindCtx
-
A pointer to a bind context that controls the parsing operation.
This parameter can be NULL.
- refIid Guid
-
A reference to an interface ID, typically IID_IShellItem or IID_IShellItem2.
- refShellItem Object
-
When this function returns, contains the interface pointer requested in refIid.
This will usually be IShellItem or IShellItem2.
HResult
If this function succeeds, it returns
S_OK.
Otherwise, it returns an
HResult error code.