## Virtual Device Driver Reference for OS/2

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

### VDHFindFreePages - Format

This function starts at a specified linear address and searches linear memory (up to a specified limit) for the largest free linear memory block. The address and size of the largest region found are returned.

    #include mvdm.h

    PVOID     StartAddress;  /*  Starting address */

    PULONG    Pages;         /*  Size of the range (in pages) */

    PVOID     rc;

    rc = VDHFindFreePages(StartAddress, Pages);