|
|
1.1 ! root 1: // Copyright � 1998, Bruce A. Lewis ! 2: // This code may not be re-used in a commercial product ! 3: // of any kind without express written consent from ! 4: // the author, Bruce A. Lewis. ! 5: // ! 6: #ifndef CDDEF ! 7: #define CDDEF 1 ! 8: ! 9: // Global define needed for calling these functions ! 10: ! 11: typedef enum { cd_stop, cd_play, cd_pause, cd_empty } cdstate; ! 12: ! 13: typedef struct ! 14: { ! 15: BOOL CDMedia; ! 16: char CDCode[18]; ! 17: DWORD CDPosition; ! 18: DWORD CDDevice; ! 19: DWORD CDTrack; ! 20: DWORD CDTrackCount; ! 21: DWORD CDStatus; ! 22: DWORD CDTrackList[32]; ! 23: MCIERROR CDError; ! 24: }CD_Data_t; ! 25: ! 26: BOOL CDOpen(HWND hWnd, CD_Data_t *cdd); ! 27: BOOL CDCheck(HWND hWnd, CD_Data_t *cdd); ! 28: BOOL CDMediaIdentity(HWND hWnd, CD_Data_t *cdd, char *szIdent); ! 29: BOOL CDTrackCount(HWND hWnd, CD_Data_t *cdd); ! 30: BOOL CDTrackType(HWND hWnd, CD_Data_t *cdd); ! 31: BOOL CDTrackPlay(HWND hWnd, CD_Data_t *cdd); ! 32: BOOL CDPause(HWND hWnd, CD_Data_t *cdd); ! 33: BOOL CDResume(HWND hWnd, CD_Data_t *cdd); ! 34: void CDStop(CD_Data_t *cdd); ! 35: void CDClose(CD_Data_t *cdd); ! 36: ! 37: #endif ! 38:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.