90{
99
101 {
103
106 {
108 }
109 }
110
113 {
115 return 1;
116 }
117
119 {
122 return 1;
123 }
124
126 {
129 return 1;
130 }
131
134 _tprintf(
_T(
"Volume size\t\t: %I64u MB\n"), VolumeSize >> 20);
139
140 _tprintf(
_T(
"\nAllocation Size\n---------------\n"));
145
146 _tprintf(
_T(
"\nMFT Information\n---------------\n"));
147 _tprintf(
_T(
"MFT size\t\t: %I64u MB (%I64u%% of drive)\n"),
VolumeInfo.MftValidDataLength.QuadPart >> 20, (
VolumeInfo.MftValidDataLength.QuadPart * 100) / VolumeSize);
151 _tprintf(
_T(
"MFT zone size\t\t: %I64u MB (%I64u%% of drive)\n"), (MftClusters *
VolumeInfo.BytesPerCluster) >> 20, (MftClusters * 100) /
VolumeInfo.TotalClusters.QuadPart);
153
154 _tprintf(
_T(
"\nMeta-Data files\n---------------\n"));
157 {
162
164 {
166 continue;
167 }
168
173 {
175 continue;
176 }
177
179 {
181 continue;
182 }
183
186 {
188 continue;
189 }
190
194 {
196 {
198 break;
199 }
200
202 }
203
205
207 }
208
211 return 0;
212}
BOOL WINAPI DeviceIoControl(IN HANDLE hDevice, IN DWORD dwIoControlCode, IN LPVOID lpInBuffer OPTIONAL, IN DWORD nInBufferSize OPTIONAL, OUT LPVOID lpOutBuffer OPTIONAL, IN DWORD nOutBufferSize OPTIONAL, OUT LPDWORD lpBytesReturned OPTIONAL, IN LPOVERLAPPED lpOverlapped OPTIONAL)
#define INVALID_HANDLE_VALUE
#define HeapFree(x, y, z)
_Must_inspect_result_ _Inout_opt_ PUNICODE_STRING VolumeName
_Must_inspect_result_ _In_ PFILE_OBJECT _In_ ULONG _In_ FILE_INFORMATION_CLASS _Out_opt_ PULONG LengthReturned
_Must_inspect_result_ _Out_ PHANDLE VolumeHandle
struct NTFS_ATTR_RECORD * PNTFS_ATTR_RECORD
static TCHAR * MetaDataFiles[]
struct _FILE_RECORD_HEADER * PFILE_RECORD_HEADER
#define ATTRIBUTE_TYPE_DATA
#define ATTRIBUTE_TYPE_END
#define FSCTL_GET_NTFS_VOLUME_DATA
#define FSCTL_GET_NTFS_FILE_RECORD
struct NTFS_ATTR_RECORD::@169::@171 Resident
struct NTFS_ATTR_RECORD::@169::@172 NonResident
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR OutputBuffer
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR InputBuffer
DWORD WINAPI GetLastError(void)