## Physical Device Driver Reference

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

### RMDestroyDevice

Select an item:

    Calling Sequence
    Calling Parameters
    Returns
    Remarks
    Glossary

This rmcall service destroys a device handle and releases a device handle created by RMCreateDevice. Any resources assigned to the device are released and the device is destroyed.

    #include <os2.h>

    #include <rmcalls.h>

    HDRIVER    hDriver;

    HDEVICE    hDevice;

    APIRET     rc;

    rc = RMDestroyDevice(hDriver, hDevice);