ReactOS 0.4.15-dev-8145-ga541a46
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.

Classes

struct  FileAttr
 
struct  Extent
 
struct  FileInfo
 
struct  VolumeInfo
 
class  DriveVolume
 

Typedefs

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

Functions

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 137 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