使用到的Windows API,在<WinSvc.h>中查询它们的定义:
1. SERVICE_TABLE_ENTRY
2. StartServiceCtrlDispatcher
3. RegisterServiceCtrlHandler
4. SetServiceStatus
PS:也可以使用ATL Windows Service模板来进行创建于开发。
本文介绍了Windows服务编程的基础知识,包括了几个重要的Windows API函数:SERVICE_TABLE_ENTRY、StartServiceCtrlDispatcher、RegisterServiceCtrlHandler 和 SetServiceStatus 的使用。此外,还提到了可以利用 ATL Windows Service 模板来简化服务的创建和开发过程。
使用到的Windows API,在<WinSvc.h>中查询它们的定义:
1. SERVICE_TABLE_ENTRY
2. StartServiceCtrlDispatcher
3. RegisterServiceCtrlHandler
4. SetServiceStatus
PS:也可以使用ATL Windows Service模板来进行创建于开发。
4541
933

被折叠的 条评论
为什么被折叠?