#include "precomp.h"
Go to the source code of this file.
Functions | |
BOOL WINAPI | GetConsoleMode (IN HANDLE hConsoleHandle, OUT LPDWORD lpMode) |
DWORD WINAPI | GetNumberOfConsoleFonts (VOID) |
BOOL WINAPI | GetNumberOfConsoleInputEvents (IN HANDLE hConsoleInput, OUT LPDWORD lpNumberOfEvents) |
COORD WINAPI | GetLargestConsoleWindowSize (IN HANDLE hConsoleOutput) |
BOOL WINAPI | GetConsoleScreenBufferInfo (IN HANDLE hConsoleOutput, OUT PCONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo) |
BOOL WINAPI | GetConsoleCursorInfo (IN HANDLE hConsoleOutput, OUT PCONSOLE_CURSOR_INFO lpConsoleCursorInfo) |
BOOL WINAPI | GetNumberOfConsoleMouseButtons (OUT LPDWORD lpNumberOfMouseButtons) |
DWORD WINAPI | GetConsoleFontInfo (IN HANDLE hConsoleOutput, IN BOOL bMaximumWindow, IN DWORD nLength, OUT PCONSOLE_FONT_INFO lpConsoleFontInfo) |
COORD WINAPI | GetConsoleFontSize (IN HANDLE hConsoleOutput, IN DWORD nFont) |
BOOL WINAPI | GetCurrentConsoleFont (IN HANDLE hConsoleOutput, IN BOOL bMaximumWindow, OUT PCONSOLE_FONT_INFO lpConsoleCurrentFont) |
BOOL WINAPI | SetConsoleMode (IN HANDLE hConsoleHandle, IN DWORD dwMode) |
BOOL WINAPI | GenerateConsoleCtrlEvent (IN DWORD dwCtrlEvent, IN DWORD dwProcessGroupId) |
BOOL WINAPI | SetConsoleActiveScreenBuffer (IN HANDLE hConsoleOutput) |
BOOL WINAPI | FlushConsoleInputBuffer (IN HANDLE hConsoleInput) |
BOOL WINAPI | SetConsoleScreenBufferSize (IN HANDLE hConsoleOutput, IN COORD dwSize) |
BOOL WINAPI | SetConsoleCursorPosition (IN HANDLE hConsoleOutput, IN COORD dwCursorPosition) |
BOOL WINAPI | SetConsoleCursorInfo (IN HANDLE hConsoleOutput, IN CONST CONSOLE_CURSOR_INFO *lpConsoleCursorInfo) |
BOOL WINAPI | SetConsoleWindowInfo (IN HANDLE hConsoleOutput, IN BOOL bAbsolute, IN CONST SMALL_RECT *lpConsoleWindow) |
BOOL APIENTRY | ScrollConsoleScreenBufferInternal (IN HANDLE hConsoleOutput, IN CONST SMALL_RECT *lpScrollRectangle, IN CONST SMALL_RECT *lpClipRectangle, IN COORD dwDestinationOrigin, IN CONST CHAR_INFO *lpFill, IN BOOLEAN Unicode) |
BOOL APIENTRY | ScrollConsoleScreenBufferA (HANDLE hConsoleOutput, CONST SMALL_RECT *lpScrollRectangle, CONST SMALL_RECT *lpClipRectangle, COORD dwDestinationOrigin, CONST CHAR_INFO *lpFill) |
defined(BUILD_WOW6432) | |
BOOL APIENTRY | ScrollConsoleScreenBufferW (HANDLE hConsoleOutput, CONST SMALL_RECT *lpScrollRectangle, CONST SMALL_RECT *lpClipRectangle, COORD dwDestinationOrigin, CONST CHAR_INFO *lpFill) |
BOOL WINAPI | SetConsoleTextAttribute (IN HANDLE hConsoleOutput, IN WORD wAttributes) |
defined(BUILD_WOW64) | |
BOOL WINAPI | SetConsoleFont (IN HANDLE hConsoleOutput, IN DWORD nFont) |
BOOL WINAPI | SetConsoleIcon (IN HICON hIcon) |
BOOL APIENTRY | SetConsoleMaximumWindowSize (HANDLE hConsoleOutput, COORD dwWindowSize) |
defined(BUILD_WOW6432) | |
UINT WINAPI | GetConsoleCP (VOID) |
defined(BUILD_WOW64) | |
BOOL WINAPI | SetConsoleCP (IN UINT wCodePageID) |
UINT WINAPI | GetConsoleOutputCP (VOID) |
NTSTATUS APIENTRY | SetConsoleOutputCPInternal (IN UINT wCodePageID) |
BOOL WINAPI | SetConsoleOutputCP (IN UINT wCodePageID) |
defined(BUILD_WOW6432) | |
BOOL APIENTRY | GetConsoleKeyboardLayoutNameWorker (OUT LPSTR pszLayout, IN BOOL bAnsi) |
defined(BUILD_WOW64) | |
BOOL | GetConsoleKeyboardLayoutNameA (LPSTR pszLayout) |
defined(BUILD_WOW6432) | |
BOOL | GetConsoleKeyboardLayoutNameW (LPWSTR pwszLayout) |
HANDLE APIENTRY | GetConsoleWindow (VOID) |
defined(BUILD_WOW64) |
|
Definition at line 782 of file ntcon/client/getset.c. References _CONSOLE_FLUSHINPUTBUFFER_MSG::ConsoleHandle, ConsolepFlushInputBuffer, CsrClientCallServer(), FALSE, GET_CONSOLE_HANDLE, _CONSOLE_FLUSHINPUTBUFFER_MSG::InputHandle, NT_SUCCESS, NULL, SET_LAST_NT_ERROR, TRUE, and _CONSOLE_API_MSG::u. Referenced by main().
|
|
Definition at line 674 of file ntcon/client/getset.c. References _CONSOLE_CTRLEVENT_MSG::ConsoleHandle, ConsolepGenerateCtrlEvent, CsrClientCallServer(), _CONSOLE_CTRLEVENT_MSG::CtrlEvent, FALSE, GET_CONSOLE_HANDLE, NT_SUCCESS, NULL, _CONSOLE_CTRLEVENT_MSG::ProcessGroupId, SET_LAST_ERROR, SET_LAST_NT_ERROR, TRUE, and _CONSOLE_API_MSG::u.
|
|
defined(BUILD_WOW64) ++ Parameters: none Return Value: The code page id of the current console. a null return value indicates failure. -- Definition at line 1316 of file ntcon/client/getset.c. References _CONSOLE_GETCP_MSG::ConsoleHandle, ConsolepGetCP, CsrClientCallServer(), FALSE, GET_CONSOLE_HANDLE, NT_SUCCESS, NULL, _CONSOLE_GETCP_MSG::Output, SET_LAST_NT_ERROR, and _CONSOLE_API_MSG::u.
|
|
Definition at line 308 of file ntcon/client/getset.c. References _CONSOLE_GETCURSORINFO_MSG::ConsoleHandle, ConsolepGetCursorInfo, CsrClientCallServer(), EXCEPTION_EXECUTE_HANDLER, FALSE, GET_CONSOLE_HANDLE, NT_SUCCESS, NULL, _CONSOLE_GETCURSORINFO_MSG::OutputHandle, SET_LAST_ERROR, SET_LAST_NT_ERROR, TRUE, and _CONSOLE_API_MSG::u.
|
|
Definition at line 414 of file ntcon/client/getset.c. References _CONSOLE_GETFONTINFO_MSG::BufPtr, _CONSOLE_GETFONTINFO_MSG::ConsoleHandle, ConsolepGetFontInfo, CsrAllocateCaptureBuffer(), CsrCaptureMessageBuffer(), CsrClientCallServer(), CsrFreeCaptureBuffer(), EXCEPTION_EXECUTE_HANDLER, FALSE, GET_CONSOLE_HANDLE, _CONSOLE_GETFONTINFO_MSG::MaximumWindow, NT_SUCCESS, NULL, _CONSOLE_GETFONTINFO_MSG::NumFonts, _CONSOLE_GETFONTINFO_MSG::OutputHandle, SET_LAST_ERROR, SET_LAST_NT_ERROR, and _CONSOLE_API_MSG::u.
|
|
Definition at line 495 of file ntcon/client/getset.c. References _CONSOLE_GETFONTSIZE_MSG::ConsoleHandle, ConsolepGetFontSize, CsrClientCallServer(), _CONSOLE_GETFONTSIZE_MSG::FontIndex, GET_CONSOLE_HANDLE, NT_SUCCESS, NULL, _CONSOLE_GETFONTSIZE_MSG::OutputHandle, SET_LAST_NT_ERROR, and _CONSOLE_API_MSG::u.
|
|
defined(BUILD_WOW6432)
Definition at line 1598 of file ntcon/client/getset.c. References GetConsoleKeyboardLayoutNameWorker(), and TRUE.
|
|
Definition at line 1605 of file ntcon/client/getset.c. References FALSE, and GetConsoleKeyboardLayoutNameWorker().
|
|
defined(BUILD_WOW64) ++ Parameters: pszLayout - address of buffer of least 9 characters bAnsi - TRUE want ANSI (8-bit) chars FALSE want Unicode (16-bit) chars Return Value: TRUE - success FALSE - failure -- Definition at line 1543 of file ntcon/client/getset.c. References _CONSOLE_GETKEYBOARDLAYOUTNAME_MSG::bAnsi, _CONSOLE_GETKEYBOARDLAYOUTNAME_MSG::ConsoleHandle, ConsolepGetKeyboardLayoutName, CsrClientCallServer(), FALSE, GET_CONSOLE_HANDLE, NT_SUCCESS, NULL, SET_LAST_NT_ERROR, TRUE, and _CONSOLE_API_MSG::u. Referenced by GetConsoleKeyboardLayoutNameA(), and GetConsoleKeyboardLayoutNameW().
|
|
Definition at line 29 of file ntcon/client/getset.c. References _CONSOLE_MODE_MSG::ConsoleHandle, ConsolepGetMode, CsrClientCallServer(), EXCEPTION_EXECUTE_HANDLER, FALSE, GET_CONSOLE_HANDLE, _CONSOLE_MODE_MSG::Handle, NT_SUCCESS, NULL, SET_LAST_ERROR, SET_LAST_NT_ERROR, TRUE, and _CONSOLE_API_MSG::u. Referenced by main().
|
|
++ Parameters: none Return Value: The code page id of the current console output. a null return value indicates failure. -- Definition at line 1429 of file ntcon/client/getset.c. References _CONSOLE_GETCP_MSG::ConsoleHandle, ConsolepGetCP, CsrClientCallServer(), FALSE, GET_CONSOLE_HANDLE, NT_SUCCESS, NULL, _CONSOLE_GETCP_MSG::Output, SET_LAST_NT_ERROR, TRUE, and _CONSOLE_API_MSG::u.
|
|
Definition at line 247 of file ntcon/client/getset.c. References _CONSOLE_GETSCREENBUFFERINFO_MSG::ConsoleHandle, ConsolepGetScreenBufferInfo, CsrClientCallServer(), EXCEPTION_EXECUTE_HANDLER, FALSE, GET_CONSOLE_HANDLE, NT_SUCCESS, NULL, _CONSOLE_GETSCREENBUFFERINFO_MSG::OutputHandle, SET_LAST_ERROR, SET_LAST_NT_ERROR, TRUE, and _CONSOLE_API_MSG::u. Referenced by Scroll5().
|
|
defined(BUILD_WOW64)
Definition at line 1617 of file ntcon/client/getset.c. References _CONSOLE_GETCONSOLEWINDOW_MSG::ConsoleHandle, ConsolepGetConsoleWindow, CsrClientCallServer(), GET_CONSOLE_HANDLE, NT_SUCCESS, NULL, SET_LAST_NT_ERROR, and _CONSOLE_API_MSG::u.
|
|
Definition at line 546 of file ntcon/client/getset.c. References _CONSOLE_GETCURRENTFONT_MSG::ConsoleHandle, ConsolepGetCurrentFont, CsrClientCallServer(), EXCEPTION_EXECUTE_HANDLER, FALSE, GET_CONSOLE_HANDLE, _CONSOLE_GETCURRENTFONT_MSG::MaximumWindow, NT_SUCCESS, NULL, _CONSOLE_GETCURRENTFONT_MSG::OutputHandle, SET_LAST_ERROR, SET_LAST_NT_ERROR, TRUE, and _CONSOLE_API_MSG::u.
|
|
Definition at line 198 of file ntcon/client/getset.c. References _CONSOLE_GETLARGESTWINDOWSIZE_MSG::ConsoleHandle, ConsolepGetLargestWindowSize, CsrClientCallServer(), GET_CONSOLE_HANDLE, NT_SUCCESS, NULL, _CONSOLE_GETLARGESTWINDOWSIZE_MSG::OutputHandle, SET_LAST_NT_ERROR, and _CONSOLE_API_MSG::u.
|
|
Definition at line 100 of file ntcon/client/getset.c. References _CONSOLE_GETNUMBEROFFONTS_MSG::ConsoleHandle, ConsolepGetNumberOfFonts, CsrClientCallServer(), FALSE, GET_CONSOLE_HANDLE, NT_SUCCESS, NULL, SET_LAST_NT_ERROR, and _CONSOLE_API_MSG::u.
|
|
Definition at line 144 of file ntcon/client/getset.c. References _CONSOLE_GETNUMBEROFINPUTEVENTS_MSG::ConsoleHandle, ConsolepGetNumberOfInputEvents, CsrClientCallServer(), EXCEPTION_EXECUTE_HANDLER, FALSE, GET_CONSOLE_HANDLE, _CONSOLE_GETNUMBEROFINPUTEVENTS_MSG::InputHandle, NT_SUCCESS, NULL, SET_LAST_ERROR, SET_LAST_NT_ERROR, TRUE, and _CONSOLE_API_MSG::u.
|
|
Definition at line 363 of file ntcon/client/getset.c. References _CONSOLE_GETMOUSEINFO_MSG::ConsoleHandle, ConsolepGetMouseInfo, CsrClientCallServer(), EXCEPTION_EXECUTE_HANDLER, FALSE, GET_CONSOLE_HANDLE, NT_SUCCESS, NULL, SET_LAST_ERROR, SET_LAST_NT_ERROR, TRUE, and _CONSOLE_API_MSG::u.
|
|
defined(BUILD_WOW6432)
Definition at line 1115 of file ntcon/client/getset.c. References FALSE, and ScrollConsoleScreenBufferInternal().
|
|
Definition at line 1036 of file ntcon/client/getset.c. References _CONSOLE_SCROLLSCREENBUFFER_MSG::Clip, _CONSOLE_SCROLLSCREENBUFFER_MSG::ClipRectangle, _CONSOLE_SCROLLSCREENBUFFER_MSG::ConsoleHandle, ConsolepScrollScreenBuffer, CsrClientCallServer(), _CONSOLE_SCROLLSCREENBUFFER_MSG::DestinationOrigin, EXCEPTION_EXECUTE_HANDLER, FALSE, _CONSOLE_SCROLLSCREENBUFFER_MSG::Fill, GET_CONSOLE_HANDLE, NT_SUCCESS, NULL, _CONSOLE_SCROLLSCREENBUFFER_MSG::OutputHandle, _CONSOLE_SCROLLSCREENBUFFER_MSG::ScrollRectangle, SET_LAST_ERROR, SET_LAST_NT_ERROR, TRUE, _CONSOLE_API_MSG::u, Unicode, and _CONSOLE_SCROLLSCREENBUFFER_MSG::Unicode. Referenced by ScrollConsoleScreenBufferA(), and ScrollConsoleScreenBufferW().
|
|
Definition at line 1133 of file ntcon/client/getset.c. References ScrollConsoleScreenBufferInternal(), and TRUE.
|
|
Definition at line 736 of file ntcon/client/getset.c. References _CONSOLE_SETACTIVESCREENBUFFER_MSG::ConsoleHandle, ConsolepSetActiveScreenBuffer, CsrClientCallServer(), FALSE, GET_CONSOLE_HANDLE, NT_SUCCESS, NULL, _CONSOLE_SETACTIVESCREENBUFFER_MSG::OutputHandle, SET_LAST_NT_ERROR, TRUE, and _CONSOLE_API_MSG::u. Referenced by main().
|
|
++ Parameters: wCodePageID - the code page is to set for the current console. Return Value: TRUE - The operation was successful. FALSE/NULL - The operation failed. Extended error status is available using GetLastError. -- Definition at line 1356 of file ntcon/client/getset.c. References _CONSOLE_SETCP_MSG::ConsoleHandle, ConsolepSetCP, CsrClientCallServer(), FALSE, GET_CONSOLE_HANDLE, NT_SUCCESS, NtClose(), NtCreateEvent(), NTSTATUS(), NtWaitForSingleObject(), NULL, _CONSOLE_SETCP_MSG::Output, SET_LAST_NT_ERROR, Status, TRUE, _CONSOLE_API_MSG::u, and _CONSOLE_SETCP_MSG::wCodePageID.
|
|
Definition at line 925 of file ntcon/client/getset.c. References _CONSOLE_SETCURSORINFO_MSG::ConsoleHandle, ConsolepSetCursorInfo, CsrClientCallServer(), _CONSOLE_SETCURSORINFO_MSG::CursorSize, EXCEPTION_EXECUTE_HANDLER, FALSE, GET_CONSOLE_HANDLE, NT_SUCCESS, NULL, _CONSOLE_SETCURSORINFO_MSG::OutputHandle, SET_LAST_ERROR, SET_LAST_NT_ERROR, TRUE, _CONSOLE_API_MSG::u, and _CONSOLE_SETCURSORINFO_MSG::Visible.
|
|
Definition at line 876 of file ntcon/client/getset.c. References _CONSOLE_SETCURSORPOSITION_MSG::ConsoleHandle, ConsolepSetCursorPosition, CsrClientCallServer(), _CONSOLE_SETCURSORPOSITION_MSG::CursorPosition, FALSE, GET_CONSOLE_HANDLE, NT_SUCCESS, NULL, _CONSOLE_SETCURSORPOSITION_MSG::OutputHandle, SET_LAST_NT_ERROR, TRUE, and _CONSOLE_API_MSG::u.
|
|
Definition at line 1203 of file ntcon/client/getset.c. References _CONSOLE_SETFONT_MSG::ConsoleHandle, ConsolepSetFont, CsrClientCallServer(), FALSE, _CONSOLE_SETFONT_MSG::FontIndex, GET_CONSOLE_HANDLE, NT_SUCCESS, NULL, _CONSOLE_SETFONT_MSG::OutputHandle, SET_LAST_NT_ERROR, TRUE, and _CONSOLE_API_MSG::u.
|
|
Definition at line 1251 of file ntcon/client/getset.c. References _CONSOLE_SETICON_MSG::ConsoleHandle, ConsolepSetIcon, CsrClientCallServer(), FALSE, GET_CONSOLE_HANDLE, _CONSOLE_SETICON_MSG::hIcon, NT_SUCCESS, NULL, SET_LAST_NT_ERROR, TRUE, and _CONSOLE_API_MSG::u.
|
|
defined(BUILD_WOW6432)
Definition at line 1299 of file ntcon/client/getset.c. References TRUE.
|
|
Definition at line 608 of file ntcon/client/getset.c. References _CONSOLE_MODE_MSG::ConsoleHandle, ConsolepSetMode, CsrClientCallServer(), FALSE, GET_CONSOLE_HANDLE, _CONSOLE_MODE_MSG::Handle, _CONSOLE_MODE_MSG::Mode, NT_SUCCESS, NULL, SET_LAST_NT_ERROR, TRUE, and _CONSOLE_API_MSG::u. Referenced by main(), and PrintPair().
|
|
defined(BUILD_WOW6432) ++ Parameters: wCodePageID - the code page is to set for the current console output. Return Value: TRUE - The operation was successful. FALSE/NULL - The operation failed. Extended error status is available using GetLastError. -- Definition at line 1501 of file ntcon/client/getset.c. References FALSE, NT_SUCCESS, NTSTATUS(), SET_LAST_NT_ERROR, SetConsoleOutputCPInternal(), SetTEBLangID(), Status, and TRUE.
|
|
Definition at line 1469 of file ntcon/client/getset.c. References _CONSOLE_SETCP_MSG::ConsoleHandle, ConsolepSetCP, CsrClientCallServer(), GET_CONSOLE_HANDLE, NULL, _CONSOLE_SETCP_MSG::Output, TRUE, _CONSOLE_API_MSG::u, and _CONSOLE_SETCP_MSG::wCodePageID. Referenced by SetConsoleOutputCP().
|
|
Definition at line 827 of file ntcon/client/getset.c. References _CONSOLE_SETSCREENBUFFERSIZE_MSG::ConsoleHandle, ConsolepSetScreenBufferSize, CsrClientCallServer(), FALSE, GET_CONSOLE_HANDLE, NT_SUCCESS, NULL, _CONSOLE_SETSCREENBUFFERSIZE_MSG::OutputHandle, SET_LAST_NT_ERROR, _CONSOLE_SETSCREENBUFFERSIZE_MSG::Size, TRUE, and _CONSOLE_API_MSG::u.
|
|
defined(BUILD_WOW64)
Definition at line 1155 of file ntcon/client/getset.c. References _CONSOLE_SETTEXTATTRIBUTE_MSG::Attributes, _CONSOLE_SETTEXTATTRIBUTE_MSG::ConsoleHandle, ConsolepSetTextAttribute, CsrClientCallServer(), FALSE, GET_CONSOLE_HANDLE, NT_SUCCESS, NULL, _CONSOLE_SETTEXTATTRIBUTE_MSG::OutputHandle, SET_LAST_NT_ERROR, TRUE, and _CONSOLE_API_MSG::u.
|
|
Definition at line 980 of file ntcon/client/getset.c. References _CONSOLE_SETWINDOWINFO_MSG::Absolute, _CONSOLE_SETWINDOWINFO_MSG::ConsoleHandle, ConsolepSetWindowInfo, CsrClientCallServer(), EXCEPTION_EXECUTE_HANDLER, FALSE, GET_CONSOLE_HANDLE, NT_SUCCESS, NULL, _CONSOLE_SETWINDOWINFO_MSG::OutputHandle, SET_LAST_ERROR, SET_LAST_NT_ERROR, TRUE, _CONSOLE_API_MSG::u, and _CONSOLE_SETWINDOWINFO_MSG::Window.
|