Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在我的程序中启用或禁用“显示隐藏的填充和文件夹”和“显示系统隐藏的文件和文件夹”选项?(我并不是要更改文件属性是否隐藏 - 我需要更改 Windows 选项。)
如果它们不是 C++ 方法,是否可以通过更改注册表项或类似的方法?
SHELLSTATE ss; ZeroMemory(&ss,sizeof(ss)); ss.fShowAllObjects=TRUE; ss.fShowSysFiles=TRUE; ss.fShowSuperHidden=TRUE; SHGetSetSettings(&ss, SSF_SHOWALLOBJECTS|SSF_SHOWSYSFILES|SSF_SHOWSUPERHIDDEN,TRUE)