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