Click or drag to resize
ImDiskAPIConvertCHSToLBA Method (NativeFileIOWin32APIDISK_GEOMETRY, Byte)
This function converts a CHS disk address to LBA format.

Namespace: LTR.IO.ImDisk
Assembly: ImDiskNet (in ImDiskNet.dll) Version: 1.0.0.0 (1.0.007.0)
Syntax
public static uint ConvertCHSToLBA(
	DISK_GEOMETRY DiskGeometry,
	byte[] CHS
)

Parameters

DiskGeometry
Type: DISK_GEOMETRY
Pointer to a DISK_GEOMETRY structure that contains information about logical geometry of the disk. This function only uses the SectorsPerTrack and TracksPerCylinder members.
CHS
Type: SystemByte
Pointer to CHS disk address in three-byte partition table style format.

Return Value

Type: UInt32
Calculated LBA disk address.
See Also