DrvSaveParametersKey

BOOL
   DrvSaveParametersKey(
       PREG_ACCESS
RegAccess
       );

The DrvSaveParametersKey function saves the current contents of the driver’s \Parameters registry key, along with its subkeys, in a temporary file.

Parameters

RegAccess

Pointer to a globally-defined structure of type REG_ACCESS.

Return Value

Returns TRUE if the operation succeeds. Otherwise returns FALSE.

Comments

The structure pointed to by RegAccess must be a single, globally-defined REG_ACCESS structure that the driver uses with all calls to drvlib.lib functions requiring a RegAccess parameter.

If the DrvSaveParametersKey function succeeds, the REG_ACCESS structure contains the name of the temporary file.

To restore the saved registry information, call DrvRestoreParametersKey.

Drivers must call DrvCreateServicesNode before calling DrvSaveParametersKey.

For additional information, see Installing and Configuring your Driver, Using drvlib.lib.