Implemented StartServiceCtrlDispatcherA according to DispatcherW.
This commit is contained in:
parent
5076e1dbff
commit
096aba2ed1
|
@ -35,11 +35,15 @@ EnumServicesStatusA( SC_HANDLE hSCManager, DWORD dwServiceType,
|
||||||
*/
|
*/
|
||||||
BOOL WINAPI
|
BOOL WINAPI
|
||||||
StartServiceCtrlDispatcherA( LPSERVICE_TABLE_ENTRYA servent )
|
StartServiceCtrlDispatcherA( LPSERVICE_TABLE_ENTRYA servent )
|
||||||
{ LPSERVICE_TABLE_ENTRYA ptr = servent;
|
{
|
||||||
|
LPSERVICE_TABLE_ENTRYA ptr = servent;
|
||||||
|
LPSERVICE_MAIN_FUNCTIONA fpMain;
|
||||||
|
|
||||||
while (ptr->lpServiceName)
|
while (ptr->lpServiceName) {
|
||||||
{ FIXME("%s at %p\n", ptr->lpServiceName, ptr);
|
FIXME("%s at %p\n", ptr->lpServiceName, ptr);
|
||||||
ptr++;
|
fpMain = ptr->lpServiceProc;
|
||||||
|
fpMain(0,NULL); /* try to start the service */
|
||||||
|
ptr++;
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@ -52,14 +56,16 @@ StartServiceCtrlDispatcherA( LPSERVICE_TABLE_ENTRYA servent )
|
||||||
*/
|
*/
|
||||||
BOOL WINAPI
|
BOOL WINAPI
|
||||||
StartServiceCtrlDispatcherW( LPSERVICE_TABLE_ENTRYW servent )
|
StartServiceCtrlDispatcherW( LPSERVICE_TABLE_ENTRYW servent )
|
||||||
{ LPSERVICE_TABLE_ENTRYW ptr = servent;
|
{
|
||||||
|
LPSERVICE_TABLE_ENTRYW ptr = servent;
|
||||||
LPSERVICE_MAIN_FUNCTIONW fpMain;
|
LPSERVICE_MAIN_FUNCTIONW fpMain;
|
||||||
|
|
||||||
while (ptr->lpServiceName)
|
while (ptr->lpServiceName) {
|
||||||
{ FIXME("%s at %p): STUB.\n", debugstr_w(ptr->lpServiceName),ptr);
|
FIXME("%s at %p): STUB.\n",
|
||||||
fpMain = ptr->lpServiceProc;
|
debugstr_w(ptr->lpServiceName),ptr);
|
||||||
fpMain(0,NULL); /* try to start the service */
|
fpMain = ptr->lpServiceProc;
|
||||||
ptr++;
|
fpMain(0,NULL); /* try to start the service */
|
||||||
|
ptr++;
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue