.NET 获取指定文件夹图标

来源:百度知道 编辑:UC知道 时间:2024/05/03 04:20:14
比如我要获得磁盘驱动器C的系统默认图标,怎么获得?
wefgod3,请问能不能再具体些!

[System.Runtime.InteropServices.DllImport("shell32.dll")]
private static extern int ExtractIconEx(string lpszFile, int niconIndex, ref IntPtr phiconLarge, ref IntPtr phiconSmall, int nIcons);

或许你要用API来实现