-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
is possible by writing a kernel module driver, to gain access to MBR
(r/w). like eg. C-Dilla does.
Thank you for your time,
Bogdan
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use http:
iQA/AwUBO1r5eX1TtFJ8WD7XEQK4YwCdHjeVSKu03kq+M7BPR3qtcZfNLzUAoOWz
dL4ZjyBds1xTRXGJyn+WMVxV
=JsIQ
-----END PGP SIGNATURE-----
—
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</http:>
IOCTL_DISK_GET_DRIVE_LAYOUT
----- Original Message -----
From: Bogdan Coroi
To: NT Developers Interest List
Sent: Sunday, July 22, 2001 8:04 PM
Subject: [ntdev] MBR
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
is possible by writing a kernel module driver, to gain access to MBR
(r/w). like eg. C-Dilla does.
Thank you for your time,
Bogdan
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use http:
iQA/AwUBO1r5eX1TtFJ8WD7XEQK4YwCdHjeVSKu03kq+M7BPR3qtcZfNLzUAoOWz
dL4ZjyBds1xTRXGJyn+WMVxV
=JsIQ
-----END PGP SIGNATURE-----
—
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</http:>
Unless absolutely necessary that you need to write a driver, but for
accessing such an information you could use the
Win 32 DeviceIoControl call with the IoControlCode
IOCTL_DISK_GET_PARTITION_INFO_EX
This will return return you the MBR assuing that it a standard AT style
format.
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
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Thank you both very much, for your help
Bogdan
- ----- Original Message -----
From:
To: “NT Developers Interest List”
Sent: Sunday, July 22, 2001 6:00 PM
Subject: [ntdev] Re: MBR
> Unless absolutely necessary that you need to write a driver, but
> for accessing such an information you could use the
> Win 32 DeviceIoControl call with the IoControlCode
> IOCTL_DISK_GET_PARTITION_INFO_EX
>
> This will return return you the MBR assuing that it a standard AT
> style format.
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@cadsoft.ro
> To unsubscribe send a blank email to
> leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use http:
iQA/AwUBO1vYl31TtFJ8WD7XEQIJXACggvRKcH+tDf61v/DiTCxiqVYkwGcAnj3C
3dzbylCZUVwYlMvAAgio3VBX
=/iRn
-----END PGP SIGNATURE-----
—
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</http:>
On 07/22/01, ““Bogdan Coroi” ” wrote:
> Hi,
>
> is possible by writing a kernel module driver, to gain access to MBR
> (r/w). like eg. C-Dilla does.
>
> Thank you for your time,
> Bogdan
In addition to IOCTL_DISK_GET_PARTITION_INFO, since Bogdan specifically
asked about MBR, what’s wrong with:
CreateFile(“\\.\PHYSICALDRIVE0”,…)
ReadFile(…)
CloseHandle(…)
—
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
On Monday, July 23, 2001 12:33 PM “xxxxx@troikanetworks.com” wrote:
In addition to IOCTL_DISK_GET_PARTITION_INFO, since Bogdan specifically
asked about MBR, what’s wrong with:
CreateFile(“\\.\PHYSICALDRIVE0”,…)
ReadFile(…)
CloseHandle(…)
Nothing much, just that \\.\PHYSICALDRIVE0 requires administrative
privileges if the (dwDesiredAccess) desired access flags is anything but
0;
A value of ZERO means that an application can query device attributes
without accessing the device.
>On 07/22/01, ““Bogdan Coroi” ” wrote:
>> Hi,
>>
>> is possible by writing a kernel module driver, to gain access to MBR
>> (r/w). like eg. C-Dilla does.
>>
>> Thank you for your time,
>> Bogdan
—
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