| 1 | /* $Id: conbuffervio.h,v 1.2 2001-12-05 14:15:57 sandervl Exp $ */ | 
|---|
| 2 |  | 
|---|
| 3 | /* | 
|---|
| 4 | * Project Odin Software License can be found in LICENSE.TXT | 
|---|
| 5 | * Win32 Console Subsystem for OS/2 | 
|---|
| 6 | * 1998/02/11 PH Patrick Haller (haller@zebra.fh-weingarten.de) | 
|---|
| 7 | */ | 
|---|
| 8 |  | 
|---|
| 9 | #ifndef _CONSOLE_BUFFERVIO_H_ | 
|---|
| 10 | #define _CONSOLE_BUFFERVIO_H_ | 
|---|
| 11 |  | 
|---|
| 12 |  | 
|---|
| 13 | /***************************************************************************** | 
|---|
| 14 | * Remark                                                                    * | 
|---|
| 15 | ***************************************************************************** | 
|---|
| 16 |  | 
|---|
| 17 | */ | 
|---|
| 18 |  | 
|---|
| 19 |  | 
|---|
| 20 | /***************************************************************************** | 
|---|
| 21 | * Resources                                                                 * | 
|---|
| 22 | *****************************************************************************/ | 
|---|
| 23 |  | 
|---|
| 24 |  | 
|---|
| 25 | /***************************************************************************** | 
|---|
| 26 | * Includes                                                                  * | 
|---|
| 27 | *****************************************************************************/ | 
|---|
| 28 |  | 
|---|
| 29 | //#include <win32type.h> | 
|---|
| 30 | #include "handlemanager.h" | 
|---|
| 31 | #include "HMDevice.h" | 
|---|
| 32 | #include "console2.h" | 
|---|
| 33 | #include "conbuffer.h" | 
|---|
| 34 |  | 
|---|
| 35 |  | 
|---|
| 36 | /***************************************************************************** | 
|---|
| 37 | * ConsoleBuffer - does all the writing to an internal line buffer array     * | 
|---|
| 38 | *                 if this buffer is the active one, also does a screen updt * | 
|---|
| 39 | *****************************************************************************/ | 
|---|
| 40 |  | 
|---|
| 41 | class HMDeviceConsoleVioBufferClass : public HMDeviceConsoleBufferClass | 
|---|
| 42 | { | 
|---|
| 43 | public: | 
|---|
| 44 | HMDeviceConsoleVioBufferClass(LPCSTR           lpDeviceName, | 
|---|
| 45 | PICONSOLEINPUT   piConsoleInput, | 
|---|
| 46 | PICONSOLEGLOBALS piConsoleGlobals) | 
|---|
| 47 | : HMDeviceConsoleBufferClass(lpDeviceName, piConsoleInput, piConsoleGlobals) | 
|---|
| 48 | { | 
|---|
| 49 | }; | 
|---|
| 50 |  | 
|---|
| 51 | /* this is a handler method for calls to WriteFile() */ | 
|---|
| 52 | virtual BOOL   WriteFile  (PHMHANDLEDATA pHMHandleData, | 
|---|
| 53 | LPCVOID       lpBuffer, | 
|---|
| 54 | DWORD         nNumberOfBytesToWrite, | 
|---|
| 55 | LPDWORD       lpNumberOfBytesWritten, | 
|---|
| 56 | LPOVERLAPPED  lpOverlapped, | 
|---|
| 57 | LPOVERLAPPED_COMPLETION_ROUTINE  lpCompletionRoutine); | 
|---|
| 58 |  | 
|---|
| 59 | }; | 
|---|
| 60 |  | 
|---|
| 61 | #endif /* _CONSOLE_BUFFERVIO_H_ */ | 
|---|
| 62 |  | 
|---|