ReactOS  0.4.13-dev-52-g0efcfec
DriveVolume.h File Reference
#include "Unfrag.h"
#include <vector>
#include <string>
Include dependency graph for DriveVolume.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


struct  FileAttr
struct  Extent
struct  FileInfo
struct  VolumeInfo
class  DriveVolume


typedef vector< FileInfoFileList
typedef bool(* ScanCallback) (FileInfo &Info, HANDLE &FileHandle, void *UserData)


bool BuildDBCallback (FileInfo &Info, HANDLE &FileHandle, void *UserData)

Typedef Documentation

◆ FileList

Definition at line 63 of file DriveVolume.h.

◆ ScanCallback

typedef bool(* ScanCallback) (FileInfo &Info, HANDLE &FileHandle, void *UserData)

Definition at line 83 of file DriveVolume.h.

Function Documentation

◆ BuildDBCallback()

bool BuildDBCallback ( FileInfo Info,
HANDLE FileHandle,
void UserData 

Definition at line 316 of file DriveVolume.cpp.

317 {
318  BuildDBInfo *DBInfo = (BuildDBInfo *) UserData;
319  DriveVolume *Vol = DBInfo->Volume;
321  Vol->Files.push_back (Info);
323  if (*(DBInfo->QuitMonitor) == true)
324  return (false);
326  DBInfo->ClusterProgress += (uint64)Info.Clusters;
327  *(DBInfo->Percent) =
328  ((double)DBInfo->ClusterProgress / (double)DBInfo->ClusterCount) * 100.0f;
330  return (true);
331 }
unsigned long long uint64
Definition: platform.h:18
struct TraceInfo Info
static const char mbstate_t *static wchar_t const char mbstate_t *static const wchar_t int *static double
Definition: string.c:80
GLfloat f
Definition: glext.h:7540
DriveVolume * Volume
uint64 ClusterProgress
FileList Files
Definition: DriveVolume.h:148
double * Percent
uint64 ClusterCount
bool * QuitMonitor