Shell32SHCreateShellItem Method
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", ExactSpelling := true>]
Public Shared Function SHCreateShellItem (
pidlParent As PIDL,
folderParent As IShellFolder,
pidl As PIDL,
<OutAttribute> ByRef refShellItem As IShellItem
) As HResult
Dim pidlParent As PIDL
Dim folderParent As IShellFolder
Dim pidl As PIDL
Dim refShellItem As IShellItem
Dim returnValue As HResult
returnValue = Shell32.SHCreateShellItem(pidlParent,
folderParent, pidl, refShellItem)
public:
[DllImportAttribute(L"Shell32.dll", ExactSpelling = true)]
static HResult SHCreateShellItem(
PIDL^ pidlParent,
IShellFolder^ folderParent,
PIDL^ pidl,
[OutAttribute] IShellItem^% refShellItem
)
[<DllImportAttribute("Shell32.dll", ExactSpelling = true)>]
static member SHCreateShellItem :
pidlParent : PIDL *
folderParent : IShellFolder *
pidl : PIDL *
refShellItem : IShellItem byref -> HResult
No code example is currently available or this language may not be supported.
- pidlParent PIDL
-
A PIDL to the parent. This value can be NULL.
- folderParent IShellFolder
-
A pointer to the parent IShellFolder. This value can be NULL.
- pidl PIDL
-
A PIDL to the requested item.
If parent information is not included in pidlParent or folderParent, this must be an absolute PIDL.
- refShellItem IShellItem
-
When this method returns, contains the interface pointer to the new IShellItem.
HResult
If this function succeeds, it returns
S_OK.
Otherwise, it returns an
HResult error code.