Shell32SHOpenFolderAndSelectItems Method

Opens a Windows Explorer window with specified items in a particular folder selected.

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")]
public static HResult SHOpenFolderAndSelectItems(
	PIDL pidlFolder,
	uint pidlCount,
	IntPtr[] pidlArray,
	OpenFolderFlags flags
)

Parameters

pidlFolder  PIDL
A pointer to a fully qualified item ID list that specifies the folder.
pidlCount  UInt32
A count of items in the pidlArray array.

If pidlCount is zero, then pidlFolder must point to a fully specified ITEMIDLIST describing a single item to select.

This function opens the parent folder and selects that item.

pidlArray  IntPtr
A pointer to an array of PIDL structures, each of which is an item to select in the target folder referenced by pidlFolder.
flags  OpenFolderFlags
The optional flags.

Return Value

HResult

[Missing <returns> documentation for "M:DevCase.Win32.NativeMethods.Shell32.SHOpenFolderAndSelectItems(DevCase.Win32.Common.PIDL,System.UInt32,System.IntPtr[],DevCase.Win32.Enums.OpenFolderFlags)"]

Remarks

See Also