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

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

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?

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)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.