SHChangeNotify

Discussion in 'Software' started by matt.chugg, May 9, 2007.

  1. matt.chugg

    matt.chugg MajorGeek

    OK How do I force all explorer windows to refresh ? (I am changing registry values for Hidden Files) the registry part is fine and the files update if you hit f5 but there has to be a way to inform explorer to refresh itself which MUST be possible since if you use tools --> folder options to do it, it refreshes when you click ok.

    Heres what the declarations I think I need but I can get no combination of wflags and uflags to work.

    Code:
        <DllImport("shell32.dll")> _
        Public Sub SHChangeNotify(ByVal wEventID As HChangeNotifyEventID, ByVal uFlags As HChangeNotifyFlags, ByVal dwItem1 As IntPtr, ByVal dwItem2 As IntPtr)
        End Sub
    
     
  2. matt.chugg

    matt.chugg MajorGeek

    ok SOMETIMES hitting f5 works, sometimes its doesn't

    modAPI.SHChangeNotify(HChangeNotifyEventID.SHCNE_ASSOCCHANGED, HChangeNotifyFlags.SHCNF_IDLIST, IntPtr.Zero, IntPtr.Zero) ocasionaly works

    This is silly how can it be this random ?
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds