Unit Format

File Name : Format.pas Object Name : TFormat Author : Mike Johnson (mjj@jps.net) Purpose : Read the article in March 1998 Windows Developer's Journal about an undocumented API in shell32.dll. This allowed for the formatting of floppies. Note : In the Format method you will have to validate which floppy is a 3.5 drive or a 5.25 drive. Right now it's assumed that A is 3.5 and B is 5.25. Copyright : No copyright. Use as you like. Please email me any changes or comments.

Classes

TFormat -

Functions

Register - Non object functions
SHFormatDrive - Non object functions

Types

TCapacity
TDriveType
TFmtType

Constants

Variables


Functions


procedure Register;

Non object functions

function SHFormatDrive(hWnd : HWND; iDriveID, iCapacity, iFormatType : Integer) : longint;

Non object functions

Types


TCapacity  = (capDefault, capHigh, capLow);

TDriveType = (dtADrive, dtBDrive);

TFmtType   = (fmtQuick, fmtFull, fmtBoot);

Constants


Variables