Converted to ULONG64 for array size calculation.