利用递归可以,你可以检查每一个项目的属性,如果是dir就递归下去! 可以用 SHGetFileInfo() Retrieves information about an object in the file system, such as a file, a folder, a directory, or a drive root.你还可以利用Shell编程得到某个Shell Object对象下面的子对象和它的属性,具体用到IShellFolder,...这些Shell接口, 还有一些ShellAPI如ShGetDesktopFolder()之类,你可以看msdn的Platformsdk documentation -> user interface service->windows shell里面的相关内容,不过要有COM客户编程基础,要不很难看懂!利用Shell提供的接口你可以扩展windows的功能!如果你深入研究的话你一定会有意想不到的收获的!还有利用SHGetFileInfo还可以得到系统的图象列表ImageList祝你成功^_^
可以用
SHGetFileInfo()
Retrieves information about an object in the file system, such as a file, a folder, a directory, or a drive root.你还可以利用Shell编程得到某个Shell Object对象下面的子对象和它的属性,具体用到IShellFolder,...这些Shell接口,
还有一些ShellAPI如ShGetDesktopFolder()之类,你可以看msdn的Platformsdk documentation -> user interface service->windows shell里面的相关内容,不过要有COM客户编程基础,要不很难看懂!利用Shell提供的接口你可以扩展windows的功能!如果你深入研究的话你一定会有意想不到的收获的!还有利用SHGetFileInfo还可以得到系统的图象列表ImageList祝你成功^_^
谢谢,我的email:
[email protected]
have some sample
i think it will help you