EnumObjects(NULL, SHCONTF_FOLDERS|SHCONTF_INCLUDEHIDDEN,
&pEnum);
第二个参数 来自结构体 typedef enum tagSHCONTF
{
SHCONTF_FOLDERS = 0x0020, // only want
folders enumerated (SFGAO_FOLDER)
SHCONTF_NONFOLDERS = 0x0040, // include non
folders
SHCONTF_INCLUDEHIDDEN = 0x0080, // show items
normally hidden
SHCONTF_INIT_ON_FIRST_NEXT = 0x0100, // allow
EnumObject() to return before validating enum
SHCONTF_NETPRINTERSRCH = 0x0200, // hint that
client is looking for printers
SHCONTF_SHAREABLE = 0x0400, // hint that
client is looking sharable resources (remote shares)
SHCONTF_STORAGE = 0x0800, // include all
items with accessible storage and their ancestors
};
这个结构体是d:\vs2005\vc\platformsdk\include\shobjidl.h 系
统的头文件
http://msdn.microsoft.com/en-
us/library/windows/desktop/bb762539%28v=vs.85%29.aspx
不知道为什么SHCONTF_FOLDERS|SHCONTF_INCLUDEHIDDEN这样的参数,在windows 7下面还是会显示出.zip的文件,里面还可以打开,当作文件夹使用了。
但是同样编译出来的在XP下面是不存在这种情况的? 我还安装了WinRAR评估版本。
求大神指导,这bug太诡异了吧?