.ad 8
.bm 8
.fm 4
.bt $Copyright by   Software AG, 1993$$Page %$
.tm 12
.hm 6
.hs 3
.tt 1 $NME$Project Distributed Database System$vos00dsc$
.tt 2 $$$
.tt 3 $R.Roedling$RTE Win32 include module$1995-05-22$
***********************************************************
.nf


    ========== licence begin LGPL
    Copyright (C) 2002 SAP AG

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    ========== licence end

.fo
.nf
.sp
Module  : RTE_Win32_include_module
=========
.sp
Purpose :
.CM *-END-* purpose -------------------------------------
.sp
.cp 3
Define  :

.CM *-END-* define --------------------------------------
.sp;.cp 3
Use     :

.CM *-END-* use -----------------------------------------
.sp;.cp 3
Synonym :

.CM *-END-* synonym -------------------------------------
.sp;.cp 3
Author  : Raphael Molle
.sp
.cp 3
Created : 1993-10-1
.sp
.cp 3
Version : 1994-01-27
.sp
.cp 3
Release :  6.1.1.13 	 Date : 1995-06-14
.br
.sp
***********************************************************
.sp
.cp 10
.fo
.oc _/1
Specification:

.CM *-END-* specification -------------------------------
.sp 2
***********************************************************
.sp
.cp 10
.fo
.oc _/1
Description:

.CM *-END-* description ---------------------------------
.sp 2
***********************************************************
.sp
.cp 10
.nf
.oc _/1
Structure:

.CM *-END-* structure -----------------------------------
.sp 2
**********************************************************
.sp
.cp 10
.nf
.oc _/1
.CM -lll-
Code    :

/*PRETTY*/
#if defined(_WIN32)
 #define IO_WAIT 0
 #define DISPLAY_MONOCHROME 0
 #define MONITOR_MONOCHROME 0

 typedef unsigned short                            APIRET16;
 typedef unsigned short                            HMOU;
 typedef unsigned short                            *PHMOU;
 typedef struct {USHORT cb; USHORT fsMask;}        KBDINFO, *PKBDINFO;
 typedef struct {UCHAR  fsState;
                 UCHAR  chChar;
                 USHORT chScan;}     KBDKEYINFO, *PKBDKEYINFO;
                 // --- Warning: chScan (in KBDKEYINFO) had
                 //     originally been a UCHAR. The change
                 //     to 16 bits is intended!
 typedef struct {USHORT fs;
                 ULONG  time;
                 SHORT  row;
                 SHORT  col; } MOUEVENTINFO, *PMOUEVENTINFO;

 typedef struct {USHORT yStart; USHORT cEnd; USHORT attr;} VIOCURSORINFO;
 typedef VIOCURSORINFO                             *PVIOCURSORINFO;
 typedef struct {USHORT cb; USHORT type; USHORT fs;} VIOINTENSITY;
 typedef struct {PID idpid; ULONG ulData;}         REQUESTDATA;
 typedef struct {USHORT usType;}                   KBDTYPE;
 typedef struct {USHORT cb; USHORT adapter, display;} VIOCONFIGINFO;
 typedef struct {USHORT cb; USHORT col, row;}      VIOMODEINFO;
 typedef struct X_HVIO                             *HVIO, *HVPS;

 // +-------------------------------------------------------+
 // |  FUNCTION PROTOTYPES (and function specific defines)  |
 // +-------------------------------------------------------+
 APIRET16 KbdCharIn(PKBDKEYINFO, USHORT, HANDLE);
 APIRET16 KbdSetStatus(PKBDINFO, HANDLE);
 APIRET16 KbdGetStatus(PKBDINFO, HANDLE);
 APIRET16 VioGetCurType(PVIOCURSORINFO, HVIO);
 APIRET16 VioGetConfig(USHORT, VIOCONFIGINFO*, HVIO);
 APIRET16 VioGetMode(VIOMODEINFO*, HVIO);
 APIRET16 VioGetState(PVOID, HVIO);
 APIRET16 VioSetCurType(PVIOCURSORINFO, HVIO);
 APIRET16 VioSetState(PVOID, HVIO);
 APIRET16 VioSetCurPos(USHORT, USHORT, HVIO);
 APIRET16 VioScrollUp(USHORT, USHORT, USHORT, USHORT, USHORT, PBYTE, HVIO);
 APIRET16 VioWrtCharStrAtt(PBYTE, USHORT, USHORT, USHORT, PBYTE, HVIO);
 APIRET16 VioWrtCellStr(PBYTE, USHORT, USHORT, USHORT, HVIO);
#endif


.CM *-END-* code ----------------------------------------
.SP 2
***********************************************************
.PA
