也用过 SHGetSpecialFolderLocati
但这都不如用 GetEnvironmentVariable 获取系统变量来得快.
%WINDIR%
%SYSTEMROOT%
%SYSTEMDRIVE%
%HOMEDRIVE%
%USERPROFILE%
%HOMEPATH%
%TMP%
%TEMP%
%APPDATA%
%PROGRAMFILES%
%COMMONPROGRAMFILES%
%USERNAME%
%ALLUSERSPROFILE%
%OS%
%COMPUTERNAME%
%NUMBER_OF_PROCESSORS%
%PROCESSOR_ARCHITECTURE% {处理器芯片架构 - x86}
%PROCESSOR_LEVEL%
%PROCESSOR_REVISION%
%USERDOMAIN%
%COMSPEC%
%PATHEXT% {执行文件类型 - .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.pyo;.pyc;.py;.pyw}
%PATH%