SafeArrayUnaccessData function (oleauto.h)

Decrements the lock count of an array, and invalidates the pointer retrieved by SafeArrayAccessData.

Syntax

HRESULT SafeArrayUnaccessData(
  [in] SAFEARRAY *psa
);

Parameters

[in] psa

An array descriptor created by SafeArrayCreate.

Return value

This function can return one of these values.

Return code Description
S_OK
Success.
E_INVALIDARG
The argument psa is not valid.
E_UNEXPECTED
The array could not be unlocked.

Requirements

Requirement Value
Target Platform Windows
Header oleauto.h
Library OleAut32.lib
DLL OleAut32.dll