启动瑞星监控后不能重启的问题

我用DELPHI编了一段代码,实现电脑定时重启。没有安装瑞星时运行正常。安装瑞星后如果开启监控,那段代码就不能实现系统定时重启了,系统好象已经把一些程序关装了,屏幕上已经没有任何东西,但屏幕还是亮着的,电脑还可以远程控制,就是不能重启。把监控关了后就正常了。
我的代码如下:

openprocesstoken(getcurrentprocess(),token_adjust_privileges or token_query,htoken);
lookupprivilegevalue(nil, 'seshutdownprivilege',tkp.Privileges[0].Luid);
tkp.privilegecount:=1;
tkp.Privileges[0].attributes:=se_privilege_enabled;
adjusttokenprivileges(htoken,false,tkp,0,nil,rr);
exitwindowsex(ewx_reboot,0);

还望高手指点,急!•àÅõ(æTÝbbs.ikaka.com­¤ÏñÕsŽ
最后编辑2005-07-02 21:04:09