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

input.h File Reference

Go to the source code of this file.

Classes

struct  _INPUT_INFORMATION
struct  _INPUT_READ_HANDLE_DATA

Defines

#define DEFAULT_NUMBER_OF_EVENTS   50
#define INPUT_BUFFER_SIZE_INCREMENT   10
#define UNICODE_BACKSPACE   ((WCHAR)0x08)
#define UNICODE_BACKSPACE2   ((WCHAR)0x25d8)
#define UNICODE_CARRIAGERETURN   ((WCHAR)0x0d)
#define UNICODE_LINEFEED   ((WCHAR)0x0a)
#define UNICODE_BELL   ((WCHAR)0x07)
#define UNICODE_TAB   ((WCHAR)0x09)
#define UNICODE_SPACE   ((WCHAR)0x20)
#define TAB_SIZE   8
#define TAB_MASK   (TAB_SIZE-1)
#define NUMBER_OF_SPACES_IN_TAB(POSITION)   (TAB_SIZE - ((POSITION) & TAB_MASK))
#define AT_EOL(COOKEDREADDATA)   ((COOKEDREADDATA)->BytesRead == ((COOKEDREADDATA)->CurrentPosition*2))
#define INSERT_MODE(COOKEDREADDATA)   ((COOKEDREADDATA)->InsertMode)
#define VIRTUAL_KEY_CODE_S   0x53
#define VIRTUAL_KEY_CODE_C   0x43
#define VK_OEM_SCROLL   0x91
#define KEY_PRESSED   0x8000
#define KEY_TOGGLED   0x01
#define KEY_ENHANCED   0x01000000
#define KEY_UP_TRANSITION   1
#define KEY_PREVIOUS_DOWN   0x40000000
#define KEY_TRANSITION_UP   0x80000000
#define CONSOLE_CTRL_C_SEEN   1
#define CONSOLE_CTRL_BREAK_SEEN   2
#define LockReadCount(HANDLEPTR)   RtlEnterCriticalSection(&(HANDLEPTR)->InputReadData->ReadCountLock)
#define UnlockReadCount(HANDLEPTR)   RtlLeaveCriticalSection(&(HANDLEPTR)->InputReadData->ReadCountLock)
#define LoadKeyEvent(PEVENT, KEYDOWN, CHAR, KEYCODE, SCANCODE, KEYSTATE)

Typedefs

typedef _INPUT_INFORMATION INPUT_INFORMATION
typedef _INPUT_INFORMATIONPINPUT_INFORMATION
typedef _INPUT_READ_HANDLE_DATA INPUT_READ_HANDLE_DATA
typedef _INPUT_READ_HANDLE_DATAPINPUT_READ_HANDLE_DATA


Define Documentation

#define AT_EOL COOKEDREADDATA   )     ((COOKEDREADDATA)->BytesRead == ((COOKEDREADDATA)->CurrentPosition*2))
 

Definition at line 94 of file input.h.

Referenced by ProcessCommandLine(), and ProcessCookedReadInput().

#define CONSOLE_CTRL_BREAK_SEEN   2
 

Definition at line 110 of file input.h.

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

#define CONSOLE_CTRL_C_SEEN   1
 

Definition at line 109 of file input.h.

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

#define DEFAULT_NUMBER_OF_EVENTS   50
 

Definition at line 22 of file input.h.

Referenced by CreateInputBuffer().

#define INPUT_BUFFER_SIZE_INCREMENT   10
 

Definition at line 23 of file input.h.

Referenced by WriteBuffer().

#define INSERT_MODE COOKEDREADDATA   )     ((COOKEDREADDATA)->InsertMode)
 

Definition at line 95 of file input.h.

Referenced by ProcessCookedReadInput().

#define KEY_ENHANCED   0x01000000
 

Definition at line 104 of file input.h.

Referenced by GetControlKeyState().

#define KEY_PRESSED   0x8000
 

Definition at line 102 of file input.h.

Referenced by ConsoleWindowProc(), GetControlKeyState(), HandleKeyEvent(), HandleMouseEvent(), HandleSysKeyEvent(), and StoreSelection().

#define KEY_PREVIOUS_DOWN   0x40000000
 

Definition at line 106 of file input.h.

#define KEY_TOGGLED   0x01
 

Definition at line 103 of file input.h.

#define KEY_TRANSITION_UP   0x80000000
 

Definition at line 107 of file input.h.

Referenced by HandleKeyEvent().

#define KEY_UP_TRANSITION   1
 

Definition at line 105 of file input.h.

Referenced by HandleSysKeyEvent().

#define LoadKeyEvent PEVENT,
KEYDOWN,
CHAR,
KEYCODE,
SCANCODE,
KEYSTATE   ) 
 

Value:

{ \ (PEVENT)->EventType = KEY_EVENT; \ (PEVENT)->Event.KeyEvent.bKeyDown = KEYDOWN; \ (PEVENT)->Event.KeyEvent.wRepeatCount = 1; \ (PEVENT)->Event.KeyEvent.uChar.UnicodeChar = CHAR; \ (PEVENT)->Event.KeyEvent.wVirtualKeyCode = KEYCODE; \ (PEVENT)->Event.KeyEvent.wVirtualScanCode = SCANCODE; \ (PEVENT)->Event.KeyEvent.dwControlKeyState = KEYSTATE; \ }

Definition at line 115 of file input.h.

Referenced by DoStringPaste().

#define LockReadCount HANDLEPTR   )     RtlEnterCriticalSection(&(HANDLEPTR)->InputReadData->ReadCountLock)
 

Definition at line 112 of file input.h.

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

#define NUMBER_OF_SPACES_IN_TAB POSITION   )     (TAB_SIZE - ((POSITION) & TAB_MASK))
 

Definition at line 92 of file input.h.

Referenced by RetrieveNumberOfSpaces(), RetrieveTotalNumberOfSpaces(), and WWSB_WriteChars().

#define TAB_MASK   (TAB_SIZE-1)
 

Definition at line 91 of file input.h.

#define TAB_SIZE   8
 

Definition at line 90 of file input.h.

Referenced by WWSB_WriteChars().

#define UNICODE_BACKSPACE   ((WCHAR)0x08)
 

Definition at line 82 of file input.h.

#define UNICODE_BACKSPACE2   ((WCHAR)0x25d8)
 

Definition at line 83 of file input.h.

#define UNICODE_BELL   ((WCHAR)0x07)
 

Definition at line 86 of file input.h.

#define UNICODE_CARRIAGERETURN   ((WCHAR)0x0d)
 

Definition at line 84 of file input.h.

#define UNICODE_LINEFEED   ((WCHAR)0x0a)
 

Definition at line 85 of file input.h.

#define UNICODE_SPACE   ((WCHAR)0x20)
 

Definition at line 88 of file input.h.

#define UNICODE_TAB   ((WCHAR)0x09)
 

Definition at line 87 of file input.h.

#define UnlockReadCount HANDLEPTR   )     RtlLeaveCriticalSection(&(HANDLEPTR)->InputReadData->ReadCountLock)
 

Definition at line 113 of file input.h.

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

#define VIRTUAL_KEY_CODE_C   0x43
 

Definition at line 98 of file input.h.

#define VIRTUAL_KEY_CODE_S   0x53
 

Definition at line 97 of file input.h.

#define VK_OEM_SCROLL   0x91
 

Definition at line 100 of file input.h.

Referenced by GetControlKeyState().


Typedef Documentation

typedef struct _INPUT_INFORMATION INPUT_INFORMATION
 

typedef struct _INPUT_READ_HANDLE_DATA INPUT_READ_HANDLE_DATA
 

Referenced by InheritIoHandleTable().

typedef struct _INPUT_INFORMATION * PINPUT_INFORMATION
 

typedef struct _INPUT_READ_HANDLE_DATA * PINPUT_READ_HANDLE_DATA
 


Generated on Sat May 15 19:44:13 2004 for test by doxygen 1.3.7