home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HomeWare 14
/
HOMEWARE14.bin
/
windows
/
win31
/
atvsp.arj
/
MCIATV.H
< prev
next >
Wrap
C/C++ Source or Header
|
1993-11-10
|
3KB
|
88 lines
/****************************************************************************
*
* mciatv.h
*
* Copyright (c) 1991-1993 Microsoft Corporation. All Rights Reserved.
*
***************************************************************************/
/* Resource constants */
#define IDS_PRODUCTNAME 1
#define IDS_COMMANDS 2
/* must use literals to satisfy the RC compiler */
#define ATV_PLAY 0x1000
#define ATV_RECORD 0x1001
#define ATV_STATUS 0x1002
#define ATV_DELETE 0x1003
/* Range of custom MCI commands for VoiceMail device */
#define ATV_FIRST ATV_PLAY
#define ATV_LAST ATV_DELETE
/* custom flags */
#define ATV_MESSAGE 0x00010000L
#define ATV_RECORD_MESSAGE 0x00000400L
#define ATV_FROM_MICROPHONE 0x00000800L
#define ATV_STATUS_ITEM 0x00000400L
#define ATV_STATUS_NUMBER_OF_MESSAGES 0x00000009L
/* Maximum number of supported comports */
#define ATV_MAX_COMPORTS 4
/* Flags a comport as invalid */
#define NO_COMPORT -1
/* Custom MCI Error Messages */
#define MCIERR_ATV_ALREADY_STOPPED (MCIERR_CUSTOM_DRIVER_BASE)
/* parameter block for each MCIREQUEST sent to ATVEXE for processing */
typedef struct mcirequestdata_tag
{
WORD wDeviceID;
int nPort;
DWORD lParam1;
DWORD lParam2;
} MCIREQUESTDATA;
/* parameter block for ATV_PLAY command message */
typedef struct tagATV_PLAY_PARMS {
DWORD dwCallback;
DWORD dwMessage;
} ATV_PLAY_PARMS;
typedef ATV_PLAY_PARMS FAR *LPATV_PLAY_PARMS;
/* parameter block for ATV_STATUS command message */
typedef struct tagATV_STATUS_PARMS {
DWORD dwCallback;
DWORD dwReturn;
DWORD dwItem;
} ATV_STATUS_PARMS;
typedef ATV_STATUS_PARMS FAR * LPATV_STATUS_PARMS;
/* parameter block for ATV_RECORD command message is just MCI_GENERIC_PARMS */
typedef MCI_GENERIC_PARMS ATV_RECORD_PARMS;
typedef ATV_RECORD_PARMS FAR *LPATV_RECORD_PARMS;
/* parameter block for ATV_DELETE command message is just ATV_PLAY_PARMS */
typedef ATV_PLAY_PARMS ATV_DELETE_PARMS;
typedef ATV_DELETE_PARMS FAR *LPATV_DELETE_PARMS;
/* External declarations */
extern HINSTANCE hInstance;
extern WORD FAR PASCAL atvGetComport(LPSTR lpstrBuf);
extern DWORD FAR PASCAL mciDriverEntry(WORD wDeviceID, UINT message,
LPARAM lParam1, LPARAM lParam2);
/****************************************************************************
Debug support
***************************************************************************/
#ifdef DEBUG
void CDECL SPTrace(LPCSTR pszFormat, ...) ;
#endif