MediaType DriveGetDefaultMedia(
word driveNumber);
This routine returns the default media type for the specified drive. It returns a member of the
MediaType
enumerated type (described in the Data Structures reference). Note that a drive can be used for media types other than the default. For example, a high-density 3.5-inch drive will have a default media type of MEDIA_1M44, but it can read from, write to, and format 3.5-inch disks with size MEDIA_720K.
See Also: DriveTestMediaSupport().
Include: drive.h
word DriveGetExtStatus(
word driveNumber);
This routine is much like
DriveGetStatus()
(described immediately below). However, in addition to returning all of the flags set by
DriveGetStatus()
, it also sets additional flags in the upper byte of the return value. It returns the following additional flags:
If an error condition exists,
DriveGetExtStatus()
returns zero.
See Also: DriveGetStatus().
Include: drive.h
char * DriveGetName(
word driveNumber, /* Get name of this drive */
char * buffer, /* Write name to this buffer */
word bufferSize); /* Size of buffer (in bytes) */
This routine finds the name of a specified drive. You should use this name when prompting the user to take any action regarding this drive (e.g. to insert a disk). The routine writes the name, as a null terminated string, to the buffer passed. It returns a pointer to the trailing null. If the drive does not exist, or the buffer is too small,
DriveGetName()
returns a null pointer.
Include: drive.h
word DriveGetStatus(
word driveNumber);
This routine returns the current status of a drive. The drive is specified by its drive number. The routine returns a word of
DriveStatus
flags. These flags are listed below:
DriveType
enumerated type.
If an error condition exists,
DriveGetStatus()
returns zero.
See Also: DriveGetExtStatus().
Include: drive.h
Boolean DriveTestMediaSupport(
word DriveNumber,
MediaType media); /* Desired disk size */
This routine checks whether the specified drive can support disks in the specified size. It returns true (i.e., non-zero) if the drive supports the size.
See Also: DriveGetDefaultMedia().
Include: drive.h
GEOS SDK TechDocs
|
|
DiskSave() ...
|
EC() ...