Source code of Windows XP (NT5)
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.

30 lines
826 B

  1. #ifndef _CDREAD_H
  2. #define _CDREAD_H
  3. #include "devioctl.h"
  4. #include "ntddredb.h"
  5. #include "ntddcdrm.h"
  6. #define CDDA_SECTOR_SIZE ( 2352 )
  7. #define SECTORS_PER_READ ( 26 )
  8. #define PAGE_VAL 1024*8*8
  9. #ifndef _ALPHA
  10. #define PAGE_SIZE 1024*4
  11. #else
  12. #define PAGE_SIZE 1024*8
  13. #endif
  14. #define MSF_TO_LBA(Minutes,Seconds,Frames) \
  15. (ULONG)((60 * 75 * (Minutes)) + (75 * (Seconds)) + ((Frames) - 150))
  16. typedef BOOL (*LPREADFUNC)(BYTE* lpData, DWORD dwSize, int iPercent);
  17. BOOL writeHeader( FILE* pFile, int iSize );
  18. BOOL readTOC( HANDLE hDevice, PCDROM_TOC pToc );
  19. BOOL rawReadTrack(HANDLE device, PCDROM_TOC pTOC, int iTrack, LPREADFUNC lpReadFunc );
  20. int getTrackSize( PCDROM_TOC pTOC, int iTrack );
  21. BOOL StoreTrack(HWND hwndMain, TCHAR chDrive, int nTrack, TCHAR* pszFilename, LPWAVEFORMATEX lpwfxDest);
  22. #endif