ReadSector

This function retrieves a sector from a logical hard disk drive and loads a buffer with it. Works with Windows 95 OSR2, Windows 98 and Windows ME.

long _stdcall ReadSector(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, loaded with the sector information. Should be at least equal to sector size.

Back.