## Virtual Device Driver Reference for OS/2

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

### VDHRead - Format

This function reads bytes from a file or device previously opened by VDHOpen.

    #include mvdm.h

    HFILE    FileHandle;     /*  Handle to the file or device to read */

    PVOID    ReadBufferPtr;  /*  Address of the buffer to store the bytes read */

    ULONG    NumBytes;       /*  Number of bytes to read */

    ULONG    rc;

    rc = VDHRead(FileHandle, ReadBufferPtr, NumBytes);