## MMPM/2 Device Driver Reference

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

### VSD_GETDEVCAPS - Example Code

The following code illustrates how to determine device capabilities for a VSD.

      HVSD                   hvsd;

      VSD_GETDEVCAPS_PARMS   vsdDevCaps;

      rc = pInstance->pfnAUDIOIF(  hvsd,

                                   VSD_GETDEVCAPS

                                   0,

                                   (PVOID) &vsdDevCaps );

      if (!rc)

         {

        /* If the VSD doesn't support volume  */

        if( !vsdDevCaps.bSupports[ DC_HASVOLUME] )

           {

           return ( rc );

           }