1 /* $Id: smss.c 12852 2005-01-06 13:58:04Z mf $
3 * debug.c - Session Manager debug messages switch and router
5 * ReactOS Operating System
7 * --------------------------------------------------------------------
9 * This software is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
14 * This software is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this software; see the file COPYING.LIB. If not, write
21 * to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
24 * --------------------------------------------------------------------
26 #define NTOS_MODE_USER
28 #include <rosrtl/string.h>
32 /* GLOBALS ***********************************************************/
34 HANDLE DbgSsApiPort
= INVALID_HANDLE_VALUE
;
35 HANDLE DbgUiApiPort
= INVALID_HANDLE_VALUE
;
37 /* FUNCTIONS *********************************************************/
40 SmInitializeDbgSs (VOID
)
43 UNICODE_STRING UnicodeString
;
44 OBJECT_ATTRIBUTES ObjectAttributes
;
47 /* Create the \DbgSsApiPort object (LPC) */
48 RtlRosInitUnicodeStringFromLiteral(&UnicodeString
,
50 InitializeObjectAttributes(&ObjectAttributes
,
56 Status
= NtCreatePort(&DbgSsApiPort
,
62 if (!NT_SUCCESS(Status
))
66 DbgPrint("SMSS: %s: \\DbgSsApiPort created\n",__FUNCTION__
);
68 /* Create the \DbgUiApiPort object (LPC) */
69 RtlRosInitUnicodeStringFromLiteral(&UnicodeString
,
71 InitializeObjectAttributes(&ObjectAttributes
,
77 Status
= NtCreatePort(&DbgUiApiPort
,
82 if (!NT_SUCCESS(Status
))
86 DbgPrint("SMSS: %s: \\DbgUiApiPort created\n",__FUNCTION__
);
88 return STATUS_SUCCESS
;