## Physical Device Driver Reference

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

### RMAllocResource - Calling Sequence

This service is supported by both rminfo.dll and rmcalls.lib. It obtains a resource handle and allows a driver to register usage of a hardware resource.

    #include <os2.h>

    #include <rmcalls.h>

    HDRIVER            hDriver;

    PHRESOURCE         hResource;

    PRESOURCESTRUCT    ResourceStruct;

    APIRET             rc;

    rc = RMAllocResource(hDriver, hResource, ResourceStruct);