Click here to Skip to main content
15,908,445 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to get file record from file name? Pin
denghp12-Jul-09 23:19
denghp12-Jul-09 23:19 
AnswerRe: How to get file record from file name? Pin
Adam Roderick J12-Jul-09 23:29
Adam Roderick J12-Jul-09 23:29 
GeneralRe: How to get file record from file name? Pin
denghp14-Jul-09 2:43
denghp14-Jul-09 2:43 
AnswerRe: How to get file record from file name? Pin
chandu00412-Jul-09 23:33
chandu00412-Jul-09 23:33 
GeneralRe: How to get file record from file name? Pin
denghp14-Jul-09 2:42
denghp14-Jul-09 2:42 
GeneralRe: How to get file record from file name? Pin
chandu00414-Jul-09 17:50
chandu00414-Jul-09 17:50 
GeneralRe: How to get file record from file name? Pin
denghp21-Jul-09 21:01
denghp21-Jul-09 21:01 
GeneralRe: How to get file record from file name? [modified] Pin
chandu00422-Jul-09 1:08
chandu00422-Jul-09 1:08 
do you still want to use device io control for this or do you want any other way?
for example, you can use the following code to retrieve a structure from a file.

NTFS_FILE_RECORD_OUTPUT_BUFFER s;
FILE *fp;
fp=fopen(yourfilename,"rb");
fread(&s,sizeof(NTFS_FILE_RECORD_OUTPUT_BUFFER),1,fp);
fclose(fp);

or if you want to achieve this only using deviceiocontrol, then,
pass the filename to the deviceiocontrol as input parameter,
openthe file inside, read the structure and pass it as out parameter to the device io control.

--------------------------------------------
Suggestion to the members:
Please prefix your main thread subject with [SOLVED] if it is solved.
thanks.
chandu.

modified on Wednesday, July 22, 2009 7:24 AM

GeneralRe: How to get file record from file name? Pin
denghp22-Jul-09 14:52
denghp22-Jul-09 14:52 
GeneralRe: How to get file record from file name? Pin
chandu00422-Jul-09 19:33
chandu00422-Jul-09 19:33 
GeneralRe: How to get file record from file name? Pin
denghp22-Jul-09 19:53
denghp22-Jul-09 19:53 
AnswerRe: How to get file record from file name? Pin
David Crow13-Jul-09 4:41
David Crow13-Jul-09 4:41 
GeneralRe: How to get file record from file name? Pin
denghp14-Jul-09 2:44
denghp14-Jul-09 2:44 
GeneralRe: How to get file record from file name? Pin
David Crow14-Jul-09 2:49
David Crow14-Jul-09 2:49 
QuestionSimple Button Styles Question Pin
Dave Kerr12-Jul-09 23:11
mentorDave Kerr12-Jul-09 23:11 
AnswerRe: Simple Button Styles Question Pin
josda100013-Jul-09 2:12
josda100013-Jul-09 2:12 
Questionstring format Pin
kumamako12-Jul-09 22:58
kumamako12-Jul-09 22:58 
AnswerRe: string format Pin
chandu00412-Jul-09 23:09
chandu00412-Jul-09 23:09 
AnswerRe: string format Pin
CPallini12-Jul-09 23:34
mveCPallini12-Jul-09 23:34 
QuestionRe: string format Pin
David Crow13-Jul-09 4:45
David Crow13-Jul-09 4:45 
Questionstd::search matches start of data before passing to function, but not within function? Pin
Mike the Red12-Jul-09 22:46
Mike the Red12-Jul-09 22:46 
AnswerFound it... Pin
Mike the Red12-Jul-09 23:24
Mike the Red12-Jul-09 23:24 
QuestionCFormView in CDockablePane Pin
eight12-Jul-09 22:44
eight12-Jul-09 22:44 
QuestionNeed a program that implements nearest neighbor method in c Pin
singh.vikas850812-Jul-09 21:55
singh.vikas850812-Jul-09 21:55 
AnswerRe: Need a program that implements nearest neighbor method in c Pin
Rajesh R Subramanian12-Jul-09 21:59
professionalRajesh R Subramanian12-Jul-09 21:59 

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.