RMGetNodeInfo: Difference between revisions
Appearance
Created page with "This service is supported by both rminfo.dll and rmcalls.lib. It returns Resource Manager node information. ==Syntax== RMGetNodeInfo(hRMHandle, NodeInfo, NodeInfoSize); ==Pa..." |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
This service is supported by both rminfo.dll and rmcalls.lib. It returns Resource Manager node information. | This service is supported by both rminfo.dll and rmcalls.lib. It returns Resource Manager node information. | ||
==Syntax== | ==Syntax== | ||
RMGetNodeInfo(hRMHandle, NodeInfo, NodeInfoSize) | RMGetNodeInfo(hRMHandle, NodeInfo, NodeInfoSize) | ||
==Parameters== | ==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. | ;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. | |||
; NodeInfoSize (USHORT) - input : Size of buffer pointed to by NodeInfo. | |||
==Return Code== | ==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_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_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. | ; RMRC_BUFFER_TOO_SMALL : The buffer provided to receive information from a Resource Manager service was too small. | ||
== | ==Bindings== | ||
===C=== | ===C=== | ||
<PRE> | <PRE> | ||
Line 45: | Line 40: | ||
rc = RMGetNodeInfo(hRMHandle, NodeInfo, NodeInfoSize); | rc = RMGetNodeInfo(hRMHandle, NodeInfo, NodeInfoSize); | ||
</PRE> | </PRE> | ||
[[Category:DevHlps]] | [[Category:DevHlps]] |
Latest revision as of 22:18, 28 February 2020
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);