Index   Commented   Search   About

SafeArrayAccessData

(psa, ppvdata)
SAFEARRAY FAR* psa
void HUGEP* FAR* ppvdata

Increments the lock count of an array and retrieves a pointer to the array data.

Parameters

psa

Pointer to an array descriptor created by SafeArrayCreate.

ppvdata

On exit, pointer to a pointer to the array data. Note that arrays may be larger than 64K, so huge pointers must be used in Windows version 3.1 or later.

Return Value

The SCODE obtained from the returned HRESULT is one of the following:

SCODE
Meaning
S_OK
Success.
E_INVALIDARG
The argument psa was not a valid safe array descriptor.
E_UNEXPECTED
The array could not be locked.

Related Links

Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder

More Online Helps

Win32 Programmer's Reference (win32.hlp)
Win32 Multimedia Programmer's Reference (mmedia.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (sock2.hlp)
Unix Manual Pages

Free Tech Secrets ;) Copyright © 2008 Free Tect Secrets ;) greatis just4fun network just4fun