## MMPM/2 Device Driver Reference

[prev][next][parent][TOC]

### VSD_QUERYCONNECTOR - Syntax

This subcommand of the VSD_QUERY command queries the state of the connector . (A connector can be a hardware or software connection on the device the VSD is controlling.) If the connector is enabled, the fEnabled field of the VSD_CONNECTOR_PARMS structure will contain MCI_TRUE, otherwise it will contain MCI_FALSE. For further information regarding connectors, refer to the MCI connector command in the OS/2 Multimedia Programming Reference. Valid connectors can be found in MCIOS2.H.

This command is sent using VSDEntry as follows:

        VSDEntry(hvsd, ulFunc, ulFlags, pRequest)

hvsd (HVSD) Handle to a VSD.

ulFunc (ULONG) Set to VSD_QUERY.

ulFlags (ULONG) Set to VSD_QUERYCONNECTOR.

pRequest (PVSD_CONNECTOR_PARMS) A pointer to the VSD_CONNECTOR_PARMS structure.

rc (ULONG) Error code indicating success or the type of failure:

VSDERR_UNSUPPORTED_CONN_TYPE Connector type not supported.

VSDERR_INVALID_CONNECTOR_TYPE Invalid connector type.

VSDERR_INVALID_CONNECTOR_INDEX Invalid connector index.

VSDERR_CANNOT_MODIFY_CONNECTOR Cannot enable or disable this connector.

VSDERR_INVALID_CONNECTOR Invalid connector.

VSDERR_UNSUPPORTED_CONNECTOR Unsupported connector.

VSDERR_MISSING_PARAMETER One or more parameters are missing.