WriteSectors Method

Writes data to sectors on a disk.

Syntax

public void WriteSectors(long volumeHandle, long startingSector, int sectorCount, byte[] buffer);
Public Sub WriteSectors(ByVal VolumeHandle As Long, ByVal StartingSector As Long, ByVal SectorCount As Integer, ByVal Buffer As String)

Remarks

This method writes data to sectors of the disk identified by VolumeHandle.

The value passed for VolumeHandle must be a volume handle obtained from the OpenVolume method; refer to its documentation for more information.

The StartingSector parameter specifies which sector to begin writing data to.

The SectorCount parameter specifies the number of sectors to write data to.

The data to write to the disk must be passed in Buffer, whose size must be at least as large as the amount of data that is to be written; i.e., SectorCount * SectorSize, where SectorSize is the value returned by GetSectorSize.

 
 
Copyright (c) 2021 Callback Technologies, Inc. - All rights reserved.
CBFS Direct 2020 .NET Edition - Version 20.0 [Build 7850]