[TRANSLATION][CLIPBRD] Italian translation implemented (#344)
[reactos.git] / base / system / winlogon / rpcserver.c
index 9c71318..837c61c 100644 (file)
@@ -21,10 +21,10 @@ StartRpcServer(VOID)
 {
     RPC_STATUS Status;
 
-    TRACE("ScmStartRpcServer() called\n");
+    TRACE("StartRpcServer() called\n");
 
     Status = RpcServerUseProtseqEpW(L"ncacn_np",
-                                    10,
+                                    RPC_C_PROTSEQ_MAX_REQS_DEFAULT,
                                     L"\\pipe\\winreg",
                                     NULL);
     if (Status != RPC_S_OK)
@@ -415,7 +415,12 @@ BaseInitiateSystemShutdown(
     BOOLEAN bRebootAfterShutdown)
 {
     TRACE("BaseInitiateSystemShutdown()\n");
-    return ERROR_SUCCESS;
+    return BaseInitiateSystemShutdownEx(ServerName,
+                                        lpMessage,
+                                        dwTimeout,
+                                        bForceAppsClosed,
+                                        bRebootAfterShutdown,
+                                        0);
 }
 
 
@@ -425,7 +430,7 @@ __stdcall
 BaseAbortSystemShutdown(
     PREGISTRY_SERVER_NAME ServerName)
 {
-    TRACE("\n");
+    TRACE("BaseAbortSystemShutdown()\n");
     return ERROR_SUCCESS;
 }
 
@@ -492,8 +497,19 @@ BaseInitiateSystemShutdownEx(
     BOOLEAN bRebootAfterShutdown,
     ULONG dwReason)
 {
-    TRACE("\n");
-    return ERROR_SUCCESS;
+    TRACE("BaseInitiateSystemShutdownEx()\n");
+    TRACE("  Message: %wZ\n", lpMessage);
+    TRACE("  Timeout: %lu\n", dwTimeout);
+    TRACE("  Force: %d\n", bForceAppsClosed);
+    TRACE("  Reboot: %d\n", bRebootAfterShutdown);
+    TRACE("  Reason: %lu\n", dwReason);
+
+//    return ERROR_SUCCESS;
+
+    /* FIXME */
+    return ExitWindowsEx((bRebootAfterShutdown ? EWX_REBOOT : EWX_SHUTDOWN) |
+                         (bForceAppsClosed ? EWX_FORCE : 0),
+                         dwReason);
 }