Jump to content

RMSaveDetectedData

From EDM2
Revision as of 19:23, 3 August 2018 by Martini (talk | contribs) (Created page with "This rminfo service saves the detected data (previous.dat) for the next boot. If RMSaveDetectedData finds a previous.dat file, the snoop values will be preserved; otherwise, t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This rminfo service saves the detected data (previous.dat) for the next boot. If RMSaveDetectedData finds a previous.dat file, the snoop values will be preserved; otherwise, the snoop level will be set to SNP_NO_RISK.

Syntax

RMSaveDetectedData(SaveFlags);

Parameters

SaveFlags (USHORT) - input
The following are possible values:
RM_SAVE_DEFAULT
Saves with default options.

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_GENERAL_FAILURE
   RMRC_OUT_OF_MEMORY
   RMRC_SEARCH_FAILED
   RMRC_SUCCESS

Example Code

C

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

USHORT    SaveFlags;
APIRET    rc;

rc = RMSaveDetectedData(SaveFlags);