home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / DC-POS24.LZX / pOS / IncPOS.lzx / pDOS / InfoData.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-18  |  1.8 KB  |  56 lines

  1. #ifndef __INC_POS_PDOS_INFODATA_H
  2. #define __INC_POS_PDOS_INFODATA_H
  3. /*******************************************************************
  4.  Includes Release 24
  5.  (C) Copyright 1995-1997 proDAD
  6.      All Rights Reserved
  7.  
  8.  $AUT Holger Burkarth
  9.  $DAT >>InfoData.h<<   12 Sep 1996    09:07:52 - (C) ProDAD
  10. *******************************************************************/
  11. #ifndef __INC_POS_PDOS_DOSTYPES_H
  12. #include <pDOS/DosTypes.h>
  13. #endif
  14.  
  15.  
  16. /*----------------------------------
  17. -----------------------------------*/
  18. struct pOS_DosInfoData
  19. {
  20.         ULONG               id_NumSoftErrors;   /* number of soft errors on disk */
  21.         ULONG               id_DiskState;       /* (enum pOS_DosInfoDataState) */
  22.         ULONG               id_DiskType;        /* (enum pOS_DosInfoDataTyp) */
  23.         struct pOS_DosDevice      *id_Volume;   /* pointer to actual volume */
  24.   const struct pOS_DosMountDevice *id_Mount;
  25.         ULONG               id_Flags;           /* (enum pOS_DosInfoDataFlags) */
  26.  
  27.   UBYTE id_Reserved1[32];
  28.         dossize_t           id_NumBlocks;       /* Number of blocks on disk */
  29.         dossize_t           id_NumBlocksUsed;   /* Number of block in use */
  30.  
  31.   UBYTE id_Reserved2[32];
  32. };
  33.  
  34.  
  35. enum pOS_DosInfoDataState
  36. {
  37.   DOSIFDST_WriteProtected=80,    /* Disk is write protected */
  38.   DOSIFDST_Validating=    81,    /* Disk is currently being validated */
  39.   DOSIFDST_Validated=     82,    /* Disk is consistent and writeable */
  40. };
  41.  
  42. enum pOS_DosInfoDataTyp
  43. {
  44.   DOSIFDTYP_NoDiskPresent=      0xffffffff,
  45.   DOSIFDTYP_UnreadableDisk=     0x42414400, /* 'BAD\0' */
  46.   DOSIFDTYP_FFSDisk=            0x444F5301, /* 'DOS\1' */
  47.   DOSIFDTYP_NotReallyDos=       0x4E444F53, /* 'NDOS'  */
  48. };
  49.  
  50. enum pOS_DosInfoDataFlags
  51. {
  52.   DOSIFDF_InUse=  0x00000001, /* DOSCMD_Inhibit==FALSE => DDev is 'online' */
  53. };
  54.  
  55. #endif
  56.