i have some dos code to port to win32 which requires
absolute disk read/write, how do i go about doing it.
thankx
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Following work under NT/2000 if u have Administrator Privilage
CreateFile ( \.\physicaldrive0 , …)
Set position to 0 using SetFilePointer and Read sector u will get MBR of HDD
ReadFile ( … )
Set position to 0 using SetFilePointer and Write buffer to sector to
overwrite MBR
WriteFile ( …)
Satish K.S
i have some dos code to port to win32 which requires
absolute disk read/write, how do i go about doing it.
thankx
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Open \.\PhysicalDrive%d and then use Read/WriteFile aligned to sectors.
----- Original Message -----
From: “kudrt si”
To: “NT Developers Interest List”
Sent: Friday, May 18, 2001 8:07 AM
Subject: [ntdev] Absolute disk read/write
> i have some dos code to port to win32 which requires
> absolute disk read/write, how do i go about doing it.
> thankx
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
—
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
There is some code doing this included into this article.
http://msdn.microsoft.com/library/default.asp?URL=/library/periodic/period98/driver.htm
regards,
Anders
Friday, May 18, 2001, 12:47:19 AM, you wrote:
MSS> Open \.\PhysicalDrive%d and then use Read/WriteFile aligned to sectors.
MSS> ----- Original Message -----
MSS> From: “kudrt si”
MSS> To: “NT Developers Interest List”
MSS> Sent: Friday, May 18, 2001 8:07 AM
MSS> Subject: [ntdev] Absolute disk read/write
>> i have some dos code to port to win32 which requires
>> absolute disk read/write, how do i go about doing it.
>> thankx
>>
>> __________________________________________________
>> Do You Yahoo!?
>> Yahoo! Auctions - buy the things you want at great prices
>> http://auctions.yahoo.com/
>>
>> —
>> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
>> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>>
MSS> —
MSS> You are currently subscribed to ntdev as: xxxxx@flaffer.com
MSS> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
–
Best regards,
Anders mailto:xxxxx@flaffer.com
—
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
A easy way to do this is once you get the handle to the physical driver to use the ScsiPassThrough API from user mode. It does not matter if it is a scsi disk or not.
Dave Jones
Digi International
-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Friday, May 18, 2001 2:47 AM
To: NT Developers Interest List
Subject: [ntdev] Re: Absolute disk read/write
Open \.\PhysicalDrive%d and then use Read/WriteFile aligned to sectors.
----- Original Message -----
From: “kudrt si”
To: “NT Developers Interest List”
Sent: Friday, May 18, 2001 8:07 AM
Subject: [ntdev] Absolute disk read/write
> i have some dos code to port to win32 which requires
> absolute disk read/write, how do i go about doing it.
> thankx
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
—
You are currently subscribed to ntdev as: xxxxx@digi.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
—
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com