ReactOS 0.4.16-dev-401-g45b008d
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 327 of file DriveVolume.cpp.

328{
329 BuildDBInfo *DBInfo = (BuildDBInfo *) UserData;
330 DriveVolume *Vol = DBInfo->Volume;
331
332 Vol->Files.push_back (Info);
333
334 if (*(DBInfo->QuitMonitor) == true)
335 return (false);
336
337 DBInfo->ClusterProgress += (uint64)Info.Clusters;
338 *(DBInfo->Percent) =
339 ((double)DBInfo->ClusterProgress / (double)DBInfo->ClusterCount) * 100.0f;
340
341 return (true);
342}
FileList Files
Definition: DriveVolume.h:148
unsigned long long uint64
Definition: platform.h:18
static const char mbstate_t *static wchar_t const char mbstate_t *static const wchar_t int *static double
Definition: string.c:80
uint64 ClusterProgress
DriveVolume * Volume
double * Percent
bool * QuitMonitor
uint64 ClusterCount
_Must_inspect_result_ _In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR _Out_ WDFDEVICE _Inout_opt_ PWDF_CHILD_RETRIEVE_INFO Info
Definition: wdfchildlist.h:690