typedef struct _SERVICE_TABLE_ENTRY {
LPTSTR lpServiceName;
FARPROC lpServiceProc;
} SERVICE_TABLE_ENTRY, *LPSERVICE_TABLE_ENTRY;
lpServiceName
Name of service to run in the current process.
lpServiceProc
Pointer to the service main function. This function can have any time and has the following function prototype:
VOID ServiceMainFunction(dwNumServicesArgs, lpServiceArgs)
DWORD dwNumServicesArgs;
LPTSTR *lpServiceArgs;
Parameter | Meaning |
dwNumServiceArgs | Number of arguments in the lpServiceArgs string passed on to a service for by the caller of the StartService function. |
lpServiceArgs | An array of argument strings passed on to the service by the caller of the StartService function. |