#include "precomp.h"
Go to the source code of this file.
Classes | |
struct | _FONTENUMDC |
Defines | |
#define | FONT_BUFFER_SIZE 12 |
#define | FE_ABANDONFONT 1 |
#define | FE_FONTOK 2 |
#define | NOT_CREATED_NOR_FOUND -1 |
#define | CREATED_BUT_NOT_FOUND -2 |
Typedefs | |
typedef _FONTENUMDC | FONTENUMDC |
typedef _FONTENUMDC * | PFONTENUMDC |
Functions | |
NTSTATUS | GetMouseButtons (PULONG NumButtons) |
VOID | InitializeMouseButtons (VOID) |
PFACENODE | AddFaceNode (PFACENODE *ppStart, LPWSTR pwsz) |
VOID | InitializeFonts (VOID) |
int CALLBACK | FontEnum (LPENUMLOGFONTW lpLogFont, LPNEWTEXTMETRICW lpTextMetric, int nFontType, LPARAM lParam) |
BOOL | DoFontEnum (HDC hDC, LPWSTR pwszFace, SHORT TTPointSize) |
NTSTATUS | EnumerateFonts (DWORD Flags) |
int | FindCreateFont (DWORD Family, LPWSTR pwszFace, COORD Size, LONG Weight, UINT CodePage) |
NTSTATUS | FindTextBufferFontInfo (IN PSCREEN_INFORMATION ScreenInfo, IN UINT CodePage, OUT PTEXT_BUFFER_FONT_INFO TextFontInfo) |
NTSTATUS | StoreTextBufferFontInfo (IN PSCREEN_INFORMATION ScreenInfo, IN ULONG FontIndex, IN COORD FontSize, IN BYTE FontFamily, IN LONG FontWeight, IN LPWSTR FaceName, IN UINT CodePage) |
NTSTATUS | RemoveTextBufferFontInfo (IN PSCREEN_INFORMATION ScreenInfo) |
NTSTATUS | GetNumFonts (OUT PULONG NumFonts) |
NTSTATUS | GetAvailableFonts (IN PSCREEN_INFORMATION ScreenInfo, IN BOOLEAN MaximumWindow, OUT PVOID Buffer, IN OUT PULONG NumFonts) |
NTSTATUS | GetFontSize (IN DWORD FontIndex, OUT PCOORD FontSize) |
NTSTATUS | GetCurrentFont (IN PSCREEN_INFORMATION ScreenInfo, IN BOOLEAN MaximumWindow, OUT PULONG FontIndex, OUT PCOORD FontSize) |
NTSTATUS | SetScreenBufferFont (IN PSCREEN_INFORMATION ScreenInfo, IN ULONG FontIndex, IN UINT CodePage) |
NTSTATUS | SetFont (IN OUT PSCREEN_INFORMATION ScreenInfo) |
int | ConvertToOem (IN UINT Codepage, IN LPWSTR Source, IN int SourceLength, OUT LPSTR Target, IN int TargetLength) |
int | ConvertInputToUnicode (IN UINT Codepage, IN LPSTR Source, IN int SourceLength, OUT LPWSTR Target, IN int TargetLength) |
int | ConvertOutputToUnicode (IN UINT Codepage, IN LPSTR Source, IN int SourceLength, OUT LPWSTR Target, IN int TargetLength) |
WCHAR | CharToWcharGlyph (IN UINT Codepage, IN char Ch) |
WCHAR | CharToWchar (IN UINT Codepage, IN char Ch) |
char | WcharToChar (IN UINT Codepage, IN WCHAR Wchar) |
int | ConvertOutputToOem (IN UINT Codepage, IN LPWSTR Source, IN int SourceLength, OUT LPSTR Target, IN int TargetLength) |
NTSTATUS | RealUnicodeToFalseUnicode (IN OUT LPWSTR Source, IN int SourceLength, IN UINT Codepage) |
NTSTATUS | FalseUnicodeToRealUnicode (IN OUT LPWSTR Source, IN int SourceLength, IN UINT Codepage) |
BOOL | InitializeCustomCP () |
Variables | |
ULONG | NumberOfMouseButtons |
PFONT_INFO | FontInfo |
ULONG | FontInfoLength |
ULONG | NumberOfFonts |
WCHAR | DefaultFaceName [LF_FACESIZE] |
COORD | DefaultFontSize |
BYTE | DefaultFontFamily |
ULONG | DefaultFontIndex = 0 |
CPTABLEINFO | GlyphCP |
USHORT | GlyphTable [256] |
PFACENODE | gpFaceNames |
|
Referenced by FindCreateFont(). |
|
Definition at line 56 of file w32/ntcon/server/misc.c. |
|
Definition at line 57 of file w32/ntcon/server/misc.c. Referenced by DoFontEnum(), and FontEnum(). |
|
Definition at line 54 of file w32/ntcon/server/misc.c. |
|
Referenced by FindCreateFont(). |
|
|
|
Referenced by FontEnum(). |
|
Definition at line 80 of file w32/ntcon/server/misc.c. References tagFACENODE::awch, ConsoleHeapAlloc, tagFACENODE::dwFlag, FONT_TAG, MAKE_TAG, NULL, and tagFACENODE::pNext. Referenced by EnumerateFonts(), and FontEnum().
|
|
Definition at line 1469 of file w32/ntcon/server/misc.c. References DBGCHARS, NULL, OEMCP, and RtlOemToUnicodeN(). Referenced by GetChar(), SB_TranslateOutputToUnicode(), SrvScrollConsoleScreenBuffer(), and TranslateInputToUnicode().
|
|
Definition at line 1443 of file w32/ntcon/server/misc.c. References DBGCHARS, GlyphCP, NULL, OEMCP, and RtlCustomCPToUnicodeN().
|
|
Definition at line 1345 of file w32/ntcon/server/misc.c. References DBGCHARS, NT_SUCCESS, NTSTATUS(), OEMCP, RtlOemToUnicodeN(), and Status. Referenced by AddExeAliasList(), FindExe(), FindExeCommandHistory(), SrvAddConsoleAlias(), SrvGetConsoleAlias(), and SrvSetConsoleTitle().
|
|
Definition at line 1508 of file w32/ntcon/server/misc.c. References ASSERT, CHAR, ConsoleHeapAlloc, ConsoleHeapFree, DBGCHARS, MAKE_TAG, NT_SUCCESS, NTSTATUS(), NULL, OEMCP, RtlUnicodeToOemN(), STACK_BUFFER_SIZE, Status, and TMP_TAG. Referenced by ReadOutputString(), and TranslateOutputToOem().
|
|
Definition at line 1384 of file w32/ntcon/server/misc.c. References CHAR, ConsoleHeapAlloc, ConsoleHeapFree, DBGCHARS, GlyphCP, MAKE_TAG, NT_SUCCESS, NTSTATUS(), NULL, OEMCP, RtlCustomCPToUnicodeN(), STACK_BUFFER_SIZE, Status, and TMP_TAG. Referenced by WWSB_DoSrvWriteConsole(), WWSB_FillOutput(), WWSB_WriteChars(), WWSB_WriteOutputString(), and WWSB_WriteRectToScreenBuffer().
|
|
Definition at line 1307 of file w32/ntcon/server/misc.c. References DBGCHARS, NT_SUCCESS, NTSTATUS(), NULL, OEMCP, RtlUnicodeToOemN(), and Status. Referenced by CookedRead(), DoStringPaste(), ProcessCommandListInput(), RawReadWaitRoutine(), ReadChars(), SrvGetConsoleAlias(), SrvGetConsoleAliases(), SrvGetConsoleAliasExes(), SrvGetConsoleCommandHistory(), and SrvGetConsoleTitle().
|
|
Definition at line 478 of file w32/ntcon/server/misc.c. References _FONTENUMDC::bFindFaces, BOOL, DBGFONTS, FALSE, FE_FONTOK, FontEnum(), _FONTENUMDC::hDC, L, NULL, TRUE, _FONTENUMDC::TTPointSize, and _FONTENUMDC::ulFE. Referenced by EnumerateFonts(), and FindCreateFont().
|
|
Definition at line 515 of file w32/ntcon/server/misc.c. References AddFaceNode(), ASSERT, tagFACENODE::awch, CONSOLE_IS_DBCS_ENABLED, ConsoleHeapAlloc, DBGFONTS, DefaultFaceName, DefaultFontFamily, DefaultFontIndex, DefaultFontSize, DoFontEnum(), tagFACENODE::dwFlag, DWORD, EF_DEFFACE, EF_ENUMERATED, EF_NEW, EF_OEMFONT, EF_OLD, EF_TTFONT, _FONT_INFO::Family, FONT_TAG, FontInfo, FontInfoLength, gpFaceNames, INITIAL_FONTS, L, MAKE_TAG, NULL, NumberOfFonts, tagFACENODE::pNext, SHORT, and _FONT_INFO::Size. Referenced by ConsoleInputThread().
|
|
Definition at line 1676 of file w32/ntcon/server/misc.c. References BOOL, CHAR, CONSOLE_IS_DBCS_ENABLED, ConsoleHeapAlloc, ConsoleHeapFree, DBGCHARS, FALSE, GlyphCP, MAKE_TAG, NT_SUCCESS, NTSTATUS(), NULL, OEMCP, RtlCustomCPToUnicodeN(), RtlUnicodeToMultiByteN(), STACK_BUFFER_SIZE, Status, TMP_TAG, TRUE, USACP, USHORT, and WINDOWSCP. Referenced by ConvertToFullScreen(), DrawCommandListPopup(), ReadOutputString(), SB_TranslateOutputToOemUnicode(), SetScreenBufferFont(), and StoreSelection().
|
|
Definition at line 650 of file w32/ntcon/server/misc.c. References BOOL, BYTE, CodePageToCharSet(), CONSOLE_IS_DBCS_ENABLED, CREATED_BUT_NOT_FOUND, DBGFONTS, DefaultFaceName, DefaultFontIndex, DefaultFontSize, DoFontEnum(), _FONT_INFO::Family, FontInfo, GetAltFaceName(), IsAvailableFarEastCodePage(), IsAvailableTTFont(), L, MakeAltRasterFont(), NOT_CREATED_NOR_FOUND, NULL, NumberOfFonts, _FONT_INFO::Size, Size, SIZE_EQUAL, _FONT_INFO::SizeWant, TM_IS_TT_FONT, and _FONT_INFO::Weight. Referenced by DoCreateScreenBuffer(), PropertiesUpdate(), SetFont(), and SrvCreateConsoleScreenBuffer().
|
|
Definition at line 846 of file w32/ntcon/server/misc.c. References _TEXT_BUFFER_FONT_INFO::FontCodePage, _TEXT_BUFFER_FONT_INFO::NextTextBufferFont, and NULL.
|
|
Definition at line 152 of file w32/ntcon/server/misc.c. References AddFaceNode(), tagFACENODE::awch, _FONTENUMDC::bFindFaces, BOOL, BYTE, CONSOLE_IS_DBCS_ENABLED, ConsoleHeapReAlloc, DBGFONTS, DBGFONTS2, DefaultFontIndex, tagFACENODE::dwFlag, EF_OEMFONT, EF_TTFONT, _FONT_INFO::FaceName, FALSE, _FONT_INFO::Family, FE_FONTOK, FONT_INCREMENT, FONT_TAG, FontInfo, FontInfoLength, gpFaceNames, _FONTENUMDC::hDC, _FONT_INFO::hFont, IS_BOLD, IsAvailableTTFont(), IsAvailableTTFontCP(), L, MAKE_TAG, NULL, NumberOfFonts, PFONTENUMDC, SHORT, _FONT_INFO::Size, Size, SIZE_EQUAL, _FONT_INFO::SizeWant, TM_IS_TT_FONT, TRUE, _FONTENUMDC::TTPointSize, _FONTENUMDC::ulFE, and _FONT_INFO::Weight. Referenced by DoFontEnum().
|
|
Definition at line 998 of file w32/ntcon/server/misc.c. References Buffer, CONSOLE_WINDOW_SIZE_X, CONSOLE_WINDOW_SIZE_Y, FontInfo, GetWindowLimits(), _WINDOW_LIMITS::MaximumWindowSize, NumberOfFonts, SCR_FONTSIZE(), SHORT, and _FONT_INFO::Size. Referenced by SrvGetConsoleFontInfo().
|
|
Definition at line 1053 of file w32/ntcon/server/misc.c. References CONSOLE_WINDOW_SIZE_X, CONSOLE_WINDOW_SIZE_Y, GetWindowLimits(), _WINDOW_LIMITS::MaximumWindowSize, SCR_FONTNUMBER(), and SHORT. Referenced by SrvGetConsoleCurrentFont().
|
|
Definition at line 1041 of file w32/ntcon/server/misc.c. References FontInfo, NumberOfFonts, and _FONT_INFO::Size. Referenced by SetScreenBufferFont(), and SrvGetConsoleFontSize().
|
|
Definition at line 66 of file w32/ntcon/server/misc.c. References NumberOfMouseButtons. Referenced by SrvGetConsoleMouseInfo().
|
|
Definition at line 988 of file w32/ntcon/server/misc.c. References NumberOfFonts. Referenced by SrvGetConsoleNumberOfFonts().
|
|
Definition at line 1787 of file w32/ntcon/server/misc.c. References BOOL, FALSE, GlyphCP, GlyphTable, NULL, RtlInitCodePageTable(), TRUE, and USHORT. Referenced by ConsoleInputThread().
|
|
Definition at line 109 of file w32/ntcon/server/misc.c. References CONSOLE_MAX_FONT_NAME_LENGTH, L, NELEM, and NULL. Referenced by ConServerDllInitialization().
|
|
Definition at line 75 of file w32/ntcon/server/misc.c. References GetSystemMetrics(), and NumberOfMouseButtons. Referenced by InitializeScreenInfo().
|
|
Definition at line 1573 of file w32/ntcon/server/misc.c. References BOOL, CHAR, CONSOLE_IS_DBCS_ENABLED, ConsoleHeapAlloc, ConsoleHeapFree, DBGCHARS, FALSE, MAKE_TAG, NT_SUCCESS, NTSTATUS(), NULL, OEMCP, RtlMultiByteToUnicodeN(), RtlUnicodeToOemN(), STACK_BUFFER_SIZE, Status, TMP_TAG, TRUE, USACP, and WINDOWSCP. Referenced by ConvertToWindowed(), FE_TranslateOutputToAnsiUnicodeInternal(), SB_TranslateOutputToAnsiUnicode(), SetScreenBufferFont(), SrvScrollConsoleScreenBuffer(), WWSB_DoSrvWriteConsole(), WWSB_FillOutput(), WWSB_WriteChars(), and WWSB_WriteOutputString().
|
|
Definition at line 952 of file w32/ntcon/server/misc.c. References ConsoleHeapFree, _TEXT_BUFFER_FONT_INFO::NextTextBufferFont, and NULL. Referenced by CreateScreenBuffer(), and FreeScreenBuffer().
|
|
Definition at line 1260 of file w32/ntcon/server/misc.c. References ACTIVE_SCREEN_BUFFER, ASSERT, ConvertAttrToRGB, DWORD, FindCreateFont(), FontInfo, _FONT_INFO::hFont, LOBYTE, NT_SUCCESS, NTSTATUS(), SCR_FACENAME(), SCR_FAMILY(), SCR_FONTCODEPAGE(), SCR_FONTNUMBER(), SCR_FONTSIZE(), SCR_FONTWEIGHT(), Size, Status, and StoreTextBufferFontInfo(). Referenced by ConvertToWindowed(), CreateWindowsWindow(), SetActiveScreenBuffer(), and SetScreenBufferFont().
|
|
Definition at line 1077 of file w32/ntcon/server/misc.c. References ACTIVE_SCREEN_BUFFER, CONSOLE_OEMFONT_DISPLAY, CONSOLE_TEXTMODE_BUFFER, CONSOLE_WINDOW_SIZE_X, CONSOLE_WINDOW_SIZE_Y, DBGCHARS, DBGFONTS, FALSE, FalseUnicodeToRealUnicode(), FontInfo, GetFontSize(), GetWindowLimits(), _WINDOW_LIMITS::MaximumWindowSize, _WINDOW_LIMITS::MinimumWindowSize, NT_SUCCESS, NTSTATUS(), NULL, RealUnicodeToFalseUnicode(), ResizeScreenBuffer(), SCR_FACENAME(), SCR_FAMILY(), SCR_FONTCODEPAGE(), SCR_FONTNUMBER(), SCR_FONTSIZE(), SCR_FONTWEIGHT(), SetCursorInformation(), SetFont(), SetLineChar(), SetWindowSize(), SHORT, Status, StoreTextBufferFontInfo(), TM_IS_TT_FONT, and WriteToScreen. Referenced by PropertiesUpdate(), and SrvSetConsoleFont().
|
|
Definition at line 881 of file w32/ntcon/server/misc.c. References ConsoleHeapAlloc, _TEXT_BUFFER_FONT_INFO::FaceName, _TEXT_BUFFER_FONT_INFO::Family, FONT_TAG, _TEXT_BUFFER_FONT_INFO::FontCodePage, _TEXT_BUFFER_FONT_INFO::FontNumber, _TEXT_BUFFER_FONT_INFO::FontSize, MAKE_TAG, _TEXT_BUFFER_FONT_INFO::NextTextBufferFont, NULL, and _TEXT_BUFFER_FONT_INFO::Weight. Referenced by ConvertToFullScreen(), ConvertToWindowed(), CreateScreenBuffer(), SetFont(), and SetScreenBufferFont().
|
|
Definition at line 1489 of file w32/ntcon/server/misc.c. References DBGCHARS, NULL, OEMCP, and RtlUnicodeToOemN(). Referenced by FE_WriteRegionToScreenHW(), ReadOutputString(), SB_TranslateOutputToOem(), and TranslateInputToOem().
|
|
Definition at line 35 of file w32/ntcon/server/misc.c. Referenced by EnumerateFonts(), and FindCreateFont(). |
|
Definition at line 37 of file w32/ntcon/server/misc.c. Referenced by EnumerateFonts(). |
|
Definition at line 38 of file w32/ntcon/server/misc.c. Referenced by EnumerateFonts(), FindCreateFont(), and FontEnum(). |
|
Definition at line 36 of file w32/ntcon/server/misc.c. Referenced by EnumerateFonts(), and FindCreateFont(). |
|
Definition at line 31 of file w32/ntcon/server/misc.c. Referenced by CreateScreenBuffer(), df(), DoCreateScreenBuffer(), EnumerateFonts(), FindCreateFont(), FontEnum(), GetAvailableFonts(), GetFontSize(), PropertiesDlgShow(), SetFont(), SetRAMFont(), SetRAMFontCodePage(), and SetScreenBufferFont(). |
|
Definition at line 32 of file w32/ntcon/server/misc.c. Referenced by df(), EnumerateFonts(), and FontEnum(). |
|
Definition at line 50 of file w32/ntcon/server/misc.c. Referenced by CharToWcharGlyph(), ConvertOutputToUnicode(), FalseUnicodeToRealUnicode(), and InitializeCustomCP(). |
|
Definition at line 51 of file w32/ntcon/server/misc.c. Referenced by InitializeCustomCP(). |
|
Definition at line 62 of file w32/ntcon/server/misc.c. Referenced by EnumerateFonts(), and FontEnum(). |
|
Definition at line 33 of file w32/ntcon/server/misc.c. Referenced by CreateScreenBuffer(), df(), EnumerateFonts(), FindCreateFont(), FontEnum(), GetAvailableFonts(), GetFontSize(), GetNumFonts(), and PropertiesDlgShow(). |
|
Definition at line 29 of file w32/ntcon/server/misc.c. Referenced by GetMouseButtons(), and InitializeMouseButtons(). |