Ignore:
Timestamp:
Sep 2, 2002, 4:00:04 PM (23 years ago)
Author:
umoeller
Message:

Misc changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/helpers/dosh.h

    r200 r220  
    9595
    9696    ULONG doshQuerySysUptime(VOID);
     97
     98    APIRET doshDevIOCtl(HFILE hf,
     99                        ULONG ulCategory,
     100                        ULONG ulFunction,
     101                        PVOID pvParams,
     102                        ULONG cbParams,
     103                        PVOID pvData,
     104                        ULONG cbData);
    97105
    98106    /* ******************************************************************
     
    212220                                PBIOSPARAMETERBLOCK pdp,
    213221                                BOOL fFixed);
    214 
    215         APIRET XWPENTRY doshHasAudioCD(ULONG ulLogicalDrive,
    216                                        HFILE hfDrive,
    217                                        BOOL fMixedModeCD,
    218                                        PBOOL pfAudio);
    219 
    220222    #endif
     223
     224    APIRET doshQueryCDDrives(PBYTE pcCDs,
     225                             PBYTE pbFirstCD);
     226
     227    APIRET XWPENTRY doshOpenDrive(ULONG ulLogicalDrive,
     228                                  HFILE *phf);
     229
     230    APIRET XWPENTRY doshHasAudioCD(HFILE hfDrive,
     231                                   BOOL fMixedModeCD,
     232                                   PBOOL pfAudio);
     233
     234    #define CDFL_DOOROPEN               0x00000001      // bit 0
     235    #define CDFL_DOORLOCKED             0x00000002      // bit 1
     236    #define CDFL_COOKEDANDRAW           0x00000004      // bit 2
     237    #define CDFL_READWRITE              0x00000008      // bit 3
     238    #define CDFL_DATAANDAUDIO           0x00000010      // bit 4
     239    #define CDFL_ISO9660INTERLEAVE      0x00000020      // bit 5
     240    #define CDFL_PREFETCHSUPPORT        0x00000080      // bit 7
     241    #define CDFL_AUDIOCHANNELMANIP      0x00000100      // bit 8
     242    #define CDFL_MINUTESECONDADDR       0x00000200      // bit 9
     243    #define CDFL_MODE2SUPPORT           0x00000400      // bit 10
     244    #define CDFL_DISKPRESENT            0x00000800      // bit 11
     245    #define CDFL_PLAYINGAUDIO           0x00001000      // bit 12
     246    #define CDFL_CDDA                   0x40000000      // bit 30
     247
     248    APIRET XWPENTRY doshQueryCDStatus(HFILE hfDrive,
     249                                      PULONG pflStatus);
    221250
    222251    VOID XWPENTRY doshEnumDrives(PSZ pszBuffer,
     
    232261    #define ERROR_AUDIO_CD_ROM          10000
    233262
    234     #define DRVFL_MIXEDMODECD        0x0001
    235     #define DRVFL_TOUCHFLOPPIES      0x0002
    236     #define DRVFL_CHECKEAS           0x0004
    237     #define DRVFL_CHECKLONGNAMES     0x0008
     263    #define DRVFL_MIXEDMODECD           0x0001
     264    #define DRVFL_TOUCHFLOPPIES         0x0002
     265    #define DRVFL_CHECKEAS              0x0004
     266    #define DRVFL_CHECKLONGNAMES        0x0008
    238267
    239268    APIRET doshAssertDrive(ULONG ulLogicalDrive,
     
    307336                #define DRVTYPE_CDROM                   4
    308337                #define DRVTYPE_LAN                     5
    309                 #define DRVTYPE_PARTITIONABLEREMOVEABLE 6
     338                #define DRVTYPE_PRT                     6
     339                            // partitionable removeable (ZIP drive)
    310340                #define DRVTYPE_UNKNOWN               255
    311341
     
    323353                            // drive was booted from
    324354
    325                 // media flags:
    326 
    327                 #define DFL_MEDIA_PRESENT               0x1000
     355                // media flags: all changed V0.9.21 (2002-08-31) [umoeller]
     356
     357                #define DFL_MEDIA_PRESENT               0x0100
    328358                            // media is present in drive;
    329359                            // -- always set for harddisks,
     
    334364                            // -- set for CD-ROMS only if data
    335365                            //    CD-ROM is inserted
    336                 #define DFL_AUDIO_CD                    0x2000
     366                #define DFL_AUDIO_CD                    0x0200
    337367                            // set for CD-ROMs only, if an audio CD
    338368                            // is currently inserted; in that case,
    339369                            // DFL_MEDIA_PRESENT is _not_ set
    340                 #define DFL_SUPPORTS_EAS                0x4000
     370                #define DFL_DOOR_OPEN                   0x0400
     371                            // set for CD-ROMs only if the CD-ROM
     372                            // door is currently open
     373                            // V0.9.21 (2002-08-31) [umoeller]
     374
     375                #define DFL_SUPPORTS_EAS                0x0800
    341376                            // drive supports extended attributes
    342377                            // (assumption based on DosFSCtl,
    343378                            // might not be correct for remote drives;
    344379                            // reports correctly for FAT32 though)
    345                 #define DFL_SUPPORTS_LONGNAMES          0x8000
     380                #define DFL_SUPPORTS_LONGNAMES          0x1000
    346381                            // drive supports long names; this does not
    347382                            // necessarily mean that we support all IFS
    348383                            // characters also
     384
    349385
    350386            // the following are only valid if DFL_MEDIA_PRESENT is set;
Note: See TracChangeset for help on using the changeset viewer.