home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / atl / cdinfo / ccdinfo.h < prev    next >
C/C++ Source or Header  |  1998-03-26  |  1KB  |  37 lines

  1. // CCDINFO.H : CDInfo device management class declarations
  2. //
  3. // This is a part of the Active Template Library.
  4. // Copyright (C) 1996-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Active Template Library Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Active Template Library product.
  12.  
  13. #include <mmsystem.h>
  14.  
  15. #define MAX_TRACKS 100
  16.  
  17. class CDInfo
  18. {
  19. public:
  20.     CDInfo();
  21.     ~CDInfo();
  22.     short   Read();
  23.     short   GetNumberOfTracks();
  24.     void    SetNumberOfTracks(short nTracks);
  25.     short   GetTrackLength(short nTrack);
  26.     void    SetTrackLength(short nTrack, short nNewLength);
  27.     short   GetTotalLength();
  28.     void    Play(short nTrack);
  29. private:
  30.     short               m_nNumberOfTracks;
  31.     short               m_nTrackLength[MAX_TRACKS];
  32.     MCI_STATUS_PARMS    m_MCIStatus;
  33.     MCI_OPEN_PARMS      m_MCIOpen;
  34. };
  35.  
  36. #include "CCDInfo.inl"
  37.