SafeArrayGetDim

psa)
SAFEARRAY FAR* psa

Returns the number of dimensions in the array.

Parameters

psa

Pointer to an array descriptor created by SafeArrayCreate.

Return Value

Returns the number of dimensions in the array.

Example

HRESULT

CEnumPoint::Create(SAFEARRAY FAR* psa, CEnumPoint FAR* FAR* ppenum)

{

long lBound;

HRESULT hresult;

CEnumPoint FAR* penum;

// Verify that the SafeArray is the proper shape.

//

if(SafeArrayGetDim(psa) != 1)

return ReportResult(0, E_INVALIDARG, 0, 0);

.

. // Code omitted here.

.

}

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database