udefrag.dll Logo udefrag.dll

Architecture - Reference Manual - Guides

Disks

Functions

int internal_validate_volume (unsigned char letter, int skip_removable, int *is_removable, char *fsname, LARGE_INTEGER *ptotal, LARGE_INTEGER *pfree)
 Retrieves a volume parameters.
int __stdcall udefrag_get_avail_volumes (volume_info **vol_info, int skip_removable)
 Retrieves a list of volumes available for defragmentation.
int __stdcall udefrag_validate_volume (unsigned char letter, int skip_removable)
 Checks a volume for the defragmentation possibility.

Function Documentation

int internal_validate_volume ( unsigned char  letter,
int  skip_removable,
int *  is_removable,
char *  fsname,
LARGE_INTEGER *  ptotal,
LARGE_INTEGER *  pfree 
)

Retrieves a volume parameters.

Parameters:
[in] letter the volume letter.
[in] skip_removable the boolean value defining, must removable drives be treated as invalid or not.
[out] is_removable pointer to the variable receiving boolean value defining is volume removable or not.
[out] fsname pointer to the buffer receiving the name of the filesystem containing on the volume.
[out] ptotal pointer to a variable receiving a size of the volume.
[out] pfree pointer to a variable receiving the amount of free space.
Returns:
Zero for success, negative value otherwise.
Note:
  • Internal use only.
  • if skip_removable is equal to FALSE and you want to validate a floppy drive without a floppy disk then you will hear noise :))

Definition at line 142 of file volume.c.

Referenced by udefrag_get_avail_volumes(), and udefrag_validate_volume().

int __stdcall udefrag_get_avail_volumes ( volume_info **  vol_info,
int  skip_removable 
)

Retrieves a list of volumes available for defragmentation.

Parameters:
[in] vol_info pointer to variable receiving the volume list array address.
[in] skip_removable the boolean value defining, must removable drives be skipped or not.
Returns:
Zero for success, negative value otherwise.
Note:
if skip_removable is equal to FALSE and you have a floppy drive without a floppy disk then you will hear noise :))
Example:
 volume_info *v;
 int i;

 if(udefrag_get_avail_volumes(&v,TRUE) >= 0){
     for(i = 0;;i++){
         if(!v[i].letter) break;
         // ...
     }
 }

Definition at line 62 of file volume.c.

References internal_validate_volume().

int __stdcall udefrag_validate_volume ( unsigned char  letter,
int  skip_removable 
)

Checks a volume for the defragmentation possibility.

Parameters:
[in] letter the volume letter.
[in] skip_removable the boolean value defining, must removable drives be skipped or not.
Returns:
Zero for success, negative value otherwise.
Note:
if skip_removable is equal to FALSE and you want to validate a floppy drive without a floppy disk then you will hear noise :))

Definition at line 97 of file volume.c.

References internal_validate_volume().


Generated on Sat May 29 23:06:44 2010 for udefrag.dll by doxygen 1.6.2