home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool_main.zip / ool / include / xdevice.h < prev    next >
C/C++ Source or Header  |  1997-08-12  |  1KB  |  27 lines

  1. #ifndef __OOL_XDEVICE_H__
  2. #define __OOL_XDEVICE_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------------- r 1.0 */
  6. /*===========================================================================*/
  7. /*                              class: XDevice                               */
  8. /*                       derived from: XIO                                   */
  9. /*                        last update: 7/96                                  */
  10. /*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
  11. /*===========================================================================*/
  12.  
  13. #include "xio.h"
  14.  
  15.  
  16. class _export_ XDevice: public XIO
  17. {
  18.     public:
  19.         XDevice() { };
  20.         ~XDevice( ) { Close(); }
  21.         ULONG Open( const char * deviceName, const ULONG modeForAcces = XFILE_READWRITE, const ULONG modeShare = XFILE_SHARE_DENYREADWRITE);
  22.         ULONG ControlDevice();
  23.         LONG ResetBuffer( void ) const { return DosResetBuffer(handle); }
  24. };
  25.  
  26. #endif
  27.