SafeArrayUnaccessData

This function decrements the lock count of an array, and invalidates the pointer retrieved by SafeArrayAccessData.

At a Glance

Header file: Oleauto.h
Windows CE versions: 2.0 and later

Syntax

HRESULT SafeArrayUnaccessData(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

Passing into this function any invalid and, under some circumstances, NULL pointers will result in unexpected termination of the application.