Read bytes of hard drive
问题 Using the hex editor HxDen one can read (and edit) the bytes on the hard drive or a USB key or the RAM. That is, one can read/change the first byte on the hard disk. I understand how to read the bytes from a file using C++, but I was wondering how one might do this for the hard disk. To make it simple, given a positive integer n, how can I read byte number n on the hard drive using C++? (I would like to do C++, but if there is an easier way, I would like to hear about that.) I am using MinGW