ReactOS  0.4.14-dev-50-g13bb5e2
DriveVolume.cpp File Reference
#include "DriveVolume.h"
Include dependency graph for DriveVolume.cpp:

Go to the source code of this file.

Classes

struct  BuildDBInfo
 

Macros

#define CLUSTERS   4096
 

Functions

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

Macro Definition Documentation

◆ CLUSTERS

#define CLUSTERS   4096

Definition at line 171 of file DriveVolume.cpp.

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;
320 
321  Vol->Files.push_back (Info);
322 
323  if (*(DBInfo->QuitMonitor) == true)
324  return (false);
325 
326  DBInfo->ClusterProgress += (uint64)Info.Clusters;
327  *(DBInfo->Percent) =
328  ((double)DBInfo->ClusterProgress / (double)DBInfo->ClusterCount) * 100.0f;
329 
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