home *** CD-ROM | disk | FTP | other *** search
/ HomeWare 14 / HOMEWARE14.bin / windows / win31 / atvsp.arj / MCIATV.H < prev    next >
C/C++ Source or Header  |  1993-11-10  |  3KB  |  88 lines

  1. /****************************************************************************
  2.  *
  3.  *   mciatv.h
  4.  *
  5.  *   Copyright (c) 1991-1993 Microsoft Corporation.  All Rights Reserved.
  6.  *
  7.  ***************************************************************************/
  8.  
  9. /* Resource constants */
  10. #define IDS_PRODUCTNAME                 1
  11. #define IDS_COMMANDS                    2
  12.  
  13. /* must use literals to satisfy the RC compiler  */
  14. #define ATV_PLAY            0x1000
  15. #define ATV_RECORD            0x1001
  16. #define ATV_STATUS            0x1002
  17. #define ATV_DELETE            0x1003
  18.  
  19. /* Range of custom MCI commands for VoiceMail device */
  20. #define ATV_FIRST         ATV_PLAY
  21. #define ATV_LAST          ATV_DELETE
  22.  
  23. /* custom flags */
  24. #define ATV_MESSAGE            0x00010000L
  25. #define ATV_RECORD_MESSAGE    0x00000400L
  26. #define ATV_FROM_MICROPHONE    0x00000800L
  27. #define    ATV_STATUS_ITEM        0x00000400L
  28. #define ATV_STATUS_NUMBER_OF_MESSAGES    0x00000009L
  29.  
  30. /* Maximum number of supported comports */
  31. #define ATV_MAX_COMPORTS 4
  32.  
  33. /* Flags a comport as invalid */
  34. #define NO_COMPORT                  -1
  35.  
  36. /* Custom MCI Error Messages */
  37. #define MCIERR_ATV_ALREADY_STOPPED    (MCIERR_CUSTOM_DRIVER_BASE)
  38.  
  39. /* parameter block for each MCIREQUEST sent to ATVEXE for processing */
  40. typedef struct mcirequestdata_tag
  41.     {
  42.     WORD wDeviceID;
  43.     int nPort;
  44.     DWORD lParam1;
  45.     DWORD lParam2;
  46.     } MCIREQUESTDATA;
  47.  
  48. /* parameter block for ATV_PLAY command message */
  49. typedef struct tagATV_PLAY_PARMS {
  50.     DWORD   dwCallback;
  51.     DWORD   dwMessage;
  52.     } ATV_PLAY_PARMS;
  53. typedef ATV_PLAY_PARMS FAR *LPATV_PLAY_PARMS;
  54.  
  55. /* parameter block for ATV_STATUS command message */
  56. typedef struct tagATV_STATUS_PARMS {
  57.     DWORD   dwCallback;
  58.     DWORD   dwReturn;
  59.     DWORD   dwItem;
  60. } ATV_STATUS_PARMS;
  61. typedef ATV_STATUS_PARMS FAR * LPATV_STATUS_PARMS;
  62.  
  63. /* parameter block for ATV_RECORD command message is just MCI_GENERIC_PARMS */
  64. typedef MCI_GENERIC_PARMS ATV_RECORD_PARMS;
  65. typedef ATV_RECORD_PARMS FAR *LPATV_RECORD_PARMS;
  66.  
  67. /* parameter block for ATV_DELETE command message is just ATV_PLAY_PARMS */
  68. typedef ATV_PLAY_PARMS ATV_DELETE_PARMS;
  69. typedef ATV_DELETE_PARMS FAR *LPATV_DELETE_PARMS;
  70.  
  71. /* External declarations */
  72. extern HINSTANCE hInstance;
  73.  
  74. extern WORD FAR PASCAL atvGetComport(LPSTR lpstrBuf);
  75. extern DWORD FAR PASCAL mciDriverEntry(WORD wDeviceID, UINT message,
  76.                                         LPARAM lParam1, LPARAM lParam2);
  77.  
  78. /****************************************************************************
  79.  
  80.     Debug support
  81.  
  82.  ***************************************************************************/
  83.  
  84. #ifdef DEBUG
  85. void CDECL SPTrace(LPCSTR pszFormat, ...) ;
  86. #endif
  87.  
  88.