Is there a way to read the bytes directly from the harddrive? I mean the FS, dirt, "deleted" stuff and everything.
This is a discussion on read raw from the hd within the Windows Programming forums, part of the Platform Specific Boards category; Is there a way to read the bytes directly from the harddrive? I mean the FS, dirt, "deleted" stuff and ...
Is there a way to read the bytes directly from the harddrive? I mean the FS, dirt, "deleted" stuff and everything.
I don't see why people think Chuck Norris is so awesome. If he was really as great as they say, he would be over here slamming my head into the keybsk;lah;flksalfksdnlcslcnsldk;acklsd;glfbaskfl
/* When I wrote this, only God and I understood what I was doing... Now, God only knows */
This looks promising:
http://support.microsoft.com/kb/100027
gg
Cool, thanks; I didn't think it'd be that easy.
I don't see why people think Chuck Norris is so awesome. If he was really as great as they say, he would be over here slamming my head into the keybsk;lah;flksalfksdnlcslcnsldk;acklsd;glfbaskfl
/* When I wrote this, only God and I understood what I was doing... Now, God only knows */
GetLastError after a failed call to DeviceIoControl returns 5 (access denied).
How do I get permission to access the harddrive?
I am running the program under an admin account.
Last edited by Yarin; 03-27-2008 at 12:33 PM.
I don't see why people think Chuck Norris is so awesome. If he was really as great as they say, he would be over here slamming my head into the keybsk;lah;flksalfksdnlcslcnsldk;acklsd;glfbaskfl
/* When I wrote this, only God and I understood what I was doing... Now, God only knows */
You must also not have mounted the drive. So if you are trying to access a drive that you can "see" in Windows, it's not going to allow you access.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
>> Are you on Vista, where "administrator" isn't really "administrator" anymore?
No, XP. But tell more about this.
>> You must also not have mounted the drive. So if you are trying to access a drive that you can "see" in Windows, it's not going to allow you access.
Okay, that's probably it, I'll try doing that first.
>> And what IOCTL are you attempting?
DISK_GET_DRIVE_LAYOUT
I don't see why people think Chuck Norris is so awesome. If he was really as great as they say, he would be over here slamming my head into the keybsk;lah;flksalfksdnlcslcnsldk;acklsd;glfbaskfl
/* When I wrote this, only God and I understood what I was doing... Now, God only knows */
You know about UAC, right?
It means then unless the application asks for admin privileges, you don't have them. This is true for administrator accounts, too.
So running your app with UAC enabled on Vista would guarantee failure because you would be running it as a limited user unless you specified in the manifest to run it as admin or disabled UAC.
For information on how to enable C++11 on your compiler, look here.
よく聞くがいい!私は天才だからね! ^_^
Access it through a system service, they run in session 0 if installed form the admin acount. Don't use vista, they broke a lot of the security stuff in an effort to make it harder to write applications that perform useful work.
Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.
I found another way to enumerate the partitions, but now when I use CreateFile on "\\.\C:", ReadFile failed. It seems I can't do it like that. When I said read raw from the hd, I literally meant read EVERYTHING, like a disk defragmentor.
I don't see why people think Chuck Norris is so awesome. If he was really as great as they say, he would be over here slamming my head into the keybsk;lah;flksalfksdnlcslcnsldk;acklsd;glfbaskfl
/* When I wrote this, only God and I understood what I was doing... Now, God only knows */