## MMPM/2 Device Driver Reference

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

### VSD_GETDEVCAPS - Syntax

This command queries the device capabilities. These values should be constants that describe the device and driver characteristics. In general, the flags indicate what set of commands are supported. VSD_GETDEVCAPS is a required command and must be implemented by all VSD writers.

This command is sent using VSDEntry as follows:

        VSDEntry(hvsd, ulFunc, ulFlags, pRequest)

hvsd (HVSD) Handle to a VSD.

ulFunc (ULONG) Set to VSD_GETDEVCAPS.

ulFlags (ULONG) No flags used for this command.

pRequest (PVSD_GETDEVCAPS_PARMS) Pointer to the VSD_GETDEVCAPS_PARMS data structure.

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

VSDERR_REQUEST_BUF_TOO_SMALL The ulLength in the request packet is too small.

VSDERR_MISSING_PARAMETER One or more parameters are missing.

VSDERR_HARDWARE A hardware error occurred.