ntservapp.cpp
来自「一个SMTP邮件发送的源代码」· C++ 代码 · 共 26 行
CPP
26 行
// NTService.cpp
//
// This is the main program file containing the entry point.
#include "NTServApp.h"
#include "myservice.h"
int main(int argc, char* argv[])
{
// Create the service object
CMyService MyService;
// Parse for standard arguments (install, uninstall, version etc.)
if (!MyService.ParseStandardArgs(argc, argv)) {
// Didn't find any standard args so start the service
// Uncomment the DebugBreak line below to enter the debugger
// when the service is started.
//DebugBreak();
MyService.StartService();
}
// When we get here, the service has been stopped
return MyService.m_Status.dwWin32ExitCode;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?