SHChangeNotifyRegister

[DllImport("shell32.dll")]
public static extern uint SHChangeNotifyRegister(
   IntPtr hwnd,
   uint fSources,
   uint fEvents,
   uint wMsg,
   int cEntries,
   [MarshalAs(UnmanagedType.LPArray)] SHChangeNotifyEntry[] pFsne
);

Microsoft documentation: Link

Last updated