UltraDefrag Engine Logo UltraDefrag Engine

Architecture - Reference Manual - Guides

Universal Scan

Functions

BOOLEAN AddFile (short *path, PFILE_BOTH_DIR_INFORMATION pFileInfo)
 Adds a file to the file list.
BOOLEAN UnwantedStuffOnFatOrUdfDetected (PFILE_BOTH_DIR_INFORMATION pFileInfo, PFILENAME pfn)
 Checks, must file be skipped or not.
BOOLEAN ConsoleUnwantedStuffDetected (WCHAR *Path, ULONG *InsideFlag)
 Checks, must file be skipped or not in case when cluster map is not used.
int FindFiles (WCHAR *ParentDirectoryPath)
 Searches recursively for files on the path.
BOOLEAN AddFileToFragmented (PFILENAME pfn)
 Adds a file to the list of fragmented files.
void UpdateFragmentedFilesList (void)
 Removes all unfragmented files from the list of fragmented files.

Function Documentation

BOOLEAN AddFile ( short *  path,
PFILE_BOTH_DIR_INFORMATION  pFileInfo 
)

Adds a file to the file list.

Parameters:
[in] path the full path of the file.
[in] pFileInfo pointer to the structure containing a file attributes.
Returns:
Boolean value: TRUE for success, FALSE otherwise.
Note:
Adds a file only if its information needs to be cached.

Definition at line 191 of file findfiles.c.

References DumpFile(), MarkFileSpace(), and UnwantedStuffOnFatOrUdfDetected().

Referenced by FindFiles().

BOOLEAN UnwantedStuffOnFatOrUdfDetected ( PFILE_BOTH_DIR_INFORMATION  pFileInfo,
PFILENAME  pfn 
)

Checks, must file be skipped or not.

Parameters:
[in] pFileInfo pointer to the structure containing a file attributes.
[in] pfn pointer to the structure describing the file.
Returns:
Boolean value. TRUE indicates that the file must be skipped, FALSE indicates contrary.

Definition at line 333 of file findfiles.c.

References IsStringInFilter().

Referenced by AddFile().

BOOLEAN ConsoleUnwantedStuffDetected ( WCHAR *  Path,
ULONG *  InsideFlag 
)

Checks, must file be skipped or not in case when cluster map is not used.

Parameters:
[in] Path the full path of the file.
[out] InsideFlag a boolean value indicating are we inside the directory the context menu handler is running for, or not.
Returns:
Boolean value. TRUE indicates that the file must be skipped, FALSE indicates contrary.
Note:
InsideFlag is applicable only for context menu handler. TRUE indicates that we are inside the selected directory and we need to save information about the file. FALSE indicates that we are going in right direction and we must scan specified parent directory for files, but we don't need to save information about this parent directory itself.

Definition at line 384 of file findfiles.c.

References IsStringInFilter().

Referenced by FindFiles().

int FindFiles ( WCHAR *  ParentDirectoryPath  ) 

Searches recursively for files on the path.

Parameters:
[in] ParentDirectoryPath the full path of the directory which must be scanned.
Returns:
Zero for success, negative value otherwise.
Note:
Here we are skipping as much files as possible, because this dramatically descreases the volume analysis time.

Definition at line 42 of file findfiles.c.

References AddFile(), CheckForStopEvent(), and ConsoleUnwantedStuffDetected().

Referenced by Analyze().

BOOLEAN AddFileToFragmented ( PFILENAME  pfn  ) 

Adds a file to the list of fragmented files.

Parameters:
[in] pfn pointer to the structure describing the file.
Returns:
Boolean value: TRUE for success, FALSE otherwise.

Definition at line 275 of file findfiles.c.

Referenced by GenerateFragmentedFilesList().


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