source: trunk/src/kernel32/conout.h@ 7029

Last change on this file since 7029 was 4407, checked in by sandervl, 25 years ago

misc updates + fixes

File size: 3.6 KB
Line 
1/* $Id: conout.h,v 1.2 2000-10-03 17:28:29 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_OUT_H_
10#define _CONSOLE_OUT_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
34/*****************************************************************************
35 * ConsoleOutput - redirects requests to the currently active buffer *
36 *****************************************************************************/
37
38class HMDeviceConsoleOutClass : public HMDeviceHandler
39{
40 protected:
41 HANDLE hConsoleBuffer; /* handle to the active console buffer */
42 PICONSOLEINPUT pConsoleInput; /* pointer to console input area */
43 PICONSOLEGLOBALS pConsoleGlobals; /* pointer to console global area */
44
45 public:
46 HMDeviceConsoleOutClass(LPCSTR lpDeviceName,
47 PICONSOLEINPUT piConsoleInput,
48 PICONSOLEGLOBALS piConsoleGlobals)
49 : HMDeviceHandler(lpDeviceName)
50 {
51 pConsoleInput = piConsoleInput; // save pointers to this data
52 pConsoleGlobals = piConsoleGlobals;
53 }
54
55 /* this is a handler method for calls to CreateFile() */
56 virtual DWORD CreateFile (LPCSTR lpFileName,
57 PHMHANDLEDATA pHMHandleData,
58 PVOID lpSecurityAttributes,
59 PHMHANDLEDATA pHMHandleDataTemplate);
60
61 /* this is a handler method for calls to ReadFile() */
62 virtual BOOL ReadFile (PHMHANDLEDATA pHMHandleData,
63 LPCVOID lpBuffer,
64 DWORD nNumberOfBytesToRead,
65 LPDWORD lpNumberOfBytesRead,
66 LPOVERLAPPED lpOverlapped);
67
68 /* this is a handler method for calls to WriteFile() */
69 virtual BOOL WriteFile (PHMHANDLEDATA pHMHandleData,
70 LPCVOID lpBuffer,
71 DWORD nNumberOfBytesToWrite,
72 LPDWORD lpNumberOfBytesWritten,
73 LPOVERLAPPED lpOverlapped);
74
75
76 /* handling non-standard I/O */
77 virtual DWORD _DeviceRequest (PHMHANDLEDATA pHMHandleData,
78 ULONG ulRequestCode,
79 ULONG arg1,
80 ULONG arg2,
81 ULONG arg3,
82 ULONG arg4);
83
84 /* this is a handler method for calls to GetFileType() */
85 virtual DWORD GetFileType (PHMHANDLEDATA pHMHandleData);
86
87};
88
89#endif /* _CONSOLE_OUT_H_ */
90
Note: See TracBrowser for help on using the repository browser.