我想在服务器上写一个对CS服务器监控是否被了的功能.例如CS服务器进程名为"hlds.exe"
路径为"F:\AOSENCS1.6\HLServer\hlds.exe"
如果在SERVICES里监控到进程被关了就启动下面的
F:\AOSENCS1.6\HLServer\hlds.exe -game cstrike -insecure -port 27015 +maxplayers 32 +map de_dust2 +servercfgfile server.cfg -nojoy  -heapsize 500000 -console在SERVICE 
winexec('F:\AOSENCS1.6\HLServer\hlds.exe -game cstrike -insecure -port 27015 +maxplayers 32 +map de_dust2 +servercfgfile server.cfg -nojoy  -heapsize 500000 -console',1);
为什么会不行呢?
如果在服务里监控进程是否存在.不在就启动怎么实现??