11 2013 档案
环境变量的更改WIN32API
摘要:api:FreeEnvironmentStrings,GetEnvironmentVariable,SetEnvironmentVariableGetEnvironmentStrings#include_putenv(constchar*envstring)通过注册表APIif(RegOpenKeyEx(HKEY_LOCAL_MACHINE,strKey,0,KEY_WRITE,&hResult)!=ERROR_SUCCESS){return0;}if(RegSetValueEx(hResult,szName,NULL,REG_SZ,(constunsignedchar*)szValu 阅读全文
posted @ 2013-11-20 00:28 默默淡然 阅读(1201) 评论(0) 推荐(0) 编辑