Click or drag to resize
ImDiskAPIConvertCHSToLBA Method (NativeFileIOWin32APIDISK_GEOMETRY, UInt32)
This function converts an LBA disk address to three-byte partition style CHS format.

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

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.
LBA
Type: SystemUInt32
LBA disk address.

Return Value

Type: Byte
Calculated CHS values expressed in an array of three bytes.
See Also