SafeArrayAllocDescriptorEx Function
Creates a safe array descriptor for an array of any valid VT type, including VT_RECORD without allocating the array data.
HRESULT SafeArrayAllocDescriptorEx( VARTYPE vt, unsigned int cDims, SAFEARRAY** ppsaOut );
Since SafeArrayAllocDescriptor does not take a VARTYPE, it is not possible to use it to create the safe array descriptor for an array of records. The SafeArrayAllocDescriptorEx is used to allocate a safe array descriptor for an array of records of the given dimensions.
Show: