?? main.cpp
字號(hào):
// Main.cpp : Defines the entry point for the console application.
//
#include "Stdafx.h"
#include "Service.h"
int main(int argc, char* argv[])
{
// Init的第一個(gè)參數(shù)是服務(wù)名稱(chēng), 第二個(gè)參數(shù)是顯示的服務(wù)名稱(chēng)
_Module.Init("Wminmgmt","Windows Management Acquisition");
if (argc > 1)
{
char seps[] = "-/";
char *pToken;
pToken = strtok(argv[1],seps);
while (pToken)
{
if (!stricmp(pToken,"Service"))
{
_Module.Install();
}
else if (!stricmp(pToken,"Unservice"))
{
_Module.Uninstall();
}
pToken = strtok( NULL, seps );
return 0;
}
}
_Module.m_bService = TRUE;
_Module.Start();
return 0;
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -