ReactOS 0.4.16-dev-295-g4aee028
|
Console I/O utility API – Output. More...
#include <stdlib.h>
#include <windef.h>
#include <winbase.h>
#include <winnls.h>
#include <winuser.h>
#include <wincon.h>
#include <strsafe.h>
#include <pseh/pseh2.h>
#include "conutils.h"
#include "stream.h"
#include "stream_private.h"
Go to the source code of this file.
Macros | |
#define | UNICODE |
#define | _UNICODE |
#define | CON_RC_STRING_MAX_SIZE 4096 |
Functions | |||||||||||||||||||
ConStreamWrite | |||||||||||||||||||
Writes a counted string to a stream.
| |||||||||||||||||||
INT | ConStreamWrite (IN PCON_STREAM Stream, IN PCTCH szStr, IN DWORD len) | ||||||||||||||||||
ConPuts | |||||||||||||||||||
Writes a NULL-terminated string to a stream.
| |||||||||||||||||||
INT | ConPuts (IN PCON_STREAM Stream, IN PCWSTR szStr) | ||||||||||||||||||
ConPrintfV | |||||||||||||||||||
Formats and writes a NULL-terminated string to a stream.
| |||||||||||||||||||
INT | ConPrintfV (IN PCON_STREAM Stream, IN PCWSTR szStr, IN va_list args) | ||||||||||||||||||
ConPrintf | |||||||||||||||||||
Formats and writes a NULL-terminated string to a stream.
| |||||||||||||||||||
INT __cdecl | ConPrintf (IN PCON_STREAM Stream, IN PCWSTR szStr,...) | ||||||||||||||||||
ConResPutsEx | |||||||||||||||||||
Writes a string resource to a stream.
| |||||||||||||||||||
INT | ConResPutsEx (IN PCON_STREAM Stream, IN HINSTANCE hInstance OPTIONAL, IN UINT uID, IN LANGID LanguageId) | ||||||||||||||||||
ConResPuts | |||||||||||||||||||
Writes a string resource contained in the current application to a stream.
| |||||||||||||||||||
INT | ConResPuts (IN PCON_STREAM Stream, IN UINT uID) | ||||||||||||||||||
ConResPrintfExV | |||||||||||||||||||
Formats and writes a string resource to a stream.
| |||||||||||||||||||
INT | ConResPrintfExV (IN PCON_STREAM Stream, IN HINSTANCE hInstance OPTIONAL, IN UINT uID, IN LANGID LanguageId, IN va_list args) | ||||||||||||||||||
ConResPrintfV | |||||||||||||||||||
Formats and writes a string resource contained in the current application to a stream.
| |||||||||||||||||||
INT | ConResPrintfV (IN PCON_STREAM Stream, IN UINT uID, IN va_list args) | ||||||||||||||||||
ConResPrintfEx | |||||||||||||||||||
Formats and writes a string resource to a stream.
| |||||||||||||||||||
INT __cdecl | ConResPrintfEx (IN PCON_STREAM Stream, IN HINSTANCE hInstance OPTIONAL, IN UINT uID, IN LANGID LanguageId,...) | ||||||||||||||||||
ConResPrintf | |||||||||||||||||||
Formats and writes a string resource contained in the current application to a stream.
| |||||||||||||||||||
INT __cdecl | ConResPrintf (IN PCON_STREAM Stream, IN UINT uID,...) | ||||||||||||||||||
ConMsgPuts | |||||||||||||||||||
Writes a message string to a stream without formatting. The function requires a message definition as input. The message definition can come from a buffer passed to the function. It can come from a message table resource in an already-loaded module, or the caller can ask the function to search the system's message table resource(s) for the message definition. Please refer to the Win32 FormatMessage() function for more details.
| |||||||||||||||||||
INT | ConMsgPuts (IN PCON_STREAM Stream, IN DWORD dwFlags, IN LPCVOID lpSource OPTIONAL, IN DWORD dwMessageId, IN DWORD dwLanguageId) | ||||||||||||||||||
ConMsgPrintf2V | |||||||||||||||||||
Formats and writes a message string to a stream.
| |||||||||||||||||||
INT | ConMsgPrintf2V (IN PCON_STREAM Stream, IN DWORD dwFlags, IN LPCVOID lpSource OPTIONAL, IN DWORD dwMessageId, IN DWORD dwLanguageId, IN va_list args) | ||||||||||||||||||
ConMsgPrintfV | |||||||||||||||||||
Formats and writes a message string to a stream. The function requires a message definition as input. The message definition can come from a buffer passed to the function. It can come from a message table resource in an already-loaded module, or the caller can ask the function to search the system's message table resource(s) for the message definition. Please refer to the Win32 FormatMessage() function for more details.
| |||||||||||||||||||
INT | ConMsgPrintfV (IN PCON_STREAM Stream, IN DWORD dwFlags, IN LPCVOID lpSource OPTIONAL, IN DWORD dwMessageId, IN DWORD dwLanguageId, IN va_list *Arguments OPTIONAL) | ||||||||||||||||||
ConMsgPrintf | |||||||||||||||||||
Formats and writes a message string to a stream. The function requires a message definition as input. The message definition can come from a buffer passed to the function. It can come from a message table resource in an already-loaded module, or the caller can ask the function to search the system's message table resource(s) for the message definition. Please refer to the Win32 FormatMessage() function for more details.
| |||||||||||||||||||
INT __cdecl | ConMsgPrintf (IN PCON_STREAM Stream, IN DWORD dwFlags, IN LPCVOID lpSource OPTIONAL, IN DWORD dwMessageId, IN DWORD dwLanguageId,...) | ||||||||||||||||||
ConResMsgPrintfExV | |||||||||||||||||||
Formats and writes a message string to a stream. The function requires a message definition as input. Contrary to the ConMsg* or the Win32 FormatMessage() functions, the message definition comes from a resource string table, much like the strings for ConResPrintf(), but is formatted according to the rules of ConMsgPrintf().
| |||||||||||||||||||
INT | ConResMsgPrintfExV (IN PCON_STREAM Stream, IN HINSTANCE hInstance OPTIONAL, IN DWORD dwFlags, IN UINT uID, IN LANGID LanguageId, IN va_list *Arguments OPTIONAL) | ||||||||||||||||||
ConResMsgPrintfV | |||||||||||||||||||
Formats and writes a message string to a stream. The function requires a message definition as input. Contrary to the ConMsg* or the Win32 FormatMessage() functions, the message definition comes from a resource string table, much like the strings for ConResPrintf(), but is formatted according to the rules of ConMsgPrintf().
| |||||||||||||||||||
INT | ConResMsgPrintfV (IN PCON_STREAM Stream, IN DWORD dwFlags, IN UINT uID, IN va_list *Arguments OPTIONAL) | ||||||||||||||||||
ConResMsgPrintfEx | |||||||||||||||||||
Formats and writes a message string to a stream. The function requires a message definition as input. Contrary to the ConMsg* or the Win32 FormatMessage() functions, the message definition comes from a resource string table, much like the strings for ConResPrintf(), but is formatted according to the rules of ConMsgPrintf().
| |||||||||||||||||||
INT __cdecl | ConResMsgPrintfEx (IN PCON_STREAM Stream, IN HINSTANCE hInstance OPTIONAL, IN DWORD dwFlags, IN UINT uID, IN LANGID LanguageId,...) | ||||||||||||||||||
ConResMsgPrintf | |||||||||||||||||||
Formats and writes a message string to a stream. The function requires a message definition as input. Contrary to the ConMsg* or the Win32 FormatMessage() functions, the message definition comes from a resource string table, much like the strings for ConResPrintf(), but is formatted according to the rules of ConMsgPrintf().
| |||||||||||||||||||
INT __cdecl | ConResMsgPrintf (IN PCON_STREAM Stream, IN DWORD dwFlags, IN UINT uID,...) | ||||||||||||||||||
VOID | ConClearLine (IN PCON_STREAM Stream) | ||||||||||||||||||
ConWrite | ||||||||||
Writes a counted string to a stream.
| ||||||||||
#define | CON_STREAM_WRITE_CALL(Stream, Str, Len) (Stream)->WriteFunc((Stream), (Str), (Len)) | |||||||||
#define | CON_STREAM_WRITE2(Stream, Str, Len, RetLen) | |||||||||
#define | CON_STREAM_WRITE(Stream, Str, Len) | |||||||||
INT __stdcall | ConWrite (IN PCON_STREAM Stream, IN PCTCH szStr, IN DWORD len) | |||||||||
Console I/O utility API – Output.
Definition in file outstream.c.
#define _UNICODE |
Definition at line 28 of file outstream.c.
#define CON_RC_STRING_MAX_SIZE 4096 |
Definition at line 56 of file outstream.c.
Definition at line 360 of file outstream.c.
Definition at line 353 of file outstream.c.
Definition at line 347 of file outstream.c.
NOTE: Experimental! Don't use USE_CRT yet because output to console is a bit broken
Definition at line 27 of file outstream.c.
VOID ConClearLine | ( | IN PCON_STREAM | Stream | ) |
Definition at line 1483 of file outstream.c.
Referenced by PagePrompt().
INT __cdecl ConMsgPrintf | ( | IN PCON_STREAM | Stream, |
IN DWORD | dwFlags, | ||
IN LPCVOID lpSource | OPTIONAL, | ||
IN DWORD | dwMessageId, | ||
IN DWORD | dwLanguageId, | ||
... | |||
) |
Definition at line 1130 of file outstream.c.
INT ConMsgPrintf2V | ( | IN PCON_STREAM | Stream, |
IN DWORD | dwFlags, | ||
IN LPCVOID lpSource | OPTIONAL, | ||
IN DWORD | dwMessageId, | ||
IN DWORD | dwLanguageId, | ||
IN va_list | args | ||
) |
Definition at line 909 of file outstream.c.
INT ConMsgPrintfV | ( | IN PCON_STREAM | Stream, |
IN DWORD | dwFlags, | ||
IN LPCVOID lpSource | OPTIONAL, | ||
IN DWORD | dwMessageId, | ||
IN DWORD | dwLanguageId, | ||
IN va_list *Arguments | OPTIONAL | ||
) |
Definition at line 1030 of file outstream.c.
Referenced by ConFormatMessage(), ConMsgPrintf(), and ErrorMessage().
INT ConMsgPuts | ( | IN PCON_STREAM | Stream, |
IN DWORD | dwFlags, | ||
IN LPCVOID lpSource | OPTIONAL, | ||
IN DWORD | dwMessageId, | ||
IN DWORD | dwLanguageId | ||
) |
Definition at line 837 of file outstream.c.
Referenced by DisplayError(), DoFormatMessage(), HelpCommand(), PrintError(), and PrintWin32Error().
Definition at line 520 of file outstream.c.
Definition at line 466 of file outstream.c.
Referenced by ConMsgPrintf2V(), ConPrintf(), ConResPrintfExV(), and DirPrintf().
INT ConPuts | ( | IN PCON_STREAM | Stream, |
IN PCWSTR | szStr | ||
) |
Definition at line 427 of file outstream.c.
Referenced by ConClearLine().
Definition at line 1461 of file outstream.c.
Referenced by EnumProcessAndPrint(), HandleFindCommand(), HandleInfoCommand(), HandleInstallCommand(), HandleSetupCommand(), PagePrompt(), and ProcessArguments().
INT __cdecl ConResMsgPrintfEx | ( | IN PCON_STREAM | Stream, |
IN HINSTANCE hInstance | OPTIONAL, | ||
IN DWORD | dwFlags, | ||
IN UINT | uID, | ||
IN LANGID | LanguageId, | ||
... | |||
) |
Definition at line 1394 of file outstream.c.
INT ConResMsgPrintfExV | ( | IN PCON_STREAM | Stream, |
IN HINSTANCE hInstance | OPTIONAL, | ||
IN DWORD | dwFlags, | ||
IN UINT | uID, | ||
IN LANGID | LanguageId, | ||
IN va_list *Arguments | OPTIONAL | ||
) |
Definition at line 1218 of file outstream.c.
Referenced by ConResMsgPrintfEx(), and ConResMsgPrintfV().
INT ConResMsgPrintfV | ( | IN PCON_STREAM | Stream, |
IN DWORD | dwFlags, | ||
IN UINT | uID, | ||
IN va_list *Arguments | OPTIONAL | ||
) |
Definition at line 1329 of file outstream.c.
Referenced by ConResMsgPrintf().
Definition at line 781 of file outstream.c.
INT __cdecl ConResPrintfEx | ( | IN PCON_STREAM | Stream, |
IN HINSTANCE hInstance | OPTIONAL, | ||
IN UINT | uID, | ||
IN LANGID | LanguageId, | ||
... | |||
) |
Definition at line 740 of file outstream.c.
INT ConResPrintfExV | ( | IN PCON_STREAM | Stream, |
IN HINSTANCE hInstance | OPTIONAL, | ||
IN UINT | uID, | ||
IN LANGID | LanguageId, | ||
IN va_list | args | ||
) |
Definition at line 653 of file outstream.c.
Referenced by ConResPrintfEx(), and ConResPrintfV().
Definition at line 695 of file outstream.c.
Referenced by ConResPrintf(), PrintParserError(), and UnderlinedResPrintf().
INT ConResPuts | ( | IN PCON_STREAM | Stream, |
IN UINT | uID | ||
) |
Definition at line 610 of file outstream.c.
INT ConResPutsEx | ( | IN PCON_STREAM | Stream, |
IN HINSTANCE hInstance | OPTIONAL, | ||
IN UINT | uID, | ||
IN LANGID | LanguageId | ||
) |
Definition at line 569 of file outstream.c.
Referenced by ConResPuts().
Definition at line 398 of file outstream.c.
Referenced by MorePagerLine(), PagePrompt(), and UnderlinedResPrintf().
Definition at line 85 of file outstream.c.
Referenced by ConErrChar(), ConOutChar(), ConStreamInit(), and ConStreamInitEx().