home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / viscobv6.zip / vac22os2 / ibmcobol / samples / toolkit / mm / admct / mcipriv.h < prev    next >
C/C++ Source or Header  |  1996-11-19  |  4KB  |  91 lines

  1. /****************************************************************************/
  2. /*                                                                          */
  3. /* Module Name: MCIPRIV.H                                                   */
  4. /*                                                                          */
  5. /* This is the multimedia include file that has the typedefs, defines and   */
  6. /* function prototyes for MCI not publicly available in Release 1           */
  7. /*                                                                          */
  8. /* Copyright (c) International Business Machines Corporation 1990, 1991     */
  9. /*                        All Rights Reserved                               */
  10. /*                                                                          */
  11. /****************************************************************************/
  12.  
  13. /*********************************************************************/
  14. /* Flags for mciConnection                                           */
  15. /*********************************************************************/
  16. #define MCI_MAKECONNECTION              0x0001
  17. #define MCI_BREAKCONNECTION             0x0002
  18.  
  19.  
  20. #pragma pack(1)
  21.  
  22. typedef struct {
  23.     DWORD   dwDeviceTypeID1;
  24.     WORD    wConnectorIndex1;
  25.     DWORD   dwDeviceTypeID2;
  26.     WORD    wConnectorIndex2;
  27. } DEFAULTCONNECTIONS;
  28. typedef DEFAULTCONNECTIONS   *LPDEFAULTCONNECTIONS;
  29.  
  30. typedef struct {
  31.     DWORD   dwDeviceTypeID1;
  32.     WORD    wConnectorIndex1;
  33.     WORD    wConnectorType1;
  34.     DWORD   dwDeviceTypeID2;
  35.     WORD    wConnectorIndex2;
  36.     WORD    wConnectorType2;
  37. } DEFAULTCONNECTIONS2;
  38. typedef DEFAULTCONNECTIONS2   *PDEFAULTCONNECTIONS2;
  39.  
  40.  
  41. typedef struct {
  42.     WORD    wDeviceID1;
  43.     WORD    wConnectorIndex1;
  44.     WORD    wDeviceID2;
  45.     WORD    wConnectorIndex2;
  46. } CONNECTIONS;
  47. typedef CONNECTIONS   *LPCONNECTIONS;
  48.  
  49. /*********************************************************************/
  50. /* parameters for the MCI_SYSINFO message                            */
  51. /*     0xXXXXXX00 are reserved for MCI_SYSINFO flags                 */
  52. /*********************************************************************/
  53.     /********************************************************/
  54.     /* Extended SYSINFO functions                           */
  55.     /********************************************************/
  56.     #define MCI_SYSINFO_FIND_LOGDEVICE             0x00008000L
  57.  
  58. typedef struct {
  59.     LPSTR   lpstrFileName;                        /* File Name                   */
  60.     CHAR    szLogicalName[MAX_DEVICE_NAME];       /* returned logical device name*/
  61. } MCI_SYSINFO_FN_LOGDEVICE;
  62. typedef MCI_SYSINFO_FN_LOGDEVICE *LPMCI_SYSINFO_FN_LOGDEVICE;
  63.  
  64. #pragma pack()
  65. /*********************************************************************/
  66. /*                                                                   */
  67. /*  MCI Function prototypes                                          */
  68. /*                                                                   */
  69. /*********************************************************************/
  70.  
  71. DWORD APIENTRY mciQueryDefaultConnections  (DWORD   dwDeviceTypeID,
  72.                                             PVOID   pDefaultConnections,
  73.                                             WORD    *wLength);
  74.  
  75. DWORD APIENTRY mciQueryConnections  (WORD    wDeviceID,
  76.                                      WORD    wConnectorIndex,
  77.                                      PVOID   pConnections);
  78.  
  79. DWORD APIENTRY mciDefaultConnection   (DWORD  dwDeviceTypeID1,
  80.                                        WORD   wConnectorIndex1,
  81.                                        DWORD  dwDeviceTypeID2,
  82.                                        WORD   wConnectorIndex2,
  83.                                        WORD   wAction);
  84.  
  85. DWORD APIENTRY mciConnection  (WORD    wDeviceID1,
  86.                                WORD    wConnectorIndex1,
  87.                                WORD    wDeviceID2,
  88.                                WORD    wConnectorIndex2,
  89.                                WORD    wAction);
  90.  
  91.