![]() |
UltraDefrag Engine Architecture - Reference Manual - Guides |
|
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. |
void __stdcall udefrag_kernel_native_init | ( | void | ) |
Initializes the driver.
Definition at line 48 of file udefrag-kernel.c.
References InitDriverResources().
void __stdcall udefrag_kernel_native_unload | ( | void | ) |
Frees driver resources.
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.
[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. |
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.
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.
[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. |
Definition at line 206 of file udefrag-kernel.c.
References GetMap().