Fixed bug with SHCreateItemWithParent

pull/38/head
David Hall 2019-01-21 15:24:14 -08:00
parent d782a19271
commit 320a00aa61
1 changed files with 3 additions and 3 deletions

View File

@ -1601,7 +1601,7 @@ namespace Vanara.PInvoke
/// </returns> /// </returns>
[SecurityCritical, SuppressUnmanagedCodeSecurity] [SecurityCritical, SuppressUnmanagedCodeSecurity]
[PInvokeData("Shobjidl.h", MSDNShortId = "bb762137")] [PInvokeData("Shobjidl.h", MSDNShortId = "bb762137")]
public static TIntf SHCreateItemWithParent<TIntf>(PIDL pidlParent, PIDL pidl) where TIntf : class => public static TIntf SHCreateItemWithParent<TIntf>([In] PIDL pidlParent, [In] PIDL pidl) where TIntf : class =>
IidGetObj<TIntf>((in Guid g, out object o) => SHCreateItemWithParent(pidlParent, null, pidl, g, out o)); IidGetObj<TIntf>((in Guid g, out object o) => SHCreateItemWithParent(pidlParent, null, pidl, g, out o));
/// <summary>Create a Shell item, given a parent folder and a child item ID.</summary> /// <summary>Create a Shell item, given a parent folder and a child item ID.</summary>
@ -1616,8 +1616,8 @@ namespace Vanara.PInvoke
/// </returns> /// </returns>
[SecurityCritical, SuppressUnmanagedCodeSecurity] [SecurityCritical, SuppressUnmanagedCodeSecurity]
[PInvokeData("Shobjidl.h", MSDNShortId = "bb762137")] [PInvokeData("Shobjidl.h", MSDNShortId = "bb762137")]
public static TIntf SHCreateItemWithParent<TIntf>(IShellFolder psfParent, PIDL pidl) where TIntf : class => public static TIntf SHCreateItemWithParent<TIntf>([In] IShellFolder psfParent, [In] PIDL pidl) where TIntf : class =>
IidGetObj<TIntf>((in Guid g, out object o) => SHCreateItemWithParent(null, psfParent, pidl, g, out o)); IidGetObj<TIntf>((in Guid g, out object o) => SHCreateItemWithParent(PIDL.Null, psfParent, pidl, g, out o));
/// <summary>Creates a Shell item array object.</summary> /// <summary>Creates a Shell item array object.</summary>
/// <param name="pidlParent"> /// <param name="pidlParent">