Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SafeArrayCreateVector function

Creates a one-dimensional array. A safe array created with SafeArrayCreateVector is a fixed size, so the constant FADF_FIXEDSIZE is always set.

Syntax


SAFEARRAY* SafeArrayCreateVector(
  _In_ VARTYPE vt,
  _In_ LONG    lLbound,
  _In_ ULONG   cElements
);

Parameters

vt [in]

The base type of the array (the VARTYPE of each element of the array). The VARTYPE is restricted to a subset of the variant types. Neither the VT_ARRAY nor the VT_BYREF flag can be set. VT_EMPTY and VT_NULL are not valid base types for the array. All other types are legal.

lLbound [in]

The lower bound for the array. This parameter can be negative.

cElements [in]

The number of elements in the array.

Return value

A safe array descriptor, or null if the array could not be created.

Remarks

Requirements

Header

OleAuto.h

Library

OleAut32.lib

DLL

OleAut32.dll

See also

SafeArrayCreate
SafeArrayDestroy

 

 

Show:
© 2018 Microsoft