J jeffzxc Unregistered / Unconfirmed GUEST, unregistred user! 2004-01-12 #1 SetEnviromentVariable只能设置当前进程的环境变量,程序退出就没了。<br><br>如何才能修改整个系统的环境,请兄弟姐妹出手。
A Aiirii Unregistered / Unconfirmed GUEST, unregistred user! 2004-01-12 #2 你直接修改注冊表<br>HKEY_LOCAL_MACHINE/System/CurrentControlSet/Control/Session Manager/Environment <br>就可!<br>如果想立即生效, 可發送個<br>SendMessageTimeout(HWND_BROADCAST,WM_SETTINGCHANGE..<br>or <br>SendMessage(HWND_BROADCAST,WM_SETTINGCHANGE..<br>就可!
你直接修改注冊表<br>HKEY_LOCAL_MACHINE/System/CurrentControlSet/Control/Session Manager/Environment <br>就可!<br>如果想立即生效, 可發送個<br>SendMessageTimeout(HWND_BROADCAST,WM_SETTINGCHANGE..<br>or <br>SendMessage(HWND_BROADCAST,WM_SETTINGCHANGE..<br>就可!