![]() |
udefrag.dll Architecture - Reference Manual - Guides |
|
Functions | |
void | udefrag_reload_settings (void) |
Reloads udefrag.dll specific options. | |
BOOL WINAPI | DllMain (HANDLE hinstDLL, DWORD dwReason, LPVOID lpvReserved) |
udefrag.dll entry point. | |
void __stdcall | udefrag_monolithic_native_app_init (void) |
Initializes all libraries required for the native application. | |
void __stdcall | udefrag_monolithic_native_app_unload (void) |
Frees resources of all libraries required for the native application. | |
int __stdcall | udefrag_init (void) |
Initializes the UltraDefrag engine. | |
int __stdcall | udefrag_unload (void) |
Unloads the UltraDefrag engine. | |
DWORD WINAPI | engine_start (LPVOID p) |
Thread procedure delivering a disk defragmentation command to the driver. | |
int __stdcall | udefrag_start (char *volume_name, UDEFRAG_JOB_TYPE job_type, int cluster_map_size, STATUPDATEPROC sproc) |
Delivers a disk defragmentation command to the driver in a separate thread. | |
int __stdcall | udefrag_stop (void) |
Stops the running disk defragmentation job. | |
int __stdcall | udefrag_get_progress (STATISTIC *pstat, double *percentage) |
Retrieves the progress information of the running disk defragmentation job. | |
int __stdcall | udefrag_get_map (char *buffer, int size) |
Retrieves the cluster map of the currently processing volume. | |
char *__stdcall | udefrag_get_default_formatted_results (STATISTIC *pstat) |
Retrieves the default formatted results of the completed disk defragmentation job. | |
char *__stdcall | udefrag_get_error_description (int error_code) |
Retrieves a human readable error description for the error codes defined in udefrag.h header file. |
void udefrag_reload_settings | ( | void | ) |
Reloads udefrag.dll specific options.
Definition at line 43 of file settings.c.
Referenced by udefrag_start().
void __stdcall udefrag_monolithic_native_app_init | ( | void | ) |
void __stdcall udefrag_monolithic_native_app_unload | ( | void | ) |
Frees resources of all libraries required for the native application.
int __stdcall udefrag_init | ( | void | ) |
int __stdcall udefrag_unload | ( | void | ) |
DWORD WINAPI engine_start | ( | LPVOID | p | ) |
Thread procedure delivering a disk defragmentation command to the driver.
Definition at line 129 of file udefrag.c.
Referenced by udefrag_start().
int __stdcall udefrag_start | ( | char * | volume_name, | |
UDEFRAG_JOB_TYPE | job_type, | |||
int | cluster_map_size, | |||
STATUPDATEPROC | sproc | |||
) |
Delivers a disk defragmentation command to the driver in a separate thread.
[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. |
[in] | sproc | an address of the callback procedure to be called periodically during the running disk defragmentation job. This parameter may be NULL. |
Definition at line 152 of file udefrag.c.
References engine_start(), udefrag_reload_settings(), and udefrag_stop().
int __stdcall udefrag_stop | ( | void | ) |
Stops the running disk defragmentation job.
Definition at line 208 of file udefrag.c.
Referenced by udefrag_start().
int __stdcall udefrag_get_progress | ( | STATISTIC * | pstat, | |
double * | percentage | |||
) |
Retrieves the progress information of the running disk defragmentation job.
[out] | pstat | pointer to the STATISTIC structure. |
[out] | percentage | pointer to the variable receiving progress percentage. |
int __stdcall udefrag_get_map | ( | char * | buffer, | |
int | size | |||
) |
char* __stdcall udefrag_get_default_formatted_results | ( | STATISTIC * | pstat | ) |
Retrieves the default formatted results of the completed disk defragmentation job.
[in] | pstat | pointer to the STATISTIC structure, filled by udefrag_get_progress() call. |
char* __stdcall udefrag_get_error_description | ( | int | error_code | ) |