German language file (minor update)
[reactos.git] / reactos / subsys / csrss / print.c
1 /* $Id$
2 *
3 * smss.c - Session Manager
4 *
5 * ReactOS Operating System
6 *
7 * --------------------------------------------------------------------
8 *
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.
13 *
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.
18 *
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,
22 * MA 02139, USA.
23 *
24 * --------------------------------------------------------------------
25 *
26 * 19990529 (Emanuele Aliberti)
27 * Compiled successfully with egcs 1.1.2
28 */
29
30 #include <csrss/csrss.h>
31 #include <ddk/ntddk.h>
32 #include <ntos.h>
33
34 VOID STDCALL DisplayString(LPCWSTR lpwString)
35 {
36 UNICODE_STRING us;
37
38 RtlInitUnicodeString (&us, lpwString);
39 ZwDisplayString (&us);
40 }
41
42 VOID STDCALL PrintString (char* fmt, ...)
43 {
44 char buffer[512];
45 va_list ap;
46 UNICODE_STRING UnicodeString;
47 ANSI_STRING AnsiString;
48
49 va_start(ap, fmt);
50 vsprintf(buffer, fmt, ap);
51 va_end(ap);
52
53 RtlInitAnsiString (&AnsiString, buffer);
54 RtlAnsiStringToUnicodeString (&UnicodeString,
55 &AnsiString,
56 TRUE);
57 NtDisplayString(&UnicodeString);
58 RtlFreeUnicodeString (&UnicodeString);
59 }
60
61 /* EOF */