VOID CALLBACK
ServiceMain(DWORD argc, LPTSTR *argv)
{
-
PrintString("ServiceMain() called\n");
HANDLE hEvent;
// NTSTATUS Status;
+#if 0
PrintString("EventLog started\n");
+#endif
StartServiceCtrlDispatcher(ServiceTable);
+#if 0
PrintString("StartServiceCtrlDispatcher() done\n");
+#endif
#if 0
if (StartPortThread() == FALSE)
+#if 0
PrintString("EventLog waiting\n");
+#endif
hEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
WaitForSingleObject(hEvent, INFINITE);
+#if 0
PrintString("EventLog done\n");
+#endif
ExitThread(0);
return(0);