WriteSector

This function writes a sector on a logical hard disk drive, using a preloaded buffer. Works with Windows 95 OSR2, Windows 98 and Windows ME.

long _stdcall WriteSector(BYTE bDrive, DWORD Sector, WORD Count, LPSTR Buffer);

Parameters

bDrive: The number of the drive, A=1, B=2, C=3 and so on. Use 0 for default drive.
Sector: The number of the sector, starting from 0 and ending in MaxSectors-1.
Count: Ignored, use always 1.
Buffer: A string, preloaded with sector size bytes that will be written onto the disk.

Back.