Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

server.h File Reference

#include "input.h"
#include "output.h"

Go to the source code of this file.

Classes

struct  _CONSOLE_SHARE_ACCESS
struct  _CONSOLE_PROCESS_HANDLE
struct  _INPUT_THREAD_INFO
struct  _INPUT_THREAD_INIT_INFO
struct  _CONSOLE_MSG
struct  _CONSOLE_THREAD_MSG
struct  _CONSOLE_INFORMATION
struct  _HANDLE_DATA
struct  _CONSOLE_PER_PROCESS_DATA
struct  _CONSOLE_REGISTRY_INFO
struct  _CONSOLE_PROCESS_TERMINATION_RECORD
struct  LNKPROPNTCONSOLE
struct  CShellLink

Defines

#define CONSOLE_IS_ICONIC   0x00000001
#define CONSOLE_OUTPUT_SUSPENDED   0x00000002
#define CONSOLE_HAS_FOCUS   0x00000004
#define CONSOLE_IGNORE_NEXT_MOUSE_INPUT   0x00000008
#define CONSOLE_SELECTING   0x00000010
#define CONSOLE_SCROLLING   0x00000020
#define CONSOLE_DISABLE_CLOSE   0x00000040
#define CONSOLE_NOTIFY_LAST_CLOSE   0x00000080
#define CONSOLE_NO_WINDOW   0x00000100
#define CONSOLE_VDM_REGISTERED   0x00000200
#define CONSOLE_UPDATING_SCROLL_BARS   0x00000400
#define CONSOLE_QUICK_EDIT_MODE   0x00000800
#define CONSOLE_TERMINATING   0x00001000
#define CONSOLE_CONNECTED_TO_EMULATOR   0x00002000
#define CONSOLE_FULLSCREEN_NOPAINT   0x00004000
#define CONSOLE_SHUTTING_DOWN   0x00008000
#define CONSOLE_AUTO_POSITION   0x00010000
#define CONSOLE_IGNORE_NEXT_KEYUP   0x00020000
#define CONSOLE_WOW_REGISTERED   0x00040000
#define CONSOLE_USE_PRIVATE_FLAGS   0x00080000
#define CONSOLE_HISTORY_NODUP   0x00100000
#define CONSOLE_SCROLLBAR_TRACKING   0x00200000
#define CONSOLE_IN_DESTRUCTION   0x00400000
#define CONSOLE_SETTING_WINDOW_SIZE   0x00800000
#define CONSOLE_DEFAULT_BUFFER_SIZE   0x01000000
#define CONSOLE_SUSPENDED   (CONSOLE_OUTPUT_SUSPENDED)
#define CONSOLE_NO_SELECTION   0
#define CONSOLE_SELECTION_NOT_EMPTY   1
#define CONSOLE_MOUSE_SELECTION   2
#define CONSOLE_MOUSE_DOWN   4
#define CONSOLE_SELECTION_INVERTED   8
#define CONSOLE_CTRL_C_FLAG   1
#define CONSOLE_CTRL_BREAK_FLAG   2
#define CONSOLE_CTRL_CLOSE_FLAG   4
#define CONSOLE_FORCE_SHUTDOWN_FLAG   8
#define CONSOLE_CTRL_LOGOFF_FLAG   16
#define CONSOLE_CTRL_SHUTDOWN_FLAG   32
#define ADD_SCROLL_BARS_X   0x1
#define REMOVE_SCROLL_BARS_X   0x2
#define ADD_SCROLL_BARS_Y   0x4
#define REMOVE_SCROLL_BARS_Y   0x8
#define RESIZE_SCROLL_BARS   0x10
#define SCROLL_BAR_CHANGE   (ADD_SCROLL_BARS_X | REMOVE_SCROLL_BARS_X | ADD_SCROLL_BARS_Y | REMOVE_SCROLL_BARS_Y | RESIZE_SCROLL_BARS)
#define BORDER_CHANGE   0x20
#define SCREEN_BUFFER_CHANGE   0x40
#define CONSOLE_INITIAL_IO_HANDLES   3
#define CONSOLE_IO_HANDLE_INCREMENT   3
#define CONSOLE_FREE_HANDLE   0
#define CONSOLE_GRAPHICS_OUTPUT_HANDLE   4
#define CONSOLE_INHERITABLE   8
#define CONSOLE_ANY_HANDLE   ((ULONG)(-1))
#define HANDLE_CLOSING   1
#define HANDLE_INPUT_PENDING   2
#define HANDLE_MULTI_LINE_INPUT   4
#define CONSOLE_INITIAL_CONSOLES   10
#define CONSOLE_CONSOLE_HANDLE_INCREMENT   5
#define CONSOLE_HANDLE_ALLOCATED   1
#define INDEX_TO_HANDLE(INDEX)   ((HANDLE)(((ULONG_PTR)INDEX << 2) | CONSOLE_HANDLE_SIGNATURE))
#define HANDLE_TO_INDEX(CONHANDLE)   ((HANDLE)((ULONG_PTR)CONHANDLE >> 2))
#define INPUT_MODES   (ENABLE_LINE_INPUT | ENABLE_PROCESSED_INPUT | ENABLE_ECHO_INPUT | ENABLE_WINDOW_INPUT | ENABLE_MOUSE_INPUT)
#define OUTPUT_MODES   (ENABLE_PROCESSED_OUTPUT | ENABLE_WRAP_AT_EOL_OUTPUT)
#define PRIVATE_MODES   (ENABLE_INSERT_MODE | ENABLE_QUICK_EDIT_MODE | ENABLE_PRIVATE_FLAGS)
#define CURSOR_PERCENTAGE_TO_TOP_SCAN_LINE(FONTSIZE, PERCENTAGE)   ((FONTSIZE) - ((FONTSIZE) * (PERCENTAGE) / 100))
#define ConsoleLocked(CONSOLEPTR)   (((CONSOLEPTR)->ConsoleLock.OwningThread) == NtCurrentTeb()->ClientId.UniqueThread)
#define CONSOLE_STATUS_WAIT   ((NTSTATUS)0xC0030001L)
#define CONSOLE_STATUS_READ_COMPLETE   ((NTSTATUS)0xC0030002L)
#define CONSOLE_STATUS_WAIT_NO_BLOCK   ((NTSTATUS)0xC0030003L)
#define CM_CREATE_CONSOLE_WINDOW   (WM_USER+0)
#define CM_DESTROY_WINDOW   (WM_USER+1)
#define CM_SET_WINDOW_SIZE   (WM_USER+2)
#define CM_BEEP   (WM_USER+3)
#define CM_UPDATE_SCROLL_BARS   (WM_USER+4)
#define CM_UPDATE_TITLE   (WM_USER+5)
#define CM_MODE_TRANSITION   (WM_USER+6)
#define CM_CONSOLE_SHUTDOWN   (WM_USER+7)
#define CM_HIDE_WINDOW   (WM_USER+8)
#define CM_CONSOLE_MSG   (WM_USER+16)
#define CM_CONSOLE_INPUT_THREAD_MSG   (WM_USER+17)
#define CONSOLE_CLIENTTHREADHANDLE(pcsrthread)   ((pcsrthread)->ThreadHandle)
#define CONSOLE_CLIENTPROCESSHANDLE()   ((CSR_SERVER_QUERYCLIENTTHREAD())->Process->ProcessHandle)
#define CONSOLE_CLIENTPROCESSID()   ((CSR_SERVER_QUERYCLIENTTHREAD())->Process->ClientId.UniqueProcess)
#define CONSOLE_FROMPROCESSPROCESSHANDLE(pcsrprocess)   ((pcsrprocess)->ProcessHandle)
#define CONSOLE_FROMPROCESSPERPROCESSDATA(pcsrprocess)   ((pcsrprocess)->ServerDllPerProcessData[CONSRV_SERVERDLL_INDEX])
#define CONSOLE_FROMTHREADPERPROCESSDATA(pcsrthread)   CONSOLE_FROMPROCESSPERPROCESSDATA((pcsrthread)->Process)
#define CONSOLE_PERPROCESSDATA()   CONSOLE_FROMTHREADPERPROCESSDATA(CSR_SERVER_QUERYCLIENTTHREAD())
#define CONSOLE_GETCONSOLEAPP()   (((PCONSOLE_PER_PROCESS_DATA)CONSOLE_PERPROCESSDATA())->ConsoleApp)
#define CONSOLE_GETCONSOLEAPPFROMPROCESSDATA(PROCESSDATA)   ((PROCESSDATA)->ConsoleApp)
#define CONSOLE_SETCONSOLEAPP(VALUE)   (((PCONSOLE_PER_PROCESS_DATA)CONSOLE_PERPROCESSDATA())->ConsoleApp = VALUE)
#define CONSOLE_SETCONSOLEAPPFROMPROCESSDATA(PROCESSDATA, VALUE)   ((PROCESSDATA)->ConsoleApp = VALUE)
#define CONSOLE_GETCONSOLEHANDLE()   (((PCONSOLE_PER_PROCESS_DATA)CONSOLE_PERPROCESSDATA())->ConsoleHandle)
#define CONSOLE_SETCONSOLEHANDLE(VALUE)   (((PCONSOLE_PER_PROCESS_DATA)CONSOLE_PERPROCESSDATA())->ConsoleHandle = VALUE)
#define CONSOLE_GETCONSOLEHANDLEFROMPROCESSDATA(PROCESSDATA)   ((PROCESSDATA)->ConsoleHandle)
#define CONSOLE_SETCONSOLEHANDLEFROMPROCESSDATA(PROCESSDATA, VALUE)   ((PROCESSDATA)->ConsoleHandle = VALUE)
#define CONSOLE_WINDOW_CLASS   (L"ConsoleWindowClass")
#define CONSOLE_MAX_APP_SHORTCUTS   1
#define STACK_BUFFER_SIZE   132
#define LINK_PROP_MAIN_SIG   0x00000001
#define LINK_PROP_NT_CONSOLE_SIG   0x00000002

Typedefs

typedef _CONSOLE_SHARE_ACCESS CONSOLE_SHARE_ACCESS
typedef _CONSOLE_SHARE_ACCESSPCONSOLE_SHARE_ACCESS
typedef _CONSOLE_PROCESS_HANDLE CONSOLE_PROCESS_HANDLE
typedef _CONSOLE_PROCESS_HANDLEPCONSOLE_PROCESS_HANDLE
typedef _INPUT_THREAD_INFO INPUT_THREAD_INFO
typedef _INPUT_THREAD_INFOPINPUT_THREAD_INFO
typedef _INPUT_THREAD_INIT_INFO INPUT_THREAD_INIT_INFO
typedef _INPUT_THREAD_INIT_INFOPINPUT_THREAD_INIT_INFO
typedef _CONSOLE_MSG CONSOLE_MSG
typedef _CONSOLE_MSGPCONSOLE_MSG
typedef _CONSOLE_THREAD_MSG CONSOLE_THREAD_MSG
typedef _CONSOLE_THREAD_MSGPCONSOLE_THREAD_MSG
typedef _CONSOLE_INFORMATION CONSOLE_INFORMATION
typedef _CONSOLE_INFORMATIONPCONSOLE_INFORMATION
typedef _HANDLE_DATA HANDLE_DATA
typedef _HANDLE_DATAPHANDLE_DATA
typedef _CONSOLE_PER_PROCESS_DATA CONSOLE_PER_PROCESS_DATA
typedef _CONSOLE_PER_PROCESS_DATAPCONSOLE_PER_PROCESS_DATA
typedef _CONSOLE_REGISTRY_INFO CONSOLE_REGISTRY_INFO
typedef _CONSOLE_REGISTRY_INFOPCONSOLE_REGISTRY_INFO
typedef _CONSOLE_PROCESS_TERMINATION_RECORD CONSOLE_PROCESS_TERMINATION_RECORD
typedef _CONSOLE_PROCESS_TERMINATION_RECORDPCONSOLE_PROCESS_TERMINATION_RECORD
typedef * LPLNKPROPNTCONSOLE


Define Documentation

#define ADD_SCROLL_BARS_X   0x1
 

Definition at line 283 of file server.h.

#define ADD_SCROLL_BARS_Y   0x4
 

Definition at line 285 of file server.h.

#define BORDER_CHANGE   0x20
 

Definition at line 289 of file server.h.

#define CM_BEEP   (WM_USER+3)
 

Definition at line 357 of file server.h.

Referenced by ConsoleWindowProc(), and WWSB_WriteChars().

#define CM_CONSOLE_INPUT_THREAD_MSG   (WM_USER+17)
 

Definition at line 376 of file server.h.

Referenced by ConsoleInputThread(), DialogHookProc(), and QueueThreadMessage().

#define CM_CONSOLE_MSG   (WM_USER+16)
 

Definition at line 375 of file server.h.

Referenced by ConsoleWindowProc(), and QueueConsoleMessage().

#define CM_CONSOLE_SHUTDOWN   (WM_USER+7)
 

Definition at line 364 of file server.h.

#define CM_CREATE_CONSOLE_WINDOW   (WM_USER+0)
 

Definition at line 354 of file server.h.

Referenced by AllocateConsole(), ConsoleInputThread(), and DialogHookProc().

#define CM_DESTROY_WINDOW   (WM_USER+1)
 

Definition at line 355 of file server.h.

Referenced by FreeCon().

#define CM_HIDE_WINDOW   (WM_USER+8)
 

Definition at line 365 of file server.h.

Referenced by ConsoleWindowProc(), and SrvVDMConsoleOperation().

#define CM_MODE_TRANSITION   (WM_USER+6)
 

Definition at line 363 of file server.h.

Referenced by CleanupConsoleMessages(), ConsoleWindowProc(), and SrvSetConsoleDisplayMode().

#define CM_SET_WINDOW_SIZE   (WM_USER+2)
 

Definition at line 356 of file server.h.

Referenced by ConsoleWindowProc(), and SetWindowSize().

#define CM_UPDATE_SCROLL_BARS   (WM_USER+4)
 

Definition at line 358 of file server.h.

Referenced by ConsoleWindowProc(), and UpdateScrollBars().

#define CM_UPDATE_TITLE   (WM_USER+5)
 

Definition at line 359 of file server.h.

Referenced by ConsoleWindowProc(), and SrvSetConsoleTitle().

#define CONSOLE_ANY_HANDLE   ((ULONG)(-1))
 

Definition at line 300 of file server.h.

Referenced by SrvGetConsoleMode(), and SrvSetConsoleMode().

#define CONSOLE_AUTO_POSITION   0x00010000
 

Definition at line 101 of file server.h.

Referenced by DoCreateScreenBuffer(), GetWindowLimits(), PositionConsoleWindow(), PropertiesDlgShow(), and PropertiesUpdate().

 
#define CONSOLE_CLIENTPROCESSHANDLE  )     ((CSR_SERVER_QUERYCLIENTTHREAD())->Process->ProcessHandle)
 

Definition at line 380 of file server.h.

Referenced by ConsoleClientConnectRoutine(), CreateConsoleBitmap(), SetUpConsole(), SrvAllocConsole(), SrvConsoleNotifyLastClose(), SrvFreeConsole(), SrvReadConsole(), SrvRegisterConsoleVDM(), SrvSetConsoleCP(), SrvSetConsoleDisplayMode(), and SrvWriteConsoleOutput().

 
#define CONSOLE_CLIENTPROCESSID  )     ((CSR_SERVER_QUERYCLIENTTHREAD())->Process->ClientId.UniqueProcess)
 

Definition at line 383 of file server.h.

Referenced by ApiPreamble(), ConsoleClientConnectRoutine(), SrvConsoleNotifyLastClose(), SrvFreeConsole(), SrvRegisterConsoleVDM(), SrvVDMConsoleOperation(), and UnlockConsole().

#define CONSOLE_CLIENTTHREADHANDLE pcsrthread   )     ((pcsrthread)->ThreadHandle)
 

Definition at line 378 of file server.h.

Referenced by AllocateConsole().

#define CONSOLE_CONNECTED_TO_EMULATOR   0x00002000
 

Definition at line 98 of file server.h.

Referenced by ConnectToEmulator(), DisplayModeTransition(), HandleFocusEvent(), SrvRegisterConsoleVDM(), and UnregisterVDM().

#define CONSOLE_CONSOLE_HANDLE_INCREMENT   5
 

Definition at line 336 of file server.h.

Referenced by GrowConsoleHandleTable().

#define CONSOLE_CTRL_BREAK_FLAG   2
 

Definition at line 277 of file server.h.

Referenced by HandleCtrlEvent(), and ProcessCtrlEvents().

#define CONSOLE_CTRL_C_FLAG   1
 

Definition at line 276 of file server.h.

Referenced by HandleCtrlEvent(), and ProcessCtrlEvents().

#define CONSOLE_CTRL_CLOSE_FLAG   4
 

Definition at line 278 of file server.h.

Referenced by HandleCtrlEvent(), and ProcessCtrlEvents().

#define CONSOLE_CTRL_LOGOFF_FLAG   16
 

Definition at line 280 of file server.h.

Referenced by ProcessCtrlEvents(), and UnlockConsole().

#define CONSOLE_CTRL_SHUTDOWN_FLAG   32
 

Definition at line 281 of file server.h.

Referenced by ProcessCtrlEvents(), and UnlockConsole().

#define CONSOLE_DEFAULT_BUFFER_SIZE   0x01000000
 

Definition at line 109 of file server.h.

Referenced by DoCreateScreenBuffer(), and ProcessCreateConsoleWindow().

#define CONSOLE_DISABLE_CLOSE   0x00000040
 

Definition at line 91 of file server.h.

Referenced by InitializeMenu(), and SrvSetConsoleMenuClose().

#define CONSOLE_FORCE_SHUTDOWN_FLAG   8
 

Definition at line 279 of file server.h.

Referenced by ProcessCtrlEvents(), and UnlockConsole().

#define CONSOLE_FREE_HANDLE   0
 

Definition at line 295 of file server.h.

Referenced by AllocateIoHandle(), ConsoleAddProcessRoutine(), DereferenceIoHandle(), DereferenceIoHandleNoCheck(), FreeIoHandle(), GrowIoHandleTable(), InheritIoHandleTable(), InitializeIoHandleTable(), and RemoveConsole().

#define CONSOLE_FROMPROCESSPERPROCESSDATA pcsrprocess   )     ((pcsrprocess)->ServerDllPerProcessData[CONSRV_SERVERDLL_INDEX])
 

Definition at line 389 of file server.h.

Referenced by ConsoleAddProcessRoutine(), ConsoleClientConnectRoutine(), ConsoleClientDisconnectRoutine(), and ConsoleClientShutdown().

#define CONSOLE_FROMPROCESSPROCESSHANDLE pcsrprocess   )     ((pcsrprocess)->ProcessHandle)
 

Definition at line 386 of file server.h.

Referenced by ConsoleClientDisconnectRoutine().

#define CONSOLE_FROMTHREADPERPROCESSDATA pcsrthread   )     CONSOLE_FROMPROCESSPERPROCESSDATA((pcsrthread)->Process)
 

Definition at line 392 of file server.h.

Referenced by CookedRead(), CookedReadWaitRoutine(), GetThreadConsoleDesktop(), ProcessCommandListInput(), and WWSB_DoWriteConsole().

#define CONSOLE_FULLSCREEN_NOPAINT   0x00004000
 

Definition at line 99 of file server.h.

Referenced by DisplayModeTransition(), RemoveConsole(), SrvRegisterConsoleVDM(), and SrvVDMConsoleOperation().

 
#define CONSOLE_GETCONSOLEAPP  )     (((PCONSOLE_PER_PROCESS_DATA)CONSOLE_PERPROCESSDATA())->ConsoleApp)
 

Definition at line 398 of file server.h.

#define CONSOLE_GETCONSOLEAPPFROMPROCESSDATA PROCESSDATA   )     ((PROCESSDATA)->ConsoleApp)
 

Definition at line 399 of file server.h.

Referenced by ConsoleClientConnectRoutine(), ConsoleClientShutdown(), SrvAllocConsole(), and SrvFreeConsole().

 
#define CONSOLE_GETCONSOLEHANDLE  )     (((PCONSOLE_PER_PROCESS_DATA)CONSOLE_PERPROCESSDATA())->ConsoleHandle)
 

Definition at line 403 of file server.h.

Referenced by ApiPreamble().

#define CONSOLE_GETCONSOLEHANDLEFROMPROCESSDATA PROCESSDATA   )     ((PROCESSDATA)->ConsoleHandle)
 

Definition at line 405 of file server.h.

Referenced by ConsoleClientShutdown(), and SrvFreeConsole().

#define CONSOLE_GRAPHICS_OUTPUT_HANDLE   4
 

Definition at line 298 of file server.h.

Referenced by FindActiveScreenBufferHandle(), SrvConsoleMenuControl(), SrvCreateConsoleScreenBuffer(), SrvInvalidateBitMapRect(), SrvSetConsoleActiveScreenBuffer(), SrvSetConsoleCursor(), SrvSetConsoleDisplayMode(), SrvSetConsolePalette(), and SrvShowConsoleCursor().

#define CONSOLE_HANDLE_ALLOCATED   1
 

Definition at line 337 of file server.h.

Referenced by AllocateConsoleHandle().

#define CONSOLE_HAS_FOCUS   0x00000004
 

Definition at line 87 of file server.h.

Referenced by AddProcessToList(), ConnectToEmulator(), ConsoleClientConnectRoutine(), ConsoleWindowProc(), CursorTimerRoutine(), HandleMouseEvent(), SetCursorPosition(), SrvAllocConsole(), SrvRegisterConsoleVDM(), SrvSetConsoleKeyShortcuts(), and UnregisterVDM().

#define CONSOLE_HISTORY_NODUP   0x00100000
 

Definition at line 105 of file server.h.

Referenced by CookedRead(), DoCreateScreenBuffer(), PropertiesDlgShow(), and PropertiesUpdate().

#define CONSOLE_IGNORE_NEXT_KEYUP   0x00020000
 

Definition at line 102 of file server.h.

Referenced by CookedRead(), and HandleKeyEvent().

#define CONSOLE_IGNORE_NEXT_MOUSE_INPUT   0x00000008
 

Definition at line 88 of file server.h.

Referenced by ConsoleWindowProc(), and HandleMouseEvent().

#define CONSOLE_IN_DESTRUCTION   0x00400000
 

Definition at line 107 of file server.h.

Referenced by DestroyConsole(), ProcessCtrlEvents(), and RevalidateConsole().

#define CONSOLE_INHERITABLE   8
 

Definition at line 299 of file server.h.

Referenced by InheritIoHandleTable(), InitializeIoHandleTable(), SrvCreateConsoleScreenBuffer(), SrvDuplicateHandle(), SrvGetHandleInformation(), SrvOpenConsole(), and SrvSetHandleInformation().

#define CONSOLE_INITIAL_CONSOLES   10
 

Definition at line 335 of file server.h.

#define CONSOLE_INITIAL_IO_HANDLES   3
 

Definition at line 292 of file server.h.

Referenced by ConsoleAddProcessRoutine(), FreeProcessData(), GrowIoHandleTable(), InheritIoHandleTable(), and InitializeIoHandleTable().

#define CONSOLE_IO_HANDLE_INCREMENT   3
 

Definition at line 293 of file server.h.

Referenced by GrowIoHandleTable().

#define CONSOLE_IS_ICONIC   0x00000001
 

Definition at line 85 of file server.h.

Referenced by ConsoleHideCursor(), ConsoleWindowProc(), CreateWindowsWindow(), InitializeMenu(), ScrollRegion(), ScrollScreen(), SetActiveScreenBuffer(), SetWindowOrigin(), SrvSetConsolePalette(), StreamScrollRegion(), UpdateWindowSize(), WWSB_DoWriteConsole(), and WWSB_WriteToScreen().

#define CONSOLE_MAX_APP_SHORTCUTS   1
 

Definition at line 446 of file server.h.

Referenced by SrvSetConsoleKeyShortcuts().

#define CONSOLE_MOUSE_DOWN   4
 

Definition at line 125 of file server.h.

Referenced by ConvertToMouseSelect(), HandleKeyEvent(), HandleMouseEvent(), and ScrollIfNecessary().

#define CONSOLE_MOUSE_SELECTION   2
 

Definition at line 124 of file server.h.

Referenced by ClearSelection(), ConvertToMouseSelect(), DoSelectAll(), ExtendSelection(), FindDialogProc(), HandleKeyEvent(), HandleMouseEvent(), and InitSelection().

#define CONSOLE_NO_SELECTION   0
 

Definition at line 122 of file server.h.

#define CONSOLE_NO_WINDOW   0x00000100
 

Definition at line 93 of file server.h.

Referenced by AllocateConsole(), ConsoleClientShutdown(), ConsoleWindowProc(), CreateWindowsWindow(), DestroyWindowsWindow(), DoCreateScreenBuffer(), ScrollScreen(), SetWindowOrigin(), SrvVDMConsoleOperation(), StreamScrollRegion(), and WWSB_WriteToScreen().

#define CONSOLE_NOTIFY_LAST_CLOSE   0x00000080
 

Definition at line 92 of file server.h.

Referenced by RemoveConsole(), and SrvConsoleNotifyLastClose().

#define CONSOLE_OUTPUT_SUSPENDED   0x00000002
 

Definition at line 86 of file server.h.

Referenced by PreprocessInput().

 
#define CONSOLE_PERPROCESSDATA  )     CONSOLE_FROMTHREADPERPROCESSDATA(CSR_SERVER_QUERYCLIENTTHREAD())
 

Definition at line 395 of file server.h.

Referenced by SrvAllocConsole(), SrvCloseHandle(), SrvConsoleMenuControl(), SrvCreateConsoleScreenBuffer(), SrvDuplicateHandle(), SrvFillConsoleOutput(), SrvFlushConsoleInputBuffer(), SrvFreeConsole(), SrvGetConsoleCurrentFont(), SrvGetConsoleCursorInfo(), SrvGetConsoleFontInfo(), SrvGetConsoleFontSize(), SrvGetConsoleHardwareState(), SrvGetConsoleInput(), SrvGetConsoleMode(), SrvGetConsoleNumberOfInputEvents(), SrvGetConsoleScreenBufferInfo(), SrvGetHandleInformation(), SrvGetLargestConsoleWindowSize(), SrvInvalidateBitMapRect(), SrvOpenConsole(), SrvReadConsole(), SrvReadConsoleOutput(), SrvReadConsoleOutputString(), SrvScrollConsoleScreenBuffer(), SrvSetConsoleActiveScreenBuffer(), SrvSetConsoleCursor(), SrvSetConsoleCursorInfo(), SrvSetConsoleCursorPosition(), SrvSetConsoleDisplayMode(), SrvSetConsoleFont(), SrvSetConsoleHardwareState(), SrvSetConsoleMode(), SrvSetConsolePalette(), SrvSetConsoleScreenBufferSize(), SrvSetConsoleTextAttribute(), SrvSetConsoleWindowInfo(), SrvSetHandleInformation(), SrvShowConsoleCursor(), SrvVerifyConsoleIoHandle(), SrvWriteConsole(), SrvWriteConsoleInput(), SrvWriteConsoleOutput(), and SrvWriteConsoleOutputString().

#define CONSOLE_QUICK_EDIT_MODE   0x00000800
 

Definition at line 96 of file server.h.

Referenced by DoCreateScreenBuffer(), HandleMouseEvent(), PropertiesDlgShow(), PropertiesUpdate(), SrvGetConsoleMode(), and SrvSetConsoleMode().

#define CONSOLE_SCROLLBAR_TRACKING   0x00200000
 

Definition at line 106 of file server.h.

Referenced by HandleKeyEvent(), UnblockWriteConsole(), VerticalScroll(), and WWSB_DoWriteConsole().

#define CONSOLE_SCROLLING   0x00000020
 

Definition at line 90 of file server.h.

Referenced by ClearScroll(), DoPaste(), DoScroll(), HandleKeyEvent(), and InitializeMenu().

#define CONSOLE_SELECTING   0x00000010
 

Definition at line 89 of file server.h.

Referenced by CancelKeySelection(), CancelMouseSelection(), ClearSelection(), DoSelectAll(), FindDialogProc(), HandleKeyEvent(), HandleMouseEvent(), InitializeMenu(), InitSelection(), InvertSelection(), ScrollIfNecessary(), SearchForString(), UnblockWriteConsole(), and WWSB_DoWriteConsole().

#define CONSOLE_SELECTION_INVERTED   8
 

Definition at line 126 of file server.h.

Referenced by InvertSelection().

#define CONSOLE_SELECTION_NOT_EMPTY   1
 

Definition at line 123 of file server.h.

Referenced by CancelKeySelection(), ConvertToMouseSelect(), DoSelectAll(), ExtendSelection(), FindDialogProc(), HandleKeyEvent(), HandleMouseEvent(), InitializeMenu(), InvertSelection(), and StoreSelection().

#define CONSOLE_SETCONSOLEAPP VALUE   )     (((PCONSOLE_PER_PROCESS_DATA)CONSOLE_PERPROCESSDATA())->ConsoleApp = VALUE)
 

Definition at line 400 of file server.h.

Referenced by SrvAllocConsole(), and SrvFreeConsole().

#define CONSOLE_SETCONSOLEAPPFROMPROCESSDATA PROCESSDATA,
VALUE   )     ((PROCESSDATA)->ConsoleApp = VALUE)
 

Definition at line 401 of file server.h.

Referenced by ConsoleAddProcessRoutine(), ConsoleClientConnectRoutine(), and ConsoleClientDisconnectRoutine().

#define CONSOLE_SETCONSOLEHANDLE VALUE   )     (((PCONSOLE_PER_PROCESS_DATA)CONSOLE_PERPROCESSDATA())->ConsoleHandle = VALUE)
 

Definition at line 404 of file server.h.

Referenced by SetUpConsole().

#define CONSOLE_SETCONSOLEHANDLEFROMPROCESSDATA PROCESSDATA,
VALUE   )     ((PROCESSDATA)->ConsoleHandle = VALUE)
 

Definition at line 406 of file server.h.

#define CONSOLE_SETTING_WINDOW_SIZE   0x00800000
 

Definition at line 108 of file server.h.

Referenced by InternalSetWindowSize(), and SetWindowSize().

#define CONSOLE_SHUTTING_DOWN   0x00008000
 

Definition at line 100 of file server.h.

Referenced by AddProcessToList(), ConsoleAddProcessRoutine(), ConsoleClientConnectRoutine(), InheritIoHandleTable(), SrvAllocConsole(), and UnlockConsole().

#define CONSOLE_STATUS_READ_COMPLETE   ((NTSTATUS)0xC0030002L)
 

Definition at line 351 of file server.h.

Referenced by CookedRead(), CookedReadWaitRoutine(), and ProcessCommandListInput().

#define CONSOLE_STATUS_WAIT   ((NTSTATUS)0xC0030001L)
 

Definition at line 350 of file server.h.

Referenced by CookedRead(), CookedReadWaitRoutine(), DirectReadWaitRoutine(), ProcessCommandListInput(), ProcessCommandNumberInput(), ProcessCopyFromCharInput(), ProcessCopyToCharInput(), RawReadWaitRoutine(), ReadChars(), ReadInputBuffer(), SrvGetConsoleInput(), SrvReadConsole(), WaitForMoreToRead(), WriteConsoleWaitRoutine(), WWSB_DoSrvWriteConsole(), and WWSB_DoWriteConsole().

#define CONSOLE_STATUS_WAIT_NO_BLOCK   ((NTSTATUS)0xC0030003L)
 

Definition at line 352 of file server.h.

Referenced by CookedRead(), CookedReadWaitRoutine(), ProcessCommandListInput(), ProcessCommandNumberInput(), ProcessCopyFromCharInput(), and ProcessCopyToCharInput().

#define CONSOLE_SUSPENDED   (CONSOLE_OUTPUT_SUSPENDED)
 

Definition at line 118 of file server.h.

Referenced by HandleKeyEvent(), PreprocessInput(), UnblockWriteConsole(), and WWSB_DoWriteConsole().

#define CONSOLE_TERMINATING   0x00001000
 

Definition at line 97 of file server.h.

Referenced by AddProcessToList(), ApiPreamble(), ConsoleWindowProc(), DereferenceConsoleHandle(), FreeCon(), ProcessCtrlEvents(), and RevalidateConsole().

#define CONSOLE_UPDATING_SCROLL_BARS   0x00000400
 

Definition at line 95 of file server.h.

Referenced by InternalUpdateScrollBars(), and UpdateScrollBars().

#define CONSOLE_USE_PRIVATE_FLAGS   0x00080000
 

Definition at line 104 of file server.h.

Referenced by DoCreateScreenBuffer(), SrvGetConsoleMode(), and SrvSetConsoleMode().

#define CONSOLE_VDM_REGISTERED   0x00000200
 

Definition at line 94 of file server.h.

Referenced by DestroyWindowsWindow(), DisplayModeTransition(), FE_WriteRegionToScreenHW(), HandleFocusEvent(), HandleKeyEvent(), PropertiesUpdate(), RemoveConsole(), SetActiveScreenBuffer(), SetCursorInformation(), SetCursorMode(), SetCursorPosition(), SrvRegisterConsoleVDM(), SrvSetConsoleWindowInfo(), SrvVDMConsoleOperation(), StoreSelection(), UnregisterVDM(), WWSB_PolyTextOutCandidate(), and WWSB_WriteRegionToScreen().

#define CONSOLE_WINDOW_CLASS   (L"ConsoleWindowClass")
 

Definition at line 444 of file server.h.

Referenced by CreateWindowsWindow(), and InitWindowClass().

#define CONSOLE_WOW_REGISTERED   0x00040000
 

Definition at line 103 of file server.h.

Referenced by ConsoleClientShutdown(), ConsoleWindowProc(), SrvRegisterConsoleVDM(), and UnregisterVDM().

#define ConsoleLocked CONSOLEPTR   )     (((CONSOLEPTR)->ConsoleLock.OwningThread) == NtCurrentTeb()->ClientId.UniqueThread)
 

Definition at line 348 of file server.h.

Referenced by CookedReadWaitRoutine(), DestroyConsole(), DirectReadWaitRoutine(), QueueConsoleMessage(), RawReadWaitRoutine(), UnqueueConsoleMessage(), and WriteConsoleWaitRoutine().

#define CURSOR_PERCENTAGE_TO_TOP_SCAN_LINE FONTSIZE,
PERCENTAGE   )     ((FONTSIZE) - ((FONTSIZE) * (PERCENTAGE) / 100))
 

Definition at line 346 of file server.h.

#define HANDLE_CLOSING   1
 

Definition at line 306 of file server.h.

Referenced by CloseInputHandle(), CookedReadWaitRoutine(), DirectReadWaitRoutine(), and RawReadWaitRoutine().

#define HANDLE_INPUT_PENDING   2
 

Definition at line 307 of file server.h.

Referenced by CloseInputHandle(), CookedRead(), CookedReadWaitRoutine(), ProcessCommandListInput(), and ReadChars().

#define HANDLE_MULTI_LINE_INPUT   4
 

Definition at line 308 of file server.h.

Referenced by CookedRead(), ProcessCommandListInput(), and ReadChars().

#define HANDLE_TO_INDEX CONHANDLE   )     ((HANDLE)((ULONG_PTR)CONHANDLE >> 2))
 

Definition at line 340 of file server.h.

Referenced by DereferenceIoHandle(), SrvCloseHandle(), SrvDuplicateHandle(), SrvGetConsoleInput(), SrvGetHandleInformation(), SrvReadConsole(), SrvSetHandleInformation(), and SrvVerifyConsoleIoHandle().

#define INDEX_TO_HANDLE INDEX   )     ((HANDLE)(((ULONG_PTR)INDEX << 2) | CONSOLE_HANDLE_SIGNATURE))
 

Definition at line 339 of file server.h.

Referenced by InitializeIoHandleTable(), SrvCreateConsoleScreenBuffer(), SrvDuplicateHandle(), and SrvOpenConsole().

#define INPUT_MODES   (ENABLE_LINE_INPUT | ENABLE_PROCESSED_INPUT | ENABLE_ECHO_INPUT | ENABLE_WINDOW_INPUT | ENABLE_MOUSE_INPUT)
 

Definition at line 342 of file server.h.

Referenced by SrvSetConsoleMode().

#define LINK_PROP_MAIN_SIG   0x00000001
 

Definition at line 474 of file server.h.

#define LINK_PROP_NT_CONSOLE_SIG   0x00000002
 

Definition at line 475 of file server.h.

#define OUTPUT_MODES   (ENABLE_PROCESSED_OUTPUT | ENABLE_WRAP_AT_EOL_OUTPUT)
 

Definition at line 343 of file server.h.

Referenced by SrvSetConsoleMode().

#define PRIVATE_MODES   (ENABLE_INSERT_MODE | ENABLE_QUICK_EDIT_MODE | ENABLE_PRIVATE_FLAGS)
 

Definition at line 344 of file server.h.

Referenced by SrvSetConsoleMode().

#define REMOVE_SCROLL_BARS_X   0x2
 

Definition at line 284 of file server.h.

#define REMOVE_SCROLL_BARS_Y   0x8
 

Definition at line 286 of file server.h.

#define RESIZE_SCROLL_BARS   0x10
 

Definition at line 287 of file server.h.

Referenced by ProcessResizeWindow().

#define SCREEN_BUFFER_CHANGE   0x40
 

Definition at line 290 of file server.h.

Referenced by ConsoleWindowProc(), ProcessResizeWindow(), and UpdateWindowSize().

#define SCROLL_BAR_CHANGE   (ADD_SCROLL_BARS_X | REMOVE_SCROLL_BARS_X | ADD_SCROLL_BARS_Y | REMOVE_SCROLL_BARS_Y | RESIZE_SCROLL_BARS)
 

Definition at line 288 of file server.h.

Referenced by ConsoleWindowProc().

#define STACK_BUFFER_SIZE   132
 

Definition at line 467 of file server.h.

Referenced by ConvertOutputToOem(), ConvertOutputToUnicode(), FalseUnicodeToRealUnicode(), RealUnicodeToFalseUnicode(), and WWSB_DoSrvWriteConsole().


Typedef Documentation

typedef struct _CONSOLE_INFORMATION CONSOLE_INFORMATION
 

Referenced by dc().

typedef struct _CONSOLE_MSG CONSOLE_MSG
 

Referenced by QueueConsoleMessage().

typedef struct _CONSOLE_PER_PROCESS_DATA CONSOLE_PER_PROCESS_DATA
 

typedef struct _CONSOLE_PROCESS_HANDLE CONSOLE_PROCESS_HANDLE
 

Referenced by SrvGenerateConsoleCtrlEvent().

typedef struct _CONSOLE_PROCESS_TERMINATION_RECORD CONSOLE_PROCESS_TERMINATION_RECORD
 

Referenced by ProcessCtrlEvents().

typedef struct _CONSOLE_REGISTRY_INFO CONSOLE_REGISTRY_INFO
 

typedef struct _CONSOLE_SHARE_ACCESS CONSOLE_SHARE_ACCESS
 

typedef struct _CONSOLE_THREAD_MSG CONSOLE_THREAD_MSG
 

Referenced by UnqueueThreadMessage().

typedef struct _HANDLE_DATA HANDLE_DATA
 

Referenced by GrowIoHandleTable(), and InheritIoHandleTable().

typedef struct _INPUT_THREAD_INFO INPUT_THREAD_INFO
 

Referenced by ConsoleInputThread().

typedef struct _INPUT_THREAD_INIT_INFO INPUT_THREAD_INIT_INFO
 

typedef * LPLNKPROPNTCONSOLE
 

Referenced by GetLinkProperties().

typedef struct _CONSOLE_INFORMATION * PCONSOLE_INFORMATION
 

Referenced by GrowConsoleHandleTable(), and WWSB_WriteRegionToScreen().

typedef struct _CONSOLE_MSG * PCONSOLE_MSG
 

Referenced by QueueConsoleMessage().

typedef struct _CONSOLE_PER_PROCESS_DATA * PCONSOLE_PER_PROCESS_DATA
 

Referenced by GetThreadConsoleDesktop().

typedef struct _CONSOLE_PROCESS_HANDLE * PCONSOLE_PROCESS_HANDLE
 

Referenced by SrvGenerateConsoleCtrlEvent().

typedef struct _CONSOLE_PROCESS_TERMINATION_RECORD * PCONSOLE_PROCESS_TERMINATION_RECORD
 

typedef struct _CONSOLE_REGISTRY_INFO * PCONSOLE_REGISTRY_INFO
 

typedef struct _CONSOLE_SHARE_ACCESS * PCONSOLE_SHARE_ACCESS
 

typedef struct _CONSOLE_THREAD_MSG * PCONSOLE_THREAD_MSG
 

Referenced by QueueThreadMessage().

typedef struct _HANDLE_DATA * PHANDLE_DATA
 

Referenced by WWSB_DoWriteConsole().

typedef struct _INPUT_THREAD_INFO * PINPUT_THREAD_INFO
 

typedef struct _INPUT_THREAD_INIT_INFO * PINPUT_THREAD_INIT_INFO
 


Generated on Sat May 15 19:45:37 2004 for test by doxygen 1.3.7