Jump to content

RMGetNodeInfo

From EDM2
Revision as of 22:18, 28 February 2020 by Ak120 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This service is supported by both rminfo.dll and rmcalls.lib. It returns Resource Manager node information.

Syntax

RMGetNodeInfo(hRMHandle, NodeInfo, NodeInfoSize)

Parameters

hRMHandle (RMHANDLE) - output
Resource Manager handle whose information is to be returned. The following handle types are allowed:
HandleType Description
HANDLE_TYPE_DRIVER Driver Handle
HANDLE_TYPE_ADAPTER Adapter Handle
HANDLE_TYPE_DEVICE Device Handle
HANDLE_TYPE_LOGDEV Logical Device Handle
HANDLE_TYPE_SYSDEV System Name Handle
NodeInfo (PRM_GETNODE_DATA) - output
Pointer to a buffer that will contain the Resource Manager node information in the RM_GETNODE_DATA, RM_NODE, and RESOURCELIST data structures.
NodeInfoSize (USHORT) - input
Size of buffer pointed to by NodeInfo.

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_IRQ_ENTRY_ILLEGAL
A Resource Manager service was issued at interrupt time. The Resource Manager service request can be issued only at task time or INIT time.
RMRC_BAD_ADAPTERHANDLE
The expected Resource Manager handles were not provided because the handle was not a valid Resource Manager handle or the handle did not point to the type of object the service required.
RMRC_BUFFER_TOO_SMALL
The buffer provided to receive information from a Resource Manager service was too small.

Bindings

C

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

RMHANDLE            hRMHandle;
PRM_GETNODE_DATA    NodeInfo;
USHORT              NodeInfoSize;
APIRET              rc;

rc = RMGetNodeInfo(hRMHandle, NodeInfo, NodeInfoSize);