RMHandleToResourceHandleList

From EDM2
Jump to: navigation, search

This service is supported by both rminfo.dll and rmcalls.lib. It returns the resource handle list for a specified Resource Manager handle.

Syntax

RMHandleToResourceHandleList(hHandle, pHndList);

Parameters

hHandle (RMHANDLE) - input 
Resource Manager handle whose resource handle list is to be returned.
pHndList (PHANDLELIST) - output 
Pointer to the resource handle list for the specified resource handle.

Return Code

rc (APIRET) - returns 
On systems where the Resource Manager driver is not installed, the library interface code will return RMRC_NOT_INSTALLED.
   RMRC_BAD_DEVICEHANDLE
   RMRC_INVALID_PARM_VALUE
   RMRC_NULL_POINTER
   RMRC_SUCCESS

Example Code

C

#include <os2.h>
#include <rmcalls.h>

RMHANDLE       hHandle;
PHANDLELIST    pHndList;
APIRET         rc;

rc = RMHandleToResourceHandleList(hHandle,
       pHndList);