home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / famapi.zip / INCLUDE.ZIP / BIOS.H < prev    next >
C/C++ Source or Header  |  1993-06-13  |  1KB  |  47 lines

  1. //
  2. //      **************************************************************
  3. //       JdeBP C++ Library Routines      General Public Licence v1.00
  4. //          Copyright (c) 1991,1992  Jonathan de Boyne Pollard
  5. //      **************************************************************
  6. //
  7. // BIOS FUNCTIONS (MS-DOS)
  8. //
  9.  
  10. //
  11. // Note that bios calls will *not* work in either Windows 3.x or OS/2 2.x.
  12. //
  13. // You must use the equivalent calls from the family API library.
  14. //
  15.  
  16. #if !defined(___STDDEF_H_INCLUDED)
  17. #include <_stddef.h>
  18. #endif
  19. #if !defined(___PORTINT_H_INCLUDED)
  20. #include <_portint.h>       // PORT and INTERRUPT FUNCTIONS
  21. #endif
  22.  
  23. #ifndef _BIOS_H_INCLUDED
  24.  
  25. #ifndef _DISKINFO_T_DEFINED
  26. struct diskinfo_t {
  27.     unsigned      drive;
  28.     unsigned      head;
  29.     unsigned      track;
  30.     unsigned      sector;
  31.     unsigned      nsectors;
  32.     void _far    *buffer;
  33. };
  34. #define _DISKINFO_T_DEFINED
  35. #endif
  36.  
  37. unsigned    _CDECL  _bios_disk(unsigned, struct diskinfo_t *);
  38. unsigned    _CDECL  _bios_equiplist(void);
  39. unsigned    _CDECL  _bios_keybrd(unsigned);
  40. unsigned    _CDECL  _bios_memsize(void);
  41. unsigned    _CDECL  _bios_printer(unsigned, unsigned, unsigned);
  42. unsigned    _CDECL  _bios_serialcom(unsigned, unsigned, unsigned);
  43. unsigned    _CDECL  _bios_timeofday(unsigned, long *);
  44.  
  45. #define _BIOS_H_INCLUDED
  46. #endif
  47.