Jump to content

RMSaveDetectedData: Difference between revisions

From EDM2
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..."
 
Ak120 (talk | contribs)
mNo edit summary
 
Line 1: Line 1:
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.  
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==
==Syntax==
  RMSaveDetectedData(SaveFlags);
  RMSaveDetectedData(SaveFlags)


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


==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. Other possible return values follow:
;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_BAD_FLAGS
RMRC_GENERAL_FAILURE
    RMRC_GENERAL_FAILURE
RMRC_OUT_OF_MEMORY
    RMRC_OUT_OF_MEMORY
RMRC_SEARCH_FAILED
    RMRC_SEARCH_FAILED
RMRC_SUCCESS
    RMRC_SUCCESS


==Example Code==
==Example Code==
===C===
;C
<PRE>
<PRE>
#include <os2.h>
#include <os2.h>

Latest revision as of 09:37, 5 April 2025

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);