Unit formatdisk

Classes

TFormatDrive -

Functions

Register - wnd : the handle of the owner-window for the format-dialog drive : 0=a, 1=b .
SHFormatDrive -

Types

TFormatOptions

Constants

FDE_HD_Not_Allowed
FDE_Invalid_Drive_Type
FDE_No_Disk_In_Drive

Variables


Functions


procedure Register;

wnd : the handle of the owner-window for the format-dialog drive : 0=a, 1=b ... size : ? seems not to be implemented { action : 0 : quick - format (destroys only the fat) 1 : normal formatting 2 : "sys x:"} result : the result should be 0 if the function was successfull, but it seems that error # 6 (= error_invalid_handle) is returned on success

function SHFormatDrive (wnd:hwnd;drive:integer;size:uint;action:integer):integer;


Types


TFormatOptions = (foQuick,foNormal,foSystem);
TFormatDrive by Markus Stephany (c) 97 this component is used to format a floppy (or a hd) under windows 95/delphi 2.01 it wraps the explorer's SHFormatDrive-dialog freeware, no limitations (except of the copyright), no guaranties, no fee... just enjoy. contact: mirbir.st@t-online.de mirbir.st@saargate.de http://home.t-online.de/home/mirbir.st/ revision 0.1 - initial release 08/23/97

Constants

FDE_HD_Not_Allowed = -102

FDE_Invalid_Drive_Type = -100

switches whether hard-drives can be formatted or not (for security

FDE_No_Disk_In_Drive = -101


Variables