ea@reactos.com
[reactos.git] / reactos / subsys / smss / smapicomp.c
index a655ef7..52ef961 100644 (file)
@@ -4,10 +4,26 @@
  *\r
  * Reactos Session Manager\r
  *\r
+ * --------------------------------------------------------------------\r
+ *\r
+ * This software is free software; you can redistribute it and/or\r
+ * modify it under the terms of the GNU General Public License as\r
+ * published by the Free Software Foundation; either version 2 of the\r
+ * License, or (at your option) any later version.\r
+ *\r
+ * This software is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
+ * General Public License for more details.\r
+ *\r
+ * You should have received a copy of the GNU General Public License\r
+ * along with this software; see the file COPYING.LIB. If not, write\r
+ * to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge,\r
+ * MA 02139, USA.  \r
+ *\r
+ * --------------------------------------------------------------------\r
  */\r
-\r
 #include "smss.h"\r
-#include <rosrtl/string.h>\r
 \r
 #define NDEBUG\r
 #include <debug.h>\r
  */\r
 SMAPI(SmCompSes)\r
 {\r
-       DPRINT("SM: %s called\n",__FUNCTION__);\r
-       Request->Status = STATUS_NOT_IMPLEMENTED;\r
-       return STATUS_SUCCESS;\r
+       NTSTATUS Status = STATUS_SUCCESS;\r
+\r
+       DPRINT("SM: %s called from [%lx|%lx]\n",\r
+               __FUNCTION__,\r
+               Request->ClientId.UniqueProcessId,\r
+               Request->ClientId.UniqueThreadId);\r
+       \r
+       Status = SmCompleteClientInitialization (Request->Header.ClientId.UniqueProcess);\r
+       if(!NT_SUCCESS(Status))\r
+       {\r
+               Request->Status = STATUS_UNSUCCESSFUL;\r
+       }\r
+       return Status;\r
 }\r
 \r
 \r