IOCTL_SCSI_RESCAN_BUS fails on XP,NT4

Hello All,
I am issuing IOCTL_SCSI_RESCAN_BUS on the disk to detect the newly
created partitions,drives.Partitions are created by using raw I/O on the
disk.This works successfully on WIndows 2000 but fails for both XP,NT 4.0.
What is the reason and is there any other way to detect these drives.
Thanks for ur time.
Shekhar

Why not use IOCTL_DISK_SET_DRIVE_LAYOUT?

On XP, the PnP reenumeration will help.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “shekhar”
To: “Windows System Software Devs Interest List”
Sent: Friday, October 17, 2003 9:01 AM
Subject: [ntdev] IOCTL_SCSI_RESCAN_BUS fails on XP,NT4

> Hello All,
> I am issuing IOCTL_SCSI_RESCAN_BUS on the disk to detect the newly
> created partitions,drives.Partitions are created by using raw I/O on the
> disk.This works successfully on WIndows 2000 but fails for both XP,NT 4.0.
> What is the reason and is there any other way to detect these drives.
> Thanks for ur time.
> Shekhar
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com

Sure I can, But the disk partition table is already written, I just want to
issue something like IoInavalidateBusRelation() from the user mode.For using
IOCTL_DISK_SET_DRIVE_LAYOUT I will have to get the partition information
again ,Initialize the structure and then issue the call.
Is there any simple way?
Thanx
Shekhar
----- Original Message -----
From: “Maxim S. Shatskih”
To: “Windows System Software Devs Interest List”
Sent: Friday, October 17, 2003 10:45 AM
Subject: [ntdev] Re: IOCTL_SCSI_RESCAN_BUS fails on XP,NT4

> Why not use IOCTL_DISK_SET_DRIVE_LAYOUT?
>
> On XP, the PnP reenumeration will help.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
>
> ----- Original Message -----
> From: “shekhar”
> To: “Windows System Software Devs Interest List”
> Sent: Friday, October 17, 2003 9:01 AM
> Subject: [ntdev] IOCTL_SCSI_RESCAN_BUS fails on XP,NT4
>
>
> > Hello All,
> > I am issuing IOCTL_SCSI_RESCAN_BUS on the disk to detect the newly
> > created partitions,drives.Partitions are created by using raw I/O on the
> > disk.This works successfully on WIndows 2000 but fails for both XP,NT
4.0.
> > What is the reason and is there any other way to detect these drives.
> > Thanks for ur time.
> > Shekhar
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@oas.co.in
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>