[SERVICES]
[reactos.git] / reactos / base / system / services / database.c
index bfd12a9..476c627 100644 (file)
@@ -1339,9 +1339,11 @@ ScmWaitForServiceConnect(PSERVICE Service)
 #ifdef USE_ASYNCHRONOUS_IO
     OVERLAPPED Overlapped = {0};
 #endif
+#if 0
     LPCWSTR lpErrorStrings[3];
     WCHAR szBuffer1[20];
     WCHAR szBuffer2[20];
+#endif
 
     DPRINT("ScmWaitForServiceConnect()\n");
 
@@ -1373,6 +1375,7 @@ ScmWaitForServiceConnect(PSERVICE Service)
                     DPRINT1("CancelIo() failed (Error: %lu)\n", GetLastError());
                 }
 
+#if 0
                 _ultow(PipeTimeout, szBuffer1, 10);
                 lpErrorStrings[0] = Service->lpDisplayName;
                 lpErrorStrings[1] = szBuffer1;
@@ -1381,6 +1384,8 @@ ScmWaitForServiceConnect(PSERVICE Service)
                             EVENTLOG_ERROR_TYPE,
                             2,
                             lpErrorStrings);
+#endif
+                DPRINT1("Log EVENT_CONNECTION_TIMEOUT by %S\n", Service->lpDisplayName);
 
                 return ERROR_SERVICE_REQUEST_TIMEOUT;
             }
@@ -1437,6 +1442,7 @@ ScmWaitForServiceConnect(PSERVICE Service)
                     DPRINT1("CancelIo() failed (Error: %lu)\n", GetLastError());
                 }
 
+#if 0
                 _ultow(PipeTimeout, szBuffer1, 10);
                 lpErrorStrings[0] = szBuffer1;
 
@@ -1444,6 +1450,8 @@ ScmWaitForServiceConnect(PSERVICE Service)
                             EVENTLOG_ERROR_TYPE,
                             1,
                             lpErrorStrings);
+#endif
+                DPRINT1("Log EVENT_READFILE_TIMEOUT by %S\n", Service->lpDisplayName);
 
                 return ERROR_SERVICE_REQUEST_TIMEOUT;
             }
@@ -1479,6 +1487,7 @@ ScmWaitForServiceConnect(PSERVICE Service)
 
     if (dwProcessId != Service->lpImage->dwProcessId)
     {
+#if 0
         _ultow(Service->lpImage->dwProcessId, szBuffer1, 10);
         _ultow(dwProcessId, szBuffer2, 10);
 
@@ -1490,6 +1499,9 @@ ScmWaitForServiceConnect(PSERVICE Service)
                     EVENTLOG_WARNING_TYPE,
                     3,
                     lpErrorStrings);
+#endif
+
+        DPRINT1("Log EVENT_SERVICE_DIFFERENT_PID_CONNECTED by %S\n", Service->lpDisplayName);
     }
 
     DPRINT("ScmWaitForServiceConnect() done\n");