RtvdbRelease

RtvdbRelease closes the variable database library for the current process.

Syntax

Copy
DWORD RtvdbRelease(
  [in]    BOOL ForceClose
);

Parameters

[in] ForceClose

TRUE to automatically close any opened handles, FALSE to fail the function if handles remain open.

Return Values

Error code Meaning

ERROR_SUCCESS

The function succeeded.

ERROR_NOT_READY

The library is not initialized.

ERROR_OPERATION_ABORTED

Handles are still opened and ForceClose is FALSE.

Remarks

Before a process terminates, it should call this function once to release the resources associated with the opened channel.

Requirements

Minimum supported version Header Library

wRTOS 1.0 SDK

RtvdbApi.h

RtvdbApi_W64.lib (Windows), RtvdbApi.lib (RTSS)

See Also: