I only have the MBR of my Hard Disk now I need to know in what sector is the boot sector to read this but I don't know how to find with the CHS. How to find the boot sector through LBA?
What a DUMB question!!! <<comment removed by admin >>Is obvius is OF COURSE that is possible to read and write in the first sector of a hard disk using MSVC!!!
Last edited by Brad Jones; May 1st, 2012 at 09:01 PM.
Reason: negative comment unnecessary
Yes it's possible but if you run under anything NT based it's not possible to do that from user space.
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it.
- Brian W. Kernighan
What a DUMB question!!! You must be a BRAINOFF to say this Is obvius is OF COURSE that is possible to read and write in the first sector of a hard disk using MSVC!!!
It is possible to write any program that does anything you want it to do in Visual C++. So if I want a program that keeps my bread recipes in order, and I don't mention anything about Visual C++, how does that help the discussion? You need to ask a specific question pertaining to Visual C++. If you have a problem declaring something, a struct is not defined when you compile, a missing header that should be there, etc. then ask about that.
As to your question:
I only have the MBR of my Hard Disk now I need to know in what sector is the boot sector to read this but I don't know how to find with the CHS. How to find the boot sector through LBA?
The answer to that need not even be a program, regardless of the language. It could just as well be a basic description of what to do in general.
Regards,
Paul McKenzie
Last edited by Paul McKenzie; April 29th, 2012 at 07:55 PM.
Bookmarks