|
Tape Initialization
An application must use the CreateFile function to create a handle of a tape device. This handle is used in
subsequent operations on the tape in the device.
Before an application writes to a tape, the tape must be formatted according
to the needs of the application and the capabilities of the tape drive being
used. The CreateTapePartition function reformats a tape, creating on it a given number of partitions of a
specified size.
The PrepareTape function prepares a tape to be accessed or removed. This function can load,
unload, lock, or unlock a tape. This function can also tension the tape by moving the tape to the end of the tape and back to the beginning.
To retrieve and set information about a tape and tape drive, an application
uses the GetTapeParameters, SetTapeParameters, and GetTapeStatus functions.
GetTapeParameters retrieves information that describes a tape or a tape drive. The tape
information includes the tape's type, density, and block size; the number of
partitions on the tape; the amount of tape remaining; and so on. The tape drive
information includes the drive's default block size, the maximum partition count, and
the features that are supported.
SetTapeParameters either sets the tape block size or sets the tape drive flags that indicate
whether the drive supports hardware error correction, data compression, data
padding, or any combination of the three.
GetTapeStatus indicates whether the tape drive is ready to process tape commands.
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|