## Physical Device Driver Reference

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

### RMADDToHDevice

Select an item:

    Calling Sequence
    Calling Parameters
    Returns
    Remarks
    Glossary

This rmcall service maps an ADD/DM handle to a Resource Manager device handle and converts an ADD/DM ADD Handle and ADD/DM UnitHandle to a corresponding Resource Manager device handle. This is done by searching the Resource Manager physical device tree for a node that contains an ADJ_ADD_ UNIT adjunct, which matches the supplied ADD Handle and ADD UnitHandle.

    #include <os2.h>

    #include <rmcalls.h>

    PHDEVICE    hDevice;

    USHORT      ADDHandle;

    USHORT      UnitHandle;

    APIRET      rc;

    rc = RMADDToHDevice(hDevice, ADDHandle, UnitHandle);