RE: GetPartInfo BootIndicator on recently activated partition
V.V.Gatt_at_nospam.com
Date: 08/10/04
- Next message: Mohun Biswas: "Re: comparing PE files with CRC/checksum"
- Previous message: Chuck Chopp: "Re: Changing a Services session id"
- In reply to: Rhett Gong [MSFT]: "RE: GetPartInfo BootIndicator on recently activated partition"
- Next in thread: Rhett Gong [MSFT]: "RE: GetPartInfo BootIndicator on recently activated partition"
- Reply: Rhett Gong [MSFT]: "RE: GetPartInfo BootIndicator on recently activated partition"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 10 Aug 2004 15:05:09 -0700
v-raygon@online.microsoft.com (Rhett Gong [MSFT]) wrote in
news:RpvPIesfEHA.3356@cpmsftngxa06.phx.gbl:
> Hi V.V.
> After the system is booted up, the PARTITION_INFORMATION is stored in
> the system cache. By calling
> DeviceIoControl(IOCTL_DISK_GET_PARTITION_INFO) you just send an irp to
> the driver, and driver returns the partition information in the cache.
> Setting the drive to active in mng tool does not change
> PARTITION_INFORMATION in the cache, it only marks the drive as active.
> The new PARTITION_INFORMATION will not take effect before the you
> reboot you system.
>
I suspected something like this... Not very efficient or consistent, but
anyway, we have to deal with Windows as it is. Yet if this could be
changed in a future release or service pack, or even documented...
Anyway...
How dos Disk Management snap-in does to get the "IsPartitionActivated"
parameter ?
If I activate a partition in Disk Management snap-in, closes
Disk Management snap-in, and then open it again, it sees that the
partition is activated...
One way to do it is to read MBR or GPT off the device and to interpret
the related data by myself, but, well, I thought that
DeviceIoControl(IOCTL_DISK_GET_PARTITION_INFO) could be more efficient
and get ACTUAL parameters, not CACHED parameters that are indeed
notreflecting the actual ones.
If anyone has any lead...
Thanks in advance
V.V.
- Next message: Mohun Biswas: "Re: comparing PE files with CRC/checksum"
- Previous message: Chuck Chopp: "Re: Changing a Services session id"
- In reply to: Rhett Gong [MSFT]: "RE: GetPartInfo BootIndicator on recently activated partition"
- Next in thread: Rhett Gong [MSFT]: "RE: GetPartInfo BootIndicator on recently activated partition"
- Reply: Rhett Gong [MSFT]: "RE: GetPartInfo BootIndicator on recently activated partition"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|