From 0b3ac8d87a7c15d64f4f87b5d6385508b6748d92 Mon Sep 17 00:00:00 2001 From: dahall Date: Tue, 18 Jan 2022 06:28:50 -0700 Subject: [PATCH] Prevented #269 by addeding documentation and removing [Optional] attribute on final param for SHChangeNotify. --- PInvoke/Shell32/ShlObj.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PInvoke/Shell32/ShlObj.cs b/PInvoke/Shell32/ShlObj.cs index 98bda05c..373cdd8a 100644 --- a/PInvoke/Shell32/ShlObj.cs +++ b/PInvoke/Shell32/ShlObj.cs @@ -3879,11 +3879,11 @@ namespace Vanara.PInvoke /// values contained in the dwItem1 and dwItem2 parameters must be the same, respectively, for all specified events. /// /// Flags that, when combined bitwise with SHCNF_TYPE, indicate the meaning of the dwItem1 and dwItem2 parameters. - /// Optional. First event-dependent value. - /// Optional. Second event-dependent value. + /// Optional. First event-dependent value or . + /// Optional. Second event-dependent value or . [DllImport(Lib.Shell32, ExactSpelling = true)] [PInvokeData("Shlobj.h")] - public static extern void SHChangeNotify(SHCNE wEventId, SHCNF uFlags, PIDL dwItem1, [Optional] PIDL dwItem2); + public static extern void SHChangeNotify(SHCNE wEventId, SHCNF uFlags, PIDL dwItem1, PIDL dwItem2); /// /// Unregisters the client's window process from receiving SHChangeNotify messages.