获取 Windows 特殊文件夹函数

时间:2010-01-26 12:53:35  来源:第二电脑网  作者:第二电脑网

  第二电脑网导读:nterfaceusesWindows, SysUtils, ShlObj;typeTSpecialFolder = (sfDesktop,                //     sfInternet,               //...
  正文:

在网上找不到比较全的,干脆自己做,现贡献出来。


unit Utils;

interface

uses
Windows, SysUtils, ShlObj;

type
TSpecialFolder = (
sfDesktop,                //
    sfInternet,               // Internet Explorer (icon on desktop)
    sfPrograms,               // Start MenuPrograms
    sfControls,               // My ComputerControl Panel
    sfPrinters,               // My ComputerPrinters
    sfPersonal,               // My Documents
    sfFavorites,              // Favorites
    sfStartup,                // Start MenuProgramsStartup
    sfRecent,                 // Recent
    sfSendTo,                 // SendTo
    sfBitBucket,              // Recycle Bin
    sfStartMenu,              // Start Menu
    sfMyDocuments,            // logical "My Documents" desktop icon
    sfMyMusic,                // "My Music" folder
    sfMyVideo,                // "My Videos" folder
    sfDesktopDirectory,       // Desktop
    sfDrives,                 // My Computer
    sfNetwork,                // Network Neighborhood (My Network Places)
    sfNethood,                // nethood
    sfFonts,                  // windowsfonts
    sfTemplates,              // Templates
    sfCommonStartMenu,        // All UsersStart Menu
    sfCommonPrograms,         // All UsersStart MenuPrograms
    sfCommonStartup,          // All UsersStartup

"获取 Windows 特殊文件夹函数"由第二电脑网原创提供,转载请注明:http://www.002pc.com/master/College/Language/Delphi/12427.html


关键字:

关于《获取 Windows 特殊文件夹函数》文章的评论

站内搜索: 高级搜索

热门搜索: Windows style 系统 tr IP QQ CPU 安装 function 注册 if td