Shell32SHCreateItemWithParent(PIDL, IShellFolder, PIDL, Guid, IShellItem) Method
Create a Shell item, given a parent folder and a child item ID.
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 SHCreateItemWithParent(
PIDL pidlParent,
IShellFolder folderParent,
PIDL pidl,
ref Guid refIid,
out IShellItem refShellItem
)
<DllImportAttribute("Shell32.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ExactSpelling := true, ThrowOnUnmappableChar := true>]
<SecurityCriticalAttribute>
Public Shared Function SHCreateItemWithParent (
pidlParent As PIDL,
folderParent As IShellFolder,
pidl As PIDL,
ByRef refIid As Guid,
<OutAttribute> ByRef refShellItem As IShellItem
) As HResult
Dim pidlParent As PIDL
Dim folderParent As IShellFolder
Dim pidl As PIDL
Dim refIid As Guid
Dim refShellItem As IShellItem
Dim returnValue As HResult
returnValue = Shell32.SHCreateItemWithParent(pidlParent,
folderParent, pidl, refIid, refShellItem)
public:
[DllImportAttribute(L"Shell32.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ExactSpelling = true, ThrowOnUnmappableChar = true)]
[SecurityCriticalAttribute]
static HResult SHCreateItemWithParent(
[InAttribute] PIDL^ pidlParent,
[InAttribute] IShellFolder^ folderParent,
[InAttribute] PIDL^ pidl,
Guid% refIid,
[OutAttribute] IShellItem^% refShellItem
)
[<DllImportAttribute("Shell32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ExactSpelling = true, ThrowOnUnmappableChar = true)>]
[<SecurityCriticalAttribute>]
static member SHCreateItemWithParent :
pidlParent : PIDL *
folderParent : IShellFolder *
pidl : PIDL *
refIid : Guid byref *
refShellItem : IShellItem byref -> HResult
No code example is currently available or this language may not be supported.
- pidlParent PIDL
-
The IDList of the parent folder of the item being created; the IDList of folderParent.
This parameter can be NULL if folderParent param is specified.
- folderParent IShellFolder
-
A pointer to IShellFolder interface that specifies the shell data source of the
child item specified by the pidl.
This parameter can be NULL, if pidlParent is specified.
- pidl PIDL
-
A child item ID relative to its parent folder specified by pidlParent or folderParent.
- 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 interface pointer requested in refIid.
This will typically be IShellItem or IShellItem2.
HResult
If this function succeeds, it returns
S_OK.
Otherwise, it returns an
HResult error code.