Jump to content

RMGetSnoopLevel

From EDM2
Revision as of 18:39, 3 August 2018 by Martini (talk | contribs) (Created page with "This rminfo service gets the next boot and default snoop level for the system. RMSaveDetectedData must save the previous.dat file before the snoop levels can be returned. ==...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This rminfo service gets the next boot and default snoop level for the system. RMSaveDetectedData must save the previous.dat file before the snoop levels can be returned.

Syntax

RMGetSnoopLevel(SnoopLevel, SnoopFlags);

Parameters

SnoopLevel (USHORT) - input
Indicates the snoop level.
   SNP_NO_RISK
   SNP_LOW_RISK
   SNP_MEDIUM_RISK
   SNP_HIGH_RISK
   SNP_WARP_RISK
SnoopFlags (USHORT) - input
Indicates how to use the snoop level.
SNP_FLG_DEFAULT
Sets snoop level to default.
SNP_FLG_NEXTBOOT
Sets snoop level for next boot only.

Return Code

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

Other possible return values follow:

   RMRC_BAD_FLAGS
   RMRC_NO_DETECTED_DATA
   RMRC_SUCCESS

Remarks

If both SnoopFlags are set, the default level and the next boot level values are reset in the previous.dat file.

Example Code

C

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

USHORT    SnoopLevel;
USHORT    SnoopFlags;
APIRET    rc;

rc = RMGetSnoopLevel(SnoopLevel, SnoopFlags);