DTWAIN_ArrayCreate

Top  Previous  Next

The DTWAIN_ArrayCreate creates a DTWAIN_ARRAY.

 

DTWAIN_ARRAY DTWAIN_ArrayCreate (

LONG

ArrayType,

LONG

InitialSize );

 

Parameters

ArrayType

This is the data type that the created DTWAIN_ARRAY will store.

 

InitialSize

This is the initial size of the array.

 

Return Values

If the function succeeds, a new DTWAIN_ARRAY is returned.  Otherwise, NULL is returned.

 

Comments

The DTWAIN_ArrayCreate function returns a new DTWAIN_ARRAY of the type ArrayType. A list of the data types can be found in the topic DTWAIN_ARRAY Data Types. The InitialSize denotes the initial size of the array.  This must be >= 0.

 

The returned DTWAIN_ARRAY is valid until DTWAIN_ArrayDestroy or DTWAIN_SysDestroy is called.

 

TWAIN State Transitions

None.

 

Prerequisite Function Call(s)

DTWAIN_SysInitialize

 

See Also

DTWAIN_ARRAY Creation and Destruction