2012年11月17日

windows特殊路径获得

摘要: DWORD GetEnvironmentVariable( LPCTSTR lpName, // environment variable name LPTSTR lpBuffer, // buffer for variable value DWORD nSize // size of buffer);lpName为环境变量名称,如“userprofile”可得到%userprofile%地址。DWORD GetTempPath( DWORD nBufferLength, // size of buffer LPTSTR lpBuffer // path b... 阅读全文

posted @ 2012-11-17 09:13 Ricky.yi 阅读(203) 评论(0) 推荐(0) 编辑

导航