VixError VixDiskLib_Write(VixDiskLibHandle diskHandle, VixDiskLibSectorType startSector, VixDiskLibSectorType numSectors, const uint8 *writeBuffer);
This function writes to an open virtual disk.
uint8 buf[VIXDISKLIB_SECTOR_SIZE]; VixDiskLibSectorType startSector; memset(buf, appGlobals.filler, sizeof buf); for (startSector = 0; startSector < appGlobals.numSectors; ++startSector) { VixError vixError; vixError = VixDiskLib_Write(disk.Handle(), appGlobals.startSector + startSector, 1, buf); CHECK_AND_THROW(vixError); }