Vista virtualstore文件夹 [英] Vista virtualstore folder

查看:56
本文介绍了Vista virtualstore文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序(原始平台XP),用户可以在其中列出文件夹和文件.复选框允许用户启用或禁用隐藏和/或系统文件夹的显示.

我在FindFirst/Next中使用递归函数来获取文件夹名称以在TreeView中建立显示.显示自定义图标,以显示文件夹是普通,隐藏,系统还是隐藏系统文件夹.如果各自的控制检查的隐藏文件和系统文件夹只添加到TreeView.

我相信我需要为virtualstore文件夹添加相同的控件或阻止它们.除了名称以外,还有一种简便的方法可以识别它们吗?

I have an application (original platform XP) in which the user can list folders and files. Checkboxes permit the user to enable or disable the display of hidden and/or system folders.

I am using a recursive function with FindFirst/Next to get folder names to build a display in a TreeView. Custom ICONS are displayed to show if a folder is normal, hidden, system or a hidden system folder. The hidden and system folders are only added to the TreeView if their respective control is checked.

I believe I need to add the same control for virtualstore folders or block them. Is there an easy way to identify them other than by name?

推荐答案

Microsoft为此提供了一些不错的API:
http://msdn.microsoft.com/zh-CN /library/windows/desktop/bb762181(v=vs.85).aspx [ http://msdn.microsoft.com/zh-CN /library/windows/desktop/bb762188(v=vs.85).aspx [
Microsoft has some nice API for that:
http://msdn.microsoft.com/en-us/library/windows/desktop/bb762181(v=vs.85).aspx[^]

but reading that they done some homeworks to make live some different:

http://msdn.microsoft.com/en-us/library/windows/desktop/bb762188(v=vs.85).aspx[^]

That is the correct way to get these values.


这篇关于Vista virtualstore文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆