mirror of https://github.com/dahall/Vanara.git
Changed all instances of PIDL[] parameters to IntPtr[] to avoid marshaling error.
parent
61d0fbb908
commit
00e3e73cfd
|
@ -347,7 +347,7 @@ namespace Vanara.PInvoke
|
|||
/// name="apidl"/> should be positioned.
|
||||
/// </param>
|
||||
/// <param name="dwFlags">One of the _SVSIF constants that specifies the type of selection to apply.</param>
|
||||
void SelectAndPositionItems([In] uint cidl, [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 0)] PIDL[] apidl, [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 0)] Point[] apt, [In] SVSIF dwFlags);
|
||||
void SelectAndPositionItems([In] uint cidl, [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 0)] IntPtr[] apidl, [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 0)] Point[] apt, [In] SVSIF dwFlags);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -442,7 +442,7 @@ namespace Vanara.PInvoke
|
|||
/// name="apidl"/> should be positioned.
|
||||
/// </param>
|
||||
/// <param name="dwFlags">One of the _SVSIF constants that specifies the type of selection to apply.</param>
|
||||
new void SelectAndPositionItems([In] uint cidl, [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 0)] PIDL[] apidl, [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 0)] Point[] apt, [In] SVSIF dwFlags);
|
||||
new void SelectAndPositionItems([In] uint cidl, [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 0)] IntPtr[] apidl, [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 0)] Point[] apt, [In] SVSIF dwFlags);
|
||||
|
||||
/// <summary>Groups the view by the given property key and direction.</summary>
|
||||
/// <param name="key">
|
||||
|
|
|
@ -1790,7 +1790,7 @@ namespace Vanara.PInvoke
|
|||
[DllImport(Lib.Shell32, SetLastError = false, ExactSpelling = true)]
|
||||
[PInvokeData("shobjidl_core.h", MSDNShortId = "024ccbc7-97f1-4cb5-8588-9c9b1f747336")]
|
||||
public static extern HRESULT SHCreateShellItemArray([In, Optional] PIDL pidlParent, [In, MarshalAs(UnmanagedType.Interface), Optional] IShellFolder psf,
|
||||
[In, Optional] uint cidl, [In, Optional] PIDL[] ppidl, out IShellItemArray ppsiItemArray);
|
||||
[In, Optional] uint cidl, [In, Optional] IntPtr[] ppidl, out IShellItemArray ppsiItemArray);
|
||||
|
||||
/// <summary>
|
||||
/// <para>Creates a Shell item array object from a data object.</para>
|
||||
|
|
|
@ -4061,7 +4061,7 @@ namespace Vanara.PInvoke
|
|||
// PCIDLIST_ABSOLUTE pidlFolder, UINT cidl, PCUITEMID_CHILD_ARRAY apidl, IDataObject *pdtInner, REFIID riid, void **ppv );
|
||||
[DllImport(Lib.Shell32, SetLastError = false, ExactSpelling = true)]
|
||||
[PInvokeData("shlobj_core.h", MSDNShortId = "d56cdafe-9463-43a5-8ef0-6cfaf0c524a8")]
|
||||
public static extern HRESULT SHCreateDataObject(PIDL pidlFolder, uint cidl, [In, MarshalAs(UnmanagedType.LPArray)] PIDL[] apidl, IDataObject pdtInner, in Guid riid, out IDataObject ppv);
|
||||
public static extern HRESULT SHCreateDataObject(PIDL pidlFolder, uint cidl, [In, MarshalAs(UnmanagedType.LPArray)] IntPtr[] apidl, IDataObject pdtInner, in Guid riid, out IDataObject ppv);
|
||||
|
||||
/// <summary>
|
||||
/// <para>Creates an object that represents the Shell's default context menu implementation.</para>
|
||||
|
|
Loading…
Reference in New Issue