修改注册表里的环境变量后立即生效

SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, 0,
    integer(pchar('Environment')), SMTO_ABORTIFHUNG, 5000, MsgResult);

posted @ 2008-06-18 21:06  流星无语  阅读(360)  评论(0编辑  收藏  举报