On FAT16 partitions smaller than 128MB, the cluster size is 2048, which is
[reactos.git] / reactos / subsys / smss / print.c
1 /* $Id$
2 *
3 * print.c - Print on the blue screen
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 #include "smss.h"
27
28
29 VOID STDCALL DisplayString(LPCWSTR lpwString)
30 {
31 UNICODE_STRING us;
32
33 RtlInitUnicodeString (&us, lpwString);
34 NtDisplayString (&us);
35 }
36
37 VOID STDCALL PrintString (char* fmt, ...)
38 {
39 char buffer[512];
40 va_list ap;
41 UNICODE_STRING UnicodeString;
42 ANSI_STRING AnsiString;
43
44 va_start(ap, fmt);
45 vsprintf(buffer, fmt, ap);
46 va_end(ap);
47 DPRINT1("%s", buffer);
48
49 RtlInitAnsiString (&AnsiString, buffer);
50 RtlAnsiStringToUnicodeString (&UnicodeString,
51 &AnsiString,
52 TRUE);
53 NtDisplayString(&UnicodeString);
54 RtlFreeUnicodeString (&UnicodeString);
55 }
56
57 /* EOF */