SafeArrayUnlock

HRESULT SafeArrayUnlock( 
  SAFEARRAY FAR*  psa  
);
 

Decrements the lock count of an array so it can be freed or resized.

Parameter

psa
Pointer to an array descriptor created by SafeArrayCreate.

Return Value

The return value obtained from the returned HRESULT is one of the following.

Return value Meaning
S_OK Success.
E_INVALIDARG The argument psa was not a valid safe array descriptor.
E_UNEXPECTED The array could not be unlocked.

Comments

This function is called after access to the data in an array is finished.

QuickInfo

  Windows NT: Use version 3.1 and later.
  Windows: Use Windows 95 and later.
  Header: Declared in oleauto.h.
  Import Library: Link with oleaut32.lib.