SERVICE_TABLE_ENTRY
The SERVICE_TABLE_ENTRY structure is used by the StartServiceCtrlDispatcher function to specify the ServiceMain function for a service that can run in the calling process.
typedef struct _SERVICE_TABLE_ENTRY {
LPTSTR lpServiceName;
LPSERVICE_MAIN_FUNCTION lpServiceProc;
} SERVICE_TABLE_ENTRY,
*LPSERVICE_TABLE_ENTRY;
Members
-
lpServiceName
-
Pointer to a null-terminated string that specifies the name of a service to be run in this service process.
If the service is installed with the SERVICE_WIN32_OWN_PROCESS service type, this member is ignored, but cannot be NULL. This member can be an empty string ("").
If the service is installed with the SERVICE_WIN32_SHARE_PROCESS service type, this member specifies the name of the service that uses the ServiceMain function pointed to by the lpServiceProc member.
lpServiceProc
- Pointer to a ServiceMain function.
Requirements
| Client | Requires Windows XP, Windows 2000 Professional, or Windows NT Workstation. |
|---|---|
| Server | Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server. |
| Header | Declared in Winsvc.h; include Windows.h. |
| Unicode | Implemented as SERVICE_TABLE_ENTRYW (Unicode) and SERVICE_TABLE_ENTRYA (ANSI). |
SERVICE_TABLE_ENTRY结构介绍
博客介绍了SERVICE_TABLE_ENTRY结构,该结构可被StartServiceCtrlDispatcher函数用于指定能在调用进程中运行的服务的ServiceMain函数,还提及了成员和要求等内容。
1961

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



