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
阅读全文