想获得AppData的目录,比如:C:\Documents and Settings\Cline\Application Data这个目录。即注册表中:HKEY_CURRENT_USER,"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders\\下,AppData的值所指的目录。
当然可以从注册表中获取,但我想用比较直接的函数,比如GetSystemDirectory()那样直接,简洁。