Adding Art Yerkes Keyboard Testing Code

svn path=/trunk/; revision=5321
This commit is contained in:
James Tabor 2003-07-29 20:38:30 +00:00
parent d818b09a8c
commit 132dc80b26
3 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1,29 @@
/* $Id: consw.c,v 1.1 2003/07/29 20:38:30 jimtabor Exp $
*
* DESCRIPTION: Console mode switcher
* PROGRAMMER: Art Yerkes
* REVISIONS
* 2003-07-26 (arty)
*/
#include <windows.h>
#include <stdarg.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
void STDCALL SetConsoleHardwareState( HANDLE conhandle,
DWORD flags,
DWORD state );
int main(int argc, char* argv[])
{
if( argc > 1 ) {
SetConsoleHardwareState( GetStdHandle( STD_INPUT_HANDLE ),
0,
!strcmp( argv[1], "hw" ) );
}
}
/* EOF */

View file

@ -0,0 +1,21 @@
# $Id: makefile,v 1.1 2003/07/29 20:38:30 jimtabor Exp $
PATH_TO_TOP = ../../..
TARGET_NORC = yes
TARGET_TYPE = program
TARGET_APPTYPE = console
TARGET_NAME = consw
TARGET_SDKLIBS = ntdll.a kernel32.a
TARGET_OBJECTS = $(TARGET_NAME).o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
# EOF

View file

@ -0,0 +1,5 @@
@echo off
rem Turn off cosole, run a program, turn console on
\reactos\bin\consw sw
"%1" "%2" "%3" "%4" "%5" "%6" "%7" "%8" "%9"
\reactos\bin\consw hw