The following code illustrates how to determine whether a device has microphone input capability.
/* Determine if amp/mixer device has a microphone input */ MCI_CONNECTORINFO_PARMS conninfoparms; ULONG rc; ULONG NumMicConns; conninfoparms.ulDeviceTypeID = MCI_DEVTYPE_AUDIO_AMPMIX; conninfoparms.ulConnectorType = MCI_MICROPHONE_CONNECTOR; rc = mciSendCommand (0, /* Ignored field */ MCI_CONNECTORINFO, /* Connectorinfo message */ MCI_ENUMERATE_CONNECTORS | MCI_WAIT | MCI_CONNECTOR_TYPE, /* Flags for this message */ (PVOID) &conninfoparms, /* Data structure */ 0); /* No user parm */ if (LOUSHORT(rc) == MCIERR_SUCCESS) { NumMicConns = conninfoparms.ulReturn; /* Return information */ }