DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C++ (http://www.daniweb.com/forums/forum8.html)
-   -   direct access to hdd (http://www.daniweb.com/forums/thread102835.html)

tootypegs Dec 29th, 2007 1:27 pm
direct access to hdd
 
Hi, basically i was wondering if there was anyway of directly accessing and writing to a harddrive? for example i have a specific sector on my harddrive which i would like to directly insert some code? does anyone know of any C++ functions or commands to do this?


thanks

Ancient Dragon Dec 29th, 2007 1:36 pm
Re: direct access to hdd
 
what operating system. how is the hdd formatted? You can't do that under MS-Windows without writing kenel-level code because the os won't let you.

You might try one of these ioctl functions

tootypegs Dec 29th, 2007 1:40 pm
Re: direct access to hdd
 
Im am using XP with NTFS formatted hdd. I know that norton disk edit allows you to gain access to the hdd and ammend values directly to the hdd. Using c++ theres now way to view the hdd in hex for example then change values?

Ancient Dragon Dec 29th, 2007 1:42 pm
Re: direct access to hdd
 
I don't know how Norton does it -- see some of the google links I previous posted (maybe you read my post before I added those links)


All times are GMT -4. The time now is 8:20 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC