{
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)
BOOLEAN bRebootAfterShutdown)
{
TRACE("BaseInitiateSystemShutdown()\n");
- return ERROR_SUCCESS;
+ return BaseInitiateSystemShutdownEx(ServerName,
+ lpMessage,
+ dwTimeout,
+ bForceAppsClosed,
+ bRebootAfterShutdown,
+ 0);
}
BaseAbortSystemShutdown(
PREGISTRY_SERVER_NAME ServerName)
{
- TRACE("\n");
+ TRACE("BaseAbortSystemShutdown()\n");
return ERROR_SUCCESS;
}
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);
}