mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Adding Art Yerkes Keyboard Testing Code
svn path=/trunk/; revision=5321
This commit is contained in:
parent
d818b09a8c
commit
132dc80b26
3 changed files with 55 additions and 0 deletions
29
reactos/apps/utils/consw/consw.c
Normal file
29
reactos/apps/utils/consw/consw.c
Normal 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 */
|
21
reactos/apps/utils/consw/makefile
Normal file
21
reactos/apps/utils/consw/makefile
Normal 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
|
5
reactos/apps/utils/consw/runprg.bat
Normal file
5
reactos/apps/utils/consw/runprg.bat
Normal 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
|
Loading…
Reference in a new issue