Can anybody tell me how to access hard disk partition information or MBR content through Visual C++ Programming?
Suggest me how should i do programming and which API i should use for this purpose.
I could, but I'd rather see how good you are at digging out information for yourself.
Try using the information, don't just thank me for it.
The only thing I would add is make sure you're testing this on a machine you don't mind trashing. You're only a few keystrokes away from "Damn, where are my install disks" because you've completely trashed your hard disk.
I find out how to read hard disk programmatically in Visual C++ by using CreateFile and DeviceIoControl function.
But I am not able find the file vwin32.vxd in windows xp operating system for getting the disk information.
This vwin32.vxd will only exist in win9x series. so, is there any alternative for this in windows xp.
Please solve my problem.
OK, getting bored of you saying "it doesn't work" and you NOT posting the code.
Since I'm not interested in playing 20 questions just to figure out which of many 1000's of possible mistakes you might have made, I'm done here.
I need some help from you regarding the extended boot record.
May i know exactly where the EBR will be present? I found starting sector location of extended partition. I am expecting the EBR will present in this starting sector of Extended partition. But the last two bytes of that sector is not equal to 55 AA.
Then how could i know whether this sector is the one i m expecting as ebr? How could i know the exact location of EBR?
Please reply me as quickly as possible..........
The following piece of code works exactly as what you want to do, I use this method to write my own MBR boot loader code for booting into multiple OS selectively (holding Ctrl to boot into Ubuntu, holding Alt to boot into Window 98, otherwise boot into Window XP):
For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls
If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then
For Each subCtrl As Control In ctrl.Controls
If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then
If subCtrl.GetType Is ...