| 1 | /***
 | 
|---|
| 2 |  This file belongs to the Gotcha! distribution.
 | 
|---|
| 3 |  Copyright (C) 1998-2002 Thorsten Thielen <thth@c2226.de>
 | 
|---|
| 4 | 
 | 
|---|
| 5 |  This program is free software; you can redistribute it and/or modify
 | 
|---|
| 6 |  it under the terms of the GNU General Public License as published by
 | 
|---|
| 7 |  the Free Software Foundation; either version 2 of the License, or
 | 
|---|
| 8 |  (at your option) any later version.
 | 
|---|
| 9 | 
 | 
|---|
| 10 |  This program is distributed in the hope that it will be useful,
 | 
|---|
| 11 |  but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
|---|
| 12 |  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
|---|
| 13 |  GNU General Public License for more details.
 | 
|---|
| 14 | 
 | 
|---|
| 15 |  You should have received a copy of the GNU General Public License
 | 
|---|
| 16 |  along with this program; if not, write to the Free Software
 | 
|---|
| 17 |  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 | 
|---|
| 18 |  ***/
 | 
|---|
| 19 | 
 | 
|---|
| 20 | #ifndef _thth_MMIO_H_
 | 
|---|
| 21 | #define _thth_MMIO_H_
 | 
|---|
| 22 | 
 | 
|---|
| 23 | #define INCL_DOS
 | 
|---|
| 24 | #define INCL_DOSERRORS
 | 
|---|
| 25 | #define INCL_DOSMODULEMGR
 | 
|---|
| 26 | 
 | 
|---|
| 27 | #define OS2EMX_PLAIN_CHAR
 | 
|---|
| 28 | 
 | 
|---|
| 29 | #include <os2.h>
 | 
|---|
| 30 | #include "mmioos2.h"
 | 
|---|
| 31 | 
 | 
|---|
| 32 | // ** defines & stuff *****************************************************
 | 
|---|
| 33 | 
 | 
|---|
| 34 | #define PSZ_DLLNAME          "MMIO"
 | 
|---|
| 35 | 
 | 
|---|
| 36 | // ** classdef ************************************************************
 | 
|---|
| 37 | 
 | 
|---|
| 38 | class thth_MMIO
 | 
|---|
| 39 | {
 | 
|---|
| 40 | public:
 | 
|---|
| 41 |     thth_MMIO( VOID );
 | 
|---|
| 42 | 
 | 
|---|
| 43 |     BOOL   IsValid( VOID );
 | 
|---|
| 44 | 
 | 
|---|
| 45 |     PFN pfmmioGetFormats;
 | 
|---|
| 46 |     PFN pfmmioOpen;
 | 
|---|
| 47 |     PFN pfmmioQueryHeaderLength;
 | 
|---|
| 48 |     PFN pfmmioClose;
 | 
|---|
| 49 |     PFN pfmmioSetHeader;
 | 
|---|
| 50 |     PFN pfmmioWrite;
 | 
|---|
| 51 | 
 | 
|---|
| 52 |     APIRET rc;
 | 
|---|
| 53 |     USHORT step;
 | 
|---|
| 54 | 
 | 
|---|
| 55 | private:
 | 
|---|
| 56 |     HMODULE  handleDLL;
 | 
|---|
| 57 | 
 | 
|---|
| 58 |     LONG     ModuleProcNr;
 | 
|---|
| 59 | };
 | 
|---|
| 60 | 
 | 
|---|
| 61 | // ** inline funcs ********************************************************
 | 
|---|
| 62 | 
 | 
|---|
| 63 | inline BOOL thth_MMIO::IsValid( VOID )
 | 
|---|
| 64 | {
 | 
|---|
| 65 |     if( handleDLL ) return TRUE;
 | 
|---|
| 66 |     return FALSE;
 | 
|---|
| 67 | }
 | 
|---|
| 68 | 
 | 
|---|
| 69 | // ************************************************************************
 | 
|---|
| 70 | #endif
 | 
|---|