Click here to Skip to main content
15,889,853 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Finding files Pin
David Crow21-Sep-07 8:05
David Crow21-Sep-07 8:05 
AnswerRe: Finding files Pin
Waldermort21-Sep-07 8:11
Waldermort21-Sep-07 8:11 
GeneralRe: Finding files Pin
David Crow21-Sep-07 8:17
David Crow21-Sep-07 8:17 
GeneralRe: Finding files Pin
Waldermort21-Sep-07 8:26
Waldermort21-Sep-07 8:26 
GeneralRe: Finding files Pin
David Crow21-Sep-07 8:45
David Crow21-Sep-07 8:45 
GeneralRe: Finding files Pin
Waldermort21-Sep-07 8:55
Waldermort21-Sep-07 8:55 
QuestionRe: Finding files Pin
David Crow21-Sep-07 10:01
David Crow21-Sep-07 10:01 
AnswerRe: Finding files Pin
Waldermort21-Sep-07 21:20
Waldermort21-Sep-07 21:20 
you would need to use the FSCTL_GET_EXTENT_BUFFERS. The trouble is with this operation is that you don't know how large the buffer should be. I wrapped the call up in a class with the buffer as a static member. Each time the buffer is too small, I double the size and keep calling until successful.

The Extent count indicates how many fragments the file has, 0 indicates that it is located in the MFT. Each extent returned will then tell you how many clusters each fragment has. By adding these and multiplying by your drives 'bytes per cluster' you will find out exactly how much space a particular file/folder is taking.

Also be aware of NT's compressed runs which is indicated by a startLCN of -1. I still haven't managed to get my head around what this actualy means.

Waldermort

GeneralRe: Finding files Pin
David Crow25-Sep-07 10:55
David Crow25-Sep-07 10:55 
GeneralRe: Finding files Pin
Waldermort25-Sep-07 19:57
Waldermort25-Sep-07 19:57 
Questionhow to search file on remote computer in a particular directory Pin
rajneshmalik19-Sep-07 21:19
rajneshmalik19-Sep-07 21:19 
AnswerRe: how to search file on remote computer in a particular directory Pin
Roger Broomfield19-Sep-07 22:29
Roger Broomfield19-Sep-07 22:29 
QuestionRe: how to search file on remote computer in a particular directory Pin
David Crow20-Sep-07 2:58
David Crow20-Sep-07 2:58 
QuestionHow to create progress dialog box? Pin
AnayKulkarni19-Sep-07 21:08
AnayKulkarni19-Sep-07 21:08 
AnswerRe: How to create progress dialog box? Pin
nbugalia19-Sep-07 21:18
nbugalia19-Sep-07 21:18 
GeneralRe: How to create progress dialog box? Pin
Cedric Moonen19-Sep-07 21:21
Cedric Moonen19-Sep-07 21:21 
GeneralRe: How to create progress dialog box? Pin
nbugalia19-Sep-07 21:42
nbugalia19-Sep-07 21:42 
GeneralRe: How to create progress dialog box? Pin
Cedric Moonen19-Sep-07 21:51
Cedric Moonen19-Sep-07 21:51 
GeneralRe: How to create progress dialog box? Pin
nbugalia19-Sep-07 22:05
nbugalia19-Sep-07 22:05 
GeneralRe: How to create progress dialog box? Pin
Cedric Moonen19-Sep-07 22:40
Cedric Moonen19-Sep-07 22:40 
GeneralRe: How to create progress dialog box? Pin
nbugalia19-Sep-07 22:56
nbugalia19-Sep-07 22:56 
GeneralRe: How to create progress dialog box? Pin
Cedric Moonen19-Sep-07 23:04
Cedric Moonen19-Sep-07 23:04 
GeneralRe: How to create progress dialog box? Pin
nbugalia19-Sep-07 23:13
nbugalia19-Sep-07 23:13 
AnswerRe: How to create progress dialog box? Pin
David Crow20-Sep-07 2:56
David Crow20-Sep-07 2:56 
Questionhow to get the value of a check box in a dialog box Pin
Dhiraj kumar Saini19-Sep-07 20:29
Dhiraj kumar Saini19-Sep-07 20:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.