The obvious simple question, is what is the DeviceType of the device you
attach to the disk? I’ve used the approach of changing the type to hide
drives for clients in the past. If the type is the same as the device you
are attaching to, then it is more complex and we will need more data.
Don Burn
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@win32.f9.co.uk
Sent: Friday, April 04, 2014 11:03 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Issue with my disk filter driver
I have a driver that registers an EventCategoryDeviceInterfaceChange
callback with IoRegisterPlugPlayNotification() for GUID_DEVINTERFACE_DISK
devices.
Upon receiving a GUID_DEVICE_INTERFACE_ARRIVAL event, it attaches itself to
the arrived device using IoAttachDeviceToDeviceStackSafe.
Apart from displaying some debugging information, the driver passes ALL
IRP_MJ_XXX and FastIoXXX calls down the next driver using
IoSkipCurrentStackLocation -> IoCallDriver.
Device Manager is displaying the disk device and the Device Stack property
(in the details page) is showing…
\Driver\myfilt
\Driver\partmgr
\Driver\disk
\Driver\mystorp
My issue is that the disk is not showing in either Disk Management or
DiskPart but the buffer returned from IOCTL_DISK_GET_DISK_LAYOUT_EX (or
similar) contains valid information read from the disk.
Has anyone got an idea what would be causing this?
Thanks,
Jamie
NTDEV is sponsored by OSR
Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
OSR is HIRING!! See http://www.osr.com/careers
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