RMSetSnoopLevel
From EDM2
This rminfo service sets the snoop level for the system. RMSaveDetectedData must save the previous.dat file before RMSetSnoopLevel can set the snoop level.
Syntax
RMSetSnoopLevel(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_INVALID_PARM_VALUE 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 = RMSetSnoopLevel(SnoopLevel, SnoopFlags);