This function decrements the lock count of an array so it can be freed or resized.
At a Glance
Header file: | Oleauto.h |
Windows CE versions: | 2.0 and later |
Syntax
HRESULT SafeArrayUnlock(SAFEARRAY FAR* psa);
Parameters
psa
Pointer to an array descriptor created by SafeArrayCreate.
Return Values
One of the values obtained from the returned HRESULT and described in the following table is returned.
Value | Description |
S_OK | Success. |
E_INVALIDARG | The psa parameter was not a valid safe array descriptor. |
E_UNEXPECTED | The array could not be unlocked. |
Remarks
This function is called after access to the data in an array is finished. Passing into this function any invalid and, under some circumstances, NULL pointers will result in unexpected termination of the application.