How to explore hard disk files using c++ driver developping?
Hi gueys,
I have spent weeks in searching to know how to Explore hard disk files using c++ driver developping?.
I'm developing anti-virus program, only I want is: when the user choose custom scan from scan options the program load a driver and send the path to the driver and the driver scan the specific directory and return the file stream to check it if there bad md5 hash or not.
I will explain what is the purpose of my question.
well, if you know there are many viruses who can stealthy invisible and no one can see it at any level ( adminstrator , system ) only in kernel mode, ( for example the virus known as Packet.Win32.Krap.ar this virus fully invisible you cant see it by any program at any level only in kernel mode).
now, do you have answer to my question?
I hope that
thanx
note: if you need any explanation, just tell me.
Rasool Ahmed
Junior Poster in Training
52 posts since Mar 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
What is wrong with using win32 api functions FindFirstFile() and FindNextFile() ? Can't DDK programs access win32 api?
Ancient Dragon
Achieved Level 70
32,275 posts since Aug 2005
Reputation Points: 5,852
Solved Threads: 2,590
Skill Endorsements: 70
Body I have tried this but I got error ( "Winternel.h" No such file or directory ) even though I have already WinDDK installed so why I have this message
Rasool Ahmed
Junior Poster in Training
52 posts since Mar 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
Rasool Ahmed
Junior Poster in Training
52 posts since Mar 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
Dear BobS0327, I have download it and install it but when I am using VS 2008 visual ddk the problem stay same and when I use VS 2010 visual ddk I got alot of error in "winternl.h", what's going on?????
Though, I am using windows xp.
Rasool Ahmed
Junior Poster in Training
52 posts since Mar 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
But I am using windows xp and I know this folder where he is. And I have include it in VS 2008 and VS 2010 but I have same error.
Rasool Ahmed
Junior Poster in Training
52 posts since Mar 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
I have did that already before you tald me, but the problem stay same.
However, my problem split into 2 : the first in VS 2008 I got message contains "no such file or directory" and the second in VS 2010 I got alot of errors no one of them contains the privous message, I am assuming that the sdk last version did not work with VS 2008, it works with VS 2010 but I got alot alot of errors, here are the errors that I have got:
Error 1 error C2146: syntax error : missing ';' before identifier 'ContextRecord' c:\programfiles\microsoftsdks\windows\v7.0a\include\winnt.h 6361 1 test
Error 2 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v7.0a\include\winnt.h 6361 1 test
Error 3 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v7.0a\include\winnt.h 6361 1 test
Error 4 error C2065: 'PCONTEXT' : undeclared identifier c:\program files\microsoft sdks\windows\v7.0a\include\winnt.h 12983 1 test
Error 5 error C2146: syntax error : missing ')' before identifier 'ContextRecord' c:\program files\microsoft sdks\windows\v7.0a\include\winnt.h 12984 1 test
Warning 6 warning C4229: anachronism used : modifiers on data are ignored c:\program files\microsoft sdks\windows\v7.0a\include\winnt.h 12984 1 test
Error 7 error C2182: 'RtlCaptureContext' : illegal use of type 'void' c:\program files\microsoft sdks\windows\v7.0a\include\winnt.h 12984 1 test
Error 8 error C2491: 'RtlCaptureContext' : definition of dllimport data not allowed c:\program files\microsoft sdks\windows\v7.0a\include\winnt.h 12984 1 test
Error 9 error C2059: syntax error : ')' c:\program files\microsoft sdks\windows\v7.0a\include\winnt.h 12984 1 test
Error 10 error C2143: syntax error : missing ';' before '__stdcall' c:\program files\microsoft sdks\windows\v7.0a\include\winnt.h 13372 1 test
Error 11 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v7.0a\include\winnt.h 13372 1 test
Error 12 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v7.0a\include\winnt.h 13376 1 test
Error 13 error C3861: '__readfsdword': identifier not found c:\program files\microsoft sdks\windows\v7.0a\include\winnt.h 14982 1 test
these errors in VS 2010
Rasool Ahmed
Junior Poster in Training
52 posts since Mar 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
Thank you borther, that was very helpful I will tried and I will reply you if any problem occured.
Thanx again.
Rasool Ahmed
Junior Poster in Training
52 posts since Mar 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
Question Answered as of 1 Year Ago by
BobS0327
and
Ancient Dragon