mirror of
https://github.com/reactos/reactos.git
synced 2024-11-10 00:34:39 +00:00
6afbc8f483
svn path=/branches/reactos-yarotows/; revision=45219
43 lines
986 B
C
43 lines
986 B
C
/*
|
|
* PROJECT: ReactOS Session Manager
|
|
* LICENSE: GPL v2 or later - See COPYING in the top level directory
|
|
* FILE: base/system/smss/print.c
|
|
* PURPOSE: Print on the blue screen.
|
|
* PROGRAMMERS: ReactOS Development Team
|
|
*/
|
|
|
|
/* INCLUDES ******************************************************************/
|
|
#include "smss.h"
|
|
|
|
#define NDEBUG
|
|
#include <debug.h>
|
|
|
|
VOID NTAPI DisplayString(LPCWSTR lpwString)
|
|
{
|
|
UNICODE_STRING us;
|
|
|
|
RtlInitUnicodeString (&us, lpwString);
|
|
NtDisplayString (&us);
|
|
}
|
|
|
|
VOID NTAPI PrintString (char* fmt, ...)
|
|
{
|
|
char buffer[512];
|
|
va_list ap;
|
|
UNICODE_STRING UnicodeString;
|
|
ANSI_STRING AnsiString;
|
|
|
|
va_start(ap, fmt);
|
|
vsprintf(buffer, fmt, ap);
|
|
va_end(ap);
|
|
DPRINT1("%s", buffer);
|
|
|
|
RtlInitAnsiString (&AnsiString, buffer);
|
|
RtlAnsiStringToUnicodeString (&UnicodeString,
|
|
&AnsiString,
|
|
TRUE);
|
|
NtDisplayString(&UnicodeString);
|
|
RtlFreeUnicodeString (&UnicodeString);
|
|
}
|
|
|
|
/* EOF */
|