开发者

service load fails through createprocess?

开发者 https://www.devze.com 2023-02-05 10:21 出处:网络
I have a wind开发者_C百科ows service. I can install it through cmd with \"c:\\serviceName -install\"

I have a wind开发者_C百科ows service.

I can install it through cmd with "c:\serviceName -install"

when I do createProcess and pass command line -install it does not appear in the Service Control manager. The createProcess returns non-zero value

"GetExitCodeProcess" gives 0.

Following is a line from the code:

CreateProcess(Process,pCmdLine,NULL,NULL,FALSE,DETACHED_PROCESS,NULL,NULL,&stStartupInfo,pProcessInfo);

Variable name are fairly self-explained.

Please comment.

0

精彩评论

暂无评论...
验证码 换一张
取 消