Click here to Skip to main content
16,008,490 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: reverseengingeering!!!! Pin
gelcoman18-Mar-04 4:49
gelcoman18-Mar-04 4:49 
GeneralRe: reverseengingeering!!!! Pin
Prakash Nadar18-Mar-04 5:06
Prakash Nadar18-Mar-04 5:06 
GeneralRe: reverseengingeering!!!! Pin
Roger Wright18-Mar-04 7:34
professionalRoger Wright18-Mar-04 7:34 
GeneralWriting to hard drive Pin
Skute18-Mar-04 2:14
Skute18-Mar-04 2:14 
GeneralRe: Writing to hard drive Pin
Skute18-Mar-04 2:15
Skute18-Mar-04 2:15 
GeneralRe: Writing to hard drive Pin
Branislav18-Mar-04 16:13
Branislav18-Mar-04 16:13 
GeneralRe: Writing to hard drive Pin
ian mariano18-Mar-04 3:39
ian mariano18-Mar-04 3:39 
GeneralRe: Writing to hard drive Pin
ian mariano18-Mar-04 4:08
ian mariano18-Mar-04 4:08 
The rawrite source code is in Pascal.

If you want to use the Windows API to do this, you can use CreateFile passing a path of "\\.\device" to get a raw handle to the device, e.g., "\\.\a:" for the first floppy drive, "\\.\PhysicalDisk0" for hard drive 1. You can use the returned HANDLE with the other File Management Functions to write directly to the device.

Basically, to read the boot sector, you CreateFile to the drive and read in the first 512 bytes using ReadFile to get the MBR. When finished don't forget to call CloseHandle.

Ian Mariano - http://www.ian-space.com/


"We are all wave equations in the information matrix of the universe" - me

GeneralRe: Writing to hard drive Pin
Skute18-Mar-04 22:09
Skute18-Mar-04 22:09 
QuestionHow to draw a line in a dialog box ? Pin
Deepak Samuel18-Mar-04 2:14
Deepak Samuel18-Mar-04 2:14 
AnswerRe: How to draw a line in a dialog box ? Pin
David Crow18-Mar-04 2:47
David Crow18-Mar-04 2:47 
GeneralRe: How to draw a line in a dialog box ? Pin
Maximilien18-Mar-04 3:11
Maximilien18-Mar-04 3:11 
GeneralRe: How to draw a line in a dialog box ? Pin
Prakash Nadar18-Mar-04 4:21
Prakash Nadar18-Mar-04 4:21 
AnswerRe: How to draw a line in a dialog box ? Pin
Maximilien18-Mar-04 3:13
Maximilien18-Mar-04 3:13 
Generalmakefile in mfc Pin
archanagaby18-Mar-04 1:39
archanagaby18-Mar-04 1:39 
GeneralRe: makefile in mfc Pin
David Crow18-Mar-04 2:49
David Crow18-Mar-04 2:49 
GeneralRe: makefile in mfc Pin
dreamerzz15-Apr-04 6:08
dreamerzz15-Apr-04 6:08 
GeneralRe: makefile in mfc Pin
David Crow15-Apr-04 6:55
David Crow15-Apr-04 6:55 
GeneralRe: makefile in mfc Pin
dreamerzz15-Apr-04 14:51
dreamerzz15-Apr-04 14:51 
GeneralRe: makefile in mfc Pin
David Crow19-Apr-04 2:29
David Crow19-Apr-04 2:29 
GeneralRe: makefile in mfc Pin
dreamerzz20-Apr-04 2:13
dreamerzz20-Apr-04 2:13 
GeneralQuick FTP Question Pin
Steve Thresher18-Mar-04 1:10
Steve Thresher18-Mar-04 1:10 
GeneralRe: Quick FTP Question Pin
Prakash Nadar18-Mar-04 4:23
Prakash Nadar18-Mar-04 4:23 
GeneralNew to DirectX Pin
Adnan56218-Mar-04 1:06
Adnan56218-Mar-04 1:06 
GeneralRe: New to DirectX Pin
jmkhael18-Mar-04 7:06
jmkhael18-Mar-04 7:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.