UltraDefrag Engine Logo UltraDefrag Engine

Architecture - Reference Manual - Guides

Interface

Functions

BOOL WINAPI DllMain (HANDLE hinstDLL, DWORD dwReason, LPVOID lpvReserved)
 udefrag-kernel.dll entry point.
void __stdcall udefrag_kernel_native_init (void)
 Initializes the driver.
void __stdcall udefrag_kernel_native_unload (void)
 Frees driver resources.
int __stdcall udefrag_kernel_start (char *volume_name, UDEFRAG_JOB_TYPE job_type, int cluster_map_size)
 Starts a disk defragmentation/analysis/optimization job.
int __stdcall udefrag_kernel_stop (void)
 Terminates the running disk defragmentation/analysis/optimization job.
int __stdcall udefrag_kernel_get_statistic (STATISTIC *stat, char *map, int map_size)
 Retrieves the disk defragmentation statistics.

Function Documentation

void __stdcall udefrag_kernel_native_init ( void   ) 

Initializes the driver.

Note:
Designed especially to replace DllMain functionality in case of monolithic native application.

Definition at line 48 of file udefrag-kernel.c.

References InitDriverResources().

void __stdcall udefrag_kernel_native_unload ( void   ) 

Frees driver resources.

Note:
Designed especially to replace DllMain functionality in case of monolithic native application.

Definition at line 58 of file udefrag-kernel.c.

References FreeDriverResources().

int __stdcall udefrag_kernel_start ( char *  volume_name,
UDEFRAG_JOB_TYPE  job_type,
int  cluster_map_size 
)

Starts a disk defragmentation/analysis/optimization job.

Parameters:
[in] volume_name the name of the volume.
[in] job_type the type of the job.
[in] cluster_map_size the size of the cluster map, in bytes.
Returns:
Zero for success, negative value otherwise.

Definition at line 70 of file udefrag-kernel.c.

References AllocateMap(), Analyze(), CheckForStopEvent(), CheckForSynchObjects(), CloseVolume(), Defragment(), DestroyLists(), InitializeOptions(), Optimize(), RemoveReportFromDisk(), and SaveReportToDisk().

int __stdcall udefrag_kernel_stop ( void   ) 

Terminates the running disk defragmentation/analysis/optimization job.

Returns:
Zero for success, negative value otherwise.

Definition at line 185 of file udefrag-kernel.c.

References CheckForSynchObjects().

int __stdcall udefrag_kernel_get_statistic ( STATISTIC *  stat,
char *  map,
int  map_size 
)

Retrieves the disk defragmentation statistics.

Parameters:
[out] stat pointer to a variable receiving statistical data.
[out] map pointer to buffer receiving the cluster map.
[in] map_size the size of the cluster map, in bytes.
Returns:
Zero for success, negative value otherwise.

Definition at line 206 of file udefrag-kernel.c.

References GetMap().


Generated on Sat May 29 23:06:46 2010 for UltraDefrag Engine by doxygen 1.6.2