## MMPM/2 Device Driver Reference

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

### VSD_RESOURCE

Select an item:

    Syntax
    Returns
    Remarks
    Example Code
    Glossary

This command can be issued only when the device is opened and is used for resource management.

VSD_RESOURCE 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_RESOURCE.

ulFlags (ULONG) No flags used for this command.

pRequest (PVSD_RESOURCE_PARMS) Pointer to the VSD_RESOURCE_PARMS data structure.

The driver is responsible for filling in the ulResUnits and ulClass fields. The caller is responsible for filling in the ulDataType field.

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

VSDERR_SUCCESS Command completed successfully.

VSDERR_MISSING_PARAMETER One or more parameters is missing.