## Physical Device Driver Reference

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

### RMCreateLDev

Select an item:

    Calling Sequence
    Calling Parameters
    Returns
    Remarks
    Glossary

This rmcall service obtains a logical device handle adapter and allows a driver to register a logical device with the Resource Manager. A logical device handle (HLDEV) is returned by this service to identify the logical device.

Information about the logical device being registered is passed in an LDEVSTRUCT.

    #include <os2.h>

    #include <rmcalls.h>

    HDRIVER        hDriver;

    PHLDEV         hLDev;

    HDEVICE        hAssocDevice;

    PLDEVSTRUCT    LDevStruct;

    APIRET         rc;

    rc = RMCreateLDev(hDriver, hLDev, hAssocDevice,

           LDevStruct);