[Overview][Constants][Types][Procedures and functions][Index] Reference for unit 'amigados' (#aros)

DosFormat

Causes a filesystem to initialize itself

Declaration

Source position: amigados.pas line 2364

function DosFormat(

  const DeviceName: STRPTR;

  const VolumeName: STRPTR;

  DosType: LongWord

):LongBool;

Arguments

DeviceName

  

Name of device to be formatted. ':' must be supplied.

VolumeName

  

Name for volume (if supported). No ':'.

DosType

  

Type of format, if filesystem supports multiple types.

Description

Interface for initializing new media on a device. This causes the filesystem to write out an empty disk structure to the media, which should then be ready for use. This assumes the media has been low- level formatted and verified already.

The filesystem should be inhibited before calling DosFormat() to make sure you don't get an ERROR_OBJECT_IN_USE.


Documentation generated on: 2017-01-10