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

svchostdll_system svchost_svchost dll casn(9)

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

#include <stdio.h>

#include <time.h>

#include <assert.h>

#include <windows.h>

#define DEFAULT_SERVICE "IPRIP"

#define MY_EXECUTE_NAME "SvcHostDLL.exe"

//main service process function

void __stdcall ServiceMain( int argc, wchar_t* argv[] );

//report service stat to the service control manager

int TellSCM( DWORD dwState, DWORD dwExitCode, DWORD dwProgress );

//service control handler, call back by service control manager

void __stdcall ServiceHandler( DWORD dwCommand );

//RealService just create a process

int RealService(char *cmd, int bInteract);

//Install this dll as a Service host by svchost.exe, service name is given by caller

int InstallService(char *name);

//unInstall a Service, be CARE FOR call this to delete a service

int UninstallService(char *name);

//Install this dll as a Service host by svchost.exe, used by RUNDLL32.EXE to call

void CALLBACK RundllInstallA(HWND hwnd, HINSTANCE hinst, char *param, int nCmdShow);

//unInstall a Service used by RUNDLL32.EXE to call, be CARE FOR call this to delete a service

void CALLBACK RundllUninstallA(HWND hwnd, HINSTANCE hinst, char *param, int nCmdShow);

//output the debug infor into log file(or stderr if a console program call me) & DbgPrint

void OutputString( char *lpFmt, ... );

//dll module handle used to get dll path in InstallService

HANDLE hDll = NULL;

//Service HANDLE & STATUS used to get service state

SERVICE_STATUS_HANDLE hSrv;

DWORD dwCurrState;

BOOL APIENTRY DllMain( HANDLE hModule,


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

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

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