## MMPM/2 Device Driver Reference

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

### VSD_SETCONNECTOR - Syntax

This subcommand of the VSD_SET command enables or disables a connector. (A connector can be a hardware or software connection on the device the VSD is controlling.) Note that enabling a connector can by default, disable another connector. For further information regarding connectors, refer to the MCI_CONNECTOR command in the OS/2 Multimedia Programming Reference. Additional 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_SET.

ulFlags (ULONG) Set to VSD_SETCONNECTOR.

pRequest (PVSD_CONNECTOR_PARMS) A pointer to the VSD_CONNECTOR_PARMS structure.

The status of the connector, enable (VSD_ENABLE) or disable (VSD_DISABLE) must be indicated in the fEnabled field. A valid connector must be placed in the ulConn_Type field and a valid index in the ulIndex field.

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

VSDERR_SUCCESS The command was successful.

VSDERR_UNSUPPORTED_CONNECTOR Connector setting is not supported.

VSDERR_INVALID_CONNECTOR Connector setting is invalid.