2008-09-23 10:47:10 +00:00
|
|
|
/*
|
|
|
|
* 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
|
2005-05-22 16:10:10 +00:00
|
|
|
*/
|
2008-09-23 10:47:10 +00:00
|
|
|
|
|
|
|
/* INCLUDES ******************************************************************/
|
2005-06-20 21:16:59 +00:00
|
|
|
#include "smss.h"
|
|
|
|
|
2006-06-07 13:08:28 +00:00
|
|
|
#define NDEBUG
|
|
|
|
#include <debug.h>
|
2005-05-22 16:10:10 +00:00
|
|
|
|
2008-11-30 11:16:55 +00:00
|
|
|
VOID NTAPI DisplayString(LPCWSTR lpwString)
|
2005-05-22 16:10:10 +00:00
|
|
|
{
|
|
|
|
UNICODE_STRING us;
|
2007-10-19 23:21:45 +00:00
|
|
|
|
2005-05-22 16:10:10 +00:00
|
|
|
RtlInitUnicodeString (&us, lpwString);
|
2005-12-31 19:50:29 +00:00
|
|
|
NtDisplayString (&us);
|
2005-05-22 16:10:10 +00:00
|
|
|
}
|
|
|
|
|
2008-11-30 11:16:55 +00:00
|
|
|
VOID NTAPI PrintString (char* fmt, ...)
|
2005-05-22 16:10:10 +00:00
|
|
|
{
|
|
|
|
char buffer[512];
|
|
|
|
va_list ap;
|
|
|
|
UNICODE_STRING UnicodeString;
|
|
|
|
ANSI_STRING AnsiString;
|
2007-10-19 23:21:45 +00:00
|
|
|
|
2005-05-22 16:10:10 +00:00
|
|
|
va_start(ap, fmt);
|
|
|
|
vsprintf(buffer, fmt, ap);
|
|
|
|
va_end(ap);
|
2005-12-31 19:50:29 +00:00
|
|
|
DPRINT1("%s", buffer);
|
2007-10-19 23:21:45 +00:00
|
|
|
|
2005-05-22 16:10:10 +00:00
|
|
|
RtlInitAnsiString (&AnsiString, buffer);
|
|
|
|
RtlAnsiStringToUnicodeString (&UnicodeString,
|
|
|
|
&AnsiString,
|
|
|
|
TRUE);
|
|
|
|
NtDisplayString(&UnicodeString);
|
|
|
|
RtlFreeUnicodeString (&UnicodeString);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* EOF */
|