From 9b73d369002c893d09e316e9a5819effc80fa3ca Mon Sep 17 00:00:00 2001 From: David Hall Date: Wed, 16 Jan 2019 08:16:01 -0700 Subject: [PATCH] Removed PIDL references from IShell... interfaces to prevent interop problems --- PInvoke/Shell32/ShObjIdl.IShellView.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/PInvoke/Shell32/ShObjIdl.IShellView.cs b/PInvoke/Shell32/ShObjIdl.IShellView.cs index bfe1082a..bc913e72 100644 --- a/PInvoke/Shell32/ShObjIdl.IShellView.cs +++ b/PInvoke/Shell32/ShObjIdl.IShellView.cs @@ -697,7 +697,7 @@ namespace Vanara.PInvoke /// the flag or flags set in the wFlags parameter. /// /// Flags specifying the folder to be browsed. - void BrowseObject(PIDL pidl, SBSP wFlags); + void BrowseObject(IntPtr pidl, SBSP wFlags); /// Gets an IStream interface that can be used for storage of view-specific state information. /// Read/write access of the IStream interface. @@ -941,7 +941,7 @@ namespace Vanara.PInvoke /// Changes the selection state of one or more items within the Shell view window. /// The address of the ITEMIDLIST structure. /// One of the _SVSIF constants that specify the type of selection to apply. - new void SelectItem(PIDL pidlItem, SVSIF uFlags); + new void SelectItem(IntPtr pidlItem, SVSIF uFlags); /// Gets an interface that refers to data presented in the view. /// The constants that refer to an aspect of the view. @@ -969,13 +969,13 @@ namespace Vanara.PInvoke /// /// A pointer to an ITEMIDLIST structure. The current identifier is passed in and is replaced by the new one. /// - void HandleRename(PIDL pidlNew); + void HandleRename(IntPtr pidlNew); /// Selects and positions an item in a Shell View. /// A pointer to an ITEMIDLIST structure that uniquely identifies the item of interest. /// One of the _SVSIF constants that specify the type of selection to apply. /// A pointer to a POINT structure containing the new position. - void SelectAndPositionItem(PIDL pidlItem, SVSIF flags, in System.Drawing.Point point); + void SelectAndPositionItem(IntPtr pidlItem, SVSIF flags, in System.Drawing.Point point); } /// @@ -1053,7 +1053,7 @@ namespace Vanara.PInvoke /// Changes the selection state of one or more items within the Shell view window. /// The address of the ITEMIDLIST structure. /// One of the _SVSIF constants that specify the type of selection to apply. - new void SelectItem(PIDL pidlItem, SVSIF uFlags); + new void SelectItem(IntPtr pidlItem, SVSIF uFlags); /// Gets an interface that refers to data presented in the view. /// The constants that refer to an aspect of the view. @@ -1081,13 +1081,13 @@ namespace Vanara.PInvoke /// /// A pointer to an ITEMIDLIST structure. The current identifier is passed in and is replaced by the new one. /// - new void HandleRename(PIDL pidlNew); + new void HandleRename(IntPtr pidlNew); /// Selects and positions an item in a Shell View. /// A pointer to an ITEMIDLIST structure that uniquely identifies the item of interest. /// One of the _SVSIF constants that specify the type of selection to apply. /// A pointer to a POINT structure containing the new position. - new void SelectAndPositionItem(PIDL pidlItem, SVSIF flags, in System.Drawing.Point point); + new void SelectAndPositionItem(IntPtr pidlItem, SVSIF flags, in System.Drawing.Point point); /// /// Requests the creation of a new Shell view window. The view can be either the right pane of Windows Explorer or the client