## MMPM/2 Device Driver Reference

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

### VSD_CLOSE - Syntax

This command closes the device. VSD_CLOSE 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 the VSD to be closed.

ulFunc (ULONG) Set to VSD_CLOSE.

ulFlags (ULONG) No flags used for this command.

pRequest (PVOID) Not used for this command.

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

VSDERR_SUCCESS The command was successful.

VSDERR_CANNOT_CLOSE VSD is unable to close the device.

VSDERR_HARDWARE A hardware error occurred.