26 DWORD RecordIndex = 0;
27 DWORD BufferIndex = 0;
29 DWORD ConsoleInputMode = 0;
79 for (RecordIndex = 0; RecordIndex < NumberRead; RecordIndex++)
82 InputRecord[RecordIndex].
Event.KeyEvent.bKeyDown)
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
BOOL WINAPI GetConsoleMode(HANDLE hConsoleHandle, LPDWORD lpMode)
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleMode(HANDLE hConsoleHandle, DWORD dwMode)
BOOL WINAPI GetNumberOfConsoleInputEvents(HANDLE hConsoleInput, LPDWORD lpNumberOfEvents)
volatile BOOL CriticalSectionInitialized
static CRITICAL_SECTION CriticalSection
_In_ ACCESS_MASK _In_opt_ POBJECT_ATTRIBUTES _In_ EVENT_TYPE EventType
BOOL WINAPI InitializeCriticalSectionAndSpinCount(OUT LPCRITICAL_SECTION lpCriticalSection, IN DWORD dwSpinCount)
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)
#define ENABLE_PROCESSED_INPUT