b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

木马清除大师怎么样_木马清除大师靠谱吗_木马清除大师v8注册机(18)

电脑杂谈  发布时间:2017-03-03 18:04:33  来源:网络整理

return ;

}

printf("Creating Service .... ");

schService=CreateService(schSCManager,"ntkrnl","ntkrnl",SERVICE_ALL_ACCESS,

SERVICE_WIN32_OWN_PROCESS,SERVICE_AUTO_START,

SERVICE_ERROR_IGNORE,"ntkrnl.exe",NULL,NULL,NULL,NULL,NULL);

if(schService==NULL)

{

dwErrorCode=GetLastError();

if(dwErrorCode!=ERROR_SERVICE_EXISTS)

{

printf("Failure !\n");

CloseServiceHandle(schSCManager);

return ;

}

else

{

printf("already Exists !\n");

schService=OpenService(schSCManager,"ntkrnl",SERVICE_START);

if(schService==NULL)

{

printf("Opening Service .... Failure !\n");

CloseServiceHandle(schSCManager);

return ;

}

}

}

else

{

printf("Success !\n");

}

printf("Starting Service .... ");

if(StartService(schService,0,NULL)==0)

{

dwErrorCode=GetLastError();

if(dwErrorCode==ERROR_SERVICE_ALREADY_RUNNING)

{

printf("already Running !\n");

CloseServiceHandle(schSCManager);

CloseServiceHandle(schService);

return ;

}

}

else

{

printf("Pending ... ");

}

while(QueryServiceStatus(schService,&InstallServiceStatus)!=0)

{

if(InstallServiceStatus.dwCurrentState==SERVICE_START_PENDING)

{

Sleep(100);

}

else

{

break;

}

}

if(InstallServiceStatus.dwCurrentState!=SERVICE_RUNNING)

{

printf("Failure !\n");

}

else

{

printf("Success !\n");

}

CloseServiceHandle(schSCManager);

CloseServiceHandle(schService);

return ;

}

void RemoveCmdService(char *lpHost)

{

SC_HANDLE schSCManager;

SC_HANDLE schService;


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/ruanjian/article-35588-18.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    每日福利
    热点图片
    拼命载入中...