WriteSectorOldW95

This function writes a sector on a logical hard disk drive, using a preloaded buffer. Works only on the first (original) edition of Windows 95.

long _stdcall WriteSectorOldW95(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.