RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
VarUtils.SafeArrayUnlock Function

Unlocks a safe array.

Pascal
function SafeArrayUnlock(VarArray: PVarArray): HRESULT; stdcall;
C++
__stdcall HRESULT SafeArrayUnlock(PVarArray VarArray);

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 
The operation was completed successfully. 
The given argument is nil
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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!