Creates an array of objects given the class address.
HObject* __cdecl ClassArrayAlloc2(int type, int cItems, ClassClass *cb);
Returns an allocated object array.
type | Set this parameter to T_CLASS. Otherwise, the function will behave like ArrayAlloc and return an array of primitives. The exact type depends on whether this parameter is set to T_BOOLEAN, T_BYTE, T_CHAR, T_DOUBLE, T_FLOAT, T_INT, T_LONG, or T_SHORT. |
cItems | The number of elements in the array to allocate. |
*cb | The address of the class object. If the address is not known, use the function ClassArrayAlloc instead. If the type is T_CLASS, cb must be valid. |
This function was added as of versions 2925 through 3167 of the Microsoft virtual machine.