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

svchostdll_system svchost_svchost dll casn(14)

电脑杂谈  发布时间:2017-05-07 01:01:07  来源:网络整理

if(ERROR_SUCCESS != rc)

{

OutputString("RegOpenKeyEx(%s) KEY_SET_VALUE error %d.", svcname, rc);

throw "";

}

rc = RegCreateKey(hkRoot, "Parameters", &hkParam);

SetLastError(rc);

if(ERROR_SUCCESS != rc)

throw "RegCreateKey(Parameters)";

if(!GetModuleFileName(HMODULE(hDll), buff, sizeof buff))

throw "GetModuleFileName() get dll path";

rc = RegSetValueEx(hkParam, "ServiceDll", 0, REG_EXPAND_SZ, (unsigned char*)buff, strlen(buff)1);

SetLastError(rc);

if(ERROR_SUCCESS != rc)

throw "RegSetValueEx(ServiceDll)";

OutputString("Config service %s ok.", svcname);

}catch(char *str)

{

if(str && str[0])

{

rc = GetLastError();

OutputString("%s error %d", str, rc);

}

}

RegCloseKey(hkRoot);

RegCloseKey(hkParam);

CloseServiceHandle(schService);

CloseServiceHandle(hscm);

return rc;

}

/*

used to install by rundll32.exe

Platform SDK: Tools - Rundll32

The Run DLL utility (Rundll32.exe) included in Windows enables you to call functions exported from a 32-bit DLL. These functions must have the following syntax:

*/

void CALLBACK RundllInstallA(

HWND hwnd, // handle to owner window

HINSTANCE hinst, // instance handle for the DLL

char *param, // string the DLL will parse

int nCmdShow // show state

)

{

InstallService(param);

}

int UninstallService(char *name)

{

int rc = 0;

SC_HANDLE schService;

SC_HANDLE hscm;

__try{

hscm = OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS);

if (hscm == NULL)


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

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

    • 赵建波
      赵建波

      也是够了

    • 佐藤朱
      佐藤朱

      所以麻麻一把年纪还纯真的喜欢你@TFBOYS-易烊千玺呀

    热点图片
    拼命载入中...