How to get Disk Number through IRP

HI Everyone,

I have a problem, I want to find disk number using IRP of a filter driver
Can anybody help me on this???

Look at IOCTL_STORAGE_GET_DEVICE_NUMBER. In general when you are trying to
find a request for a disk IOCTL_DISK_XXX and IOCTL_STORAGE_XXX are the
likely names. Having the WDK documentation locally and using the index is
the fast way to find the specific thing you need.


Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr

wrote in message news:xxxxx@ntdev…
> HI Everyone,
>
> I have a problem, I want to find disk number using IRP of a filter driver
> Can anybody help me on this???
>
>
> Information from ESET NOD32 Antivirus, version of virus
> signature database 4862 (20100212)

>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>

Information from ESET NOD32 Antivirus, version of virus signature database 4862 (20100212)

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

Are you also Ali Zaidi, or is this just ‘how to get a disk number
using an IRP day’?

What exactly do you mean by ‘disk number’? Do you mean the unique disk
serial number, or the OS enumeration number?

Mark Roddy

On Sat, Feb 13, 2010 at 4:01 AM, wrote:
> HI Everyone,
>
> I have a problem, I want to find disk number using IRP of a filter driver
> Can anybody help me on this???
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>