Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
2.3 KiB

  1. /*******************************Module*Header*********************************\
  2. * Module Name: mcicda.h
  3. *
  4. * Media Control Architecture Redbook CD Audio Driver
  5. *
  6. * Created:
  7. * Author:
  8. *
  9. * History:
  10. *
  11. * Internal data structures
  12. *
  13. * Copyright (c) 1990-1999 Microsoft Corporation
  14. *
  15. \****************************************************************************/
  16. #define MCIRBOOK_MAX_DRIVES 26
  17. #define MCICDAERR_NO_TIMERS (MCIERR_CUSTOM_DRIVER_BASE)
  18. #define IDS_PRODUCTNAME 1
  19. #define IDS_CDMUSIC 2
  20. #define IDS_CDMUSICCAPTION 3
  21. #define MCI_CDA_AUDIO_S 96
  22. #define MCI_CDA_OTHER_S 97
  23. #define MCI_STATUS_TRACK_POS 0xBEEF
  24. #ifndef cchLENGTH
  25. #define cchLENGTH(_sz) (sizeof(_sz)/sizeof(_sz[0]))
  26. #endif
  27. extern HANDLE hInstance;
  28. /* Instance data type */
  29. typedef struct tag_INSTDATA
  30. {
  31. MCIDEVICEID uMCIDeviceID; /* MCI Device ID */
  32. UINT uDevice; /* Index of physical device */
  33. DWORD dwTimeFormat; /* Current instance time format */
  34. // MCI_FORMAT_MSF - minutes, seconds, frames
  35. // MCI_FORMAT_TMSF - tracks, minutes ...
  36. // MCI_FORMAT_MILLISECONDS
  37. } INSTDATA, *PINSTDATA;
  38. typedef struct
  39. {
  40. HWND hCallback; /* Handle to window function to call back */
  41. BOOL bDiscPlayed; /* TRUE if the disk was played since it */
  42. /* was changed */
  43. BOOL bActiveTimer; /* TRUE if waiting to notify */
  44. DWORD dwPlayTo; /* Last position being played to */
  45. MCIDEVICEID wDeviceID; /* MCI device ID for this drive */
  46. BOOL bShareable; /* If the device was opened shareable */
  47. int nUseCount; /* Number of current opens on the device */
  48. } DRIVEDATA;
  49. typedef struct
  50. {
  51. DWORD dwStatus;
  52. DWORD dwTrack;
  53. DWORD dwDiscTime;
  54. } STATUSTRACKPOS, *PSTATUSTRACKPOS;
  55. extern DWORD FAR PASCAL CD_MCI_Handler (MCIDEVICEID wDeviceID,
  56. UINT message, DWORD_PTR lParam1,
  57. DWORD_PTR lParam2);
  58. extern DWORD CDAudio_GetUnitVolume (UINT uDrive);