## Physical Device Driver Reference

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

### RMDestroyLDev - Calling Sequence

This rmcall service destroys a logical device handle and destroys a logical device handle created by RMCreateLDev. Destroying a logical device also destroys any system names associated with the logical device.

    #include <os2.h>

    #include <rmcalls.h>

    HDRIVER    hDriver;

    HLDEV      hLDev;

    APIRET     rc;

    rc = RMDestroyLDev(hDriver, hLDev);