public static List <VehicleScapeAPI.DAQCollection> GetDAQCollections(uint daqHandle) { List <VehicleScapeAPI.DAQCollection> collections = new List <VehicleScapeAPI.DAQCollection>(); int colCount = 0; VehicleScapeAPI.GetDAQCollections(daqHandle, IntPtr.Zero, ref colCount); if (colCount > 0) { VehicleScapeAPI.DAQCollection[] cols = new VehicleScapeAPI.DAQCollection[colCount]; VehicleScapeAPI.GetDAQCollections(daqHandle, cols, ref colCount); collections.AddRange(cols); } return(collections); }