DrvRestoreParametersKey

BOOL
   DrvRestoreParametersKey(
       PREG_ACCESS  RegAccess
       );

The DrvRestoreParametersKey function restores registry information that was saved when the driver called DrvSaveParametersKey.

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.

The DrvRestoreParametersKey function deletes the temporary file in which the key information was written by DrvSaveParametersKey, and removes the file name from the REG_ACCESS structure.

Drivers must call DrvCreateServicesNode before calling DrvRestoreParametersKey.

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