Refresh Windows Explorer in Win7

前端 未结 4 1329
野性不改
野性不改 2020-12-09 04:13

My program sets \"HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\" value \"Hidden\". Hovewer I\'m not able to refresh the e

4条回答
  •  有刺的猬
    2020-12-09 04:59

    I don't know about Open/Save dialogs, but you can get a list of open explorer windows with COM automation, the Shell.Application object has a collection of windows, or CoCreate IID_IShellWindows directly, each window in the list has a refresh method.

    WSH/JScript:

    for(var sw=new ActiveXObject("Shell.Application").Windows(),i=0;i

    I don't know about C#, but here are examples dealing with shell windows in WSH/JScript and c++

提交回复
热议问题