## Physical Device Driver Reference

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

### RMDestroyDriver

Select an item:

    Calling Sequence
    Calling Parameters
    Returns
    Remarks
    Glossary

This service is supported by both rminfo.dll and rmcalls.lib. It destroys a driver handle and releases a driver handle created by RMCreateDriver. If a driver determines it should fail its initialization (such as unload), the driver will issue this call if it had previously issued an RMCreateDriver request.

Issuing this call will delete all devices, adapters, and resource records created under this driver handle.

    #include <os2.h>

    #include <rmcalls.h>

    HDRIVER    hDriver;

    APIRET     rc;

    rc = RMDestroyDriver(hDriver);