## MMPM/2 Device Driver Reference

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

### VSD_QUERYCONNECTOR - Example Code

The following code illustrates how to query the state of the connector.

        HVSD                   hvsd;

        VSD_CONNECTOR_PARMS    vsdConn;

        vsdConn.ulConn_Type = pConnector->ulConnectorType;

        vsdConn.ulIndex = pConnector->ulConnectorIndex;

        lError = pInstance->pfnNewVSD(hvsd,

                                      VSD_QUERY,

                                      VSD_QUERYCONNECTOR,

                                      (PVOID)&vsdConn);

        prConnector->ulReturn = vsdConn.fEnabled;