System.VarUtils.SafeArrayUnlock

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function SafeArrayUnlock; external oleaut name 'SafeArrayUnlock';

C++

extern "C" HRESULT __stdcall SafeArrayUnlock(System::PVarArray VarArray);

Properties

Type Visibility Source Unit Parent
function external public
System.VarUtils.pas
System.VarUtils.hpp
System.VarUtils System.VarUtils

Description

Unlocks a safe array.

SafeArrayUnlock unlocks the safe array given through the VarArray parameter. VarArray is a pointer to the safe array.

The possible return values of SafeArrayUnlock are listed in the table below, together with their meaning.



Value Meaning

VAR_OK

The operation was completed successfully.

VAR_INVALIDARG

The given argument is nil.

VAR_ARRAYISLOCKED

The array given through VarArray is locked.



If the unlocking operation succeeded, VarArray points to the unlocked safe array.

The safe array referenced by VarArray is assumed to have been locked using the SafeArrayLock function.

See Also