service.h

来自「harvest是一个下载html网页得机器人」· C头文件 代码 · 共 52 行

H
52
字号
/* * NT Service interface Utility. *  Based on code written by *     Chas Woodfield, Fretwell Downing Datasystems. * $Log: service.h,v $ * Revision 1.1  1997/11/07 13:31:52  adam * Added NT Service name part of statserv_options_block. Moved NT * service utility to server library. * * Revision 1.2  1997/09/04 13:50:30  adam * Bug fix in ztest. * */#ifndef SERVICE_INCLUDED#define SERVICE_INCLUDED#ifdef WIN32#include <windows.h>typedef struct _Service{    LPTSTR pAppName;    LPTSTR pServiceName;    LPTSTR pServiceDisplayName;    LPTSTR pDependancies;    TCHAR szErr[256];    SERVICE_STATUS_HANDLE hService;    SERVICE_STATUS ServiceStatus;    SERVICE_TABLE_ENTRY ServiceTable[2];    int argc;    char **argv;} AppService;/* Called by the app to initialize the service */BOOL SetupService(int argc, char *argv[], void *pHandle, LPTSTR pAppName, LPTSTR pServiceName, LPTSTR pServiceDisplayName, LPTSTR pDependancies);#endif /* WIN32 *//* Functions that must be in the main application *//* Initializes the app */int StartAppService(void *pHandle, int argc, char **argv);/* Now we wait for any connections */void RunAppService(void *pHandle);/* Time to tidyup and stop the service */void StopAppService(void *pHandle);#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?