## Virtual Device Driver Reference for OS/2

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

### VDHCreateSel - Format

This function creates a GDT selector that maps a linear range. This service is used to create a 16:16 pointer, which is passed to a 16-bit physical device driver.

    #include mvdm.h

    PVOID    LinearAddress;  /*  Linear address of the start of the buffer */

    ULONG    BufferSize;     /*  Size of the buffer in bytes */

    SEL      rc;

    rc = VDHCreateSel(LinearAddress, BufferSize);