RtvdbCloseVariable

RtvdbCloseVariable closes a variable.

Syntax

Copy
DWORD RtvdbCloseVariable(
  [in]    RTVDB_VARIABLE Variable
);

Parameters

[in] Variable

A handle for the variable to close. To retrieve the corresponding handle, use RtvdbOpenVariable or RtvdbCreateVariable.

Return Values

Error code Meaning

ERROR_SUCCESS

The function succeeded.

ERROR_INVALID_PARAMETER

Parameter Variable is NULL.

ERROR_INVALID_HANDLE

Parameter Variable does not point to a variable or points to a closed variable.

ERROR_ABANDONED_WAIT_0

Failed to acquire the synchronization lock.

ERROR_NOT_READY

The calling process has not called RtvdbInitialize.

Requirements

Minimum supported version Header Library

wRTOS 1.0 SDK

RtvdbApi.h

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

See Also: