Jump-start your project by learning from devs who
write Windows drivers and file systems every day.
Take an OSR seminar!

OSR is Hiring! Click here to find out more.

Upcoming OSR Seminars:
Kernel Debugging & Crash Analysis for Windows Lab, Santa Clara, CA 9-13 September, 2013
Windows Internals & Software Drivers Lab, Santa Clara, CA 16-20 September, 2013
Writing WDF Drivers for Windows Lab, Boston/Waltham, MA 7-11 October, 2013
Developing File Systems for Windows, Seattle, WA 5-8 November, 2013


Go Back   OSR Online Lists > ntfsd
Welcome, Guest
You must login to post to this list
  Message 1 of 2  
31 Oct 12 13:08
adnan
xxxxxx@gmail.com
Join Date: 08 Mar 2012
Posts To This List: 113
Eject Removable Disk

Hi All, I am working on a file system driver. I have an issue. How to remove the drive letter when user click on removable disk, and click "Eject". When user do it, volume is locked 'FSCTL_LOCK_VOLUME' which i have implemented, then IOCTL_STORAGE_MEDIA_REMOVAL and it goes to lower level driver, then IOCTL_STORAGE_EJECT_MEDIA that also goes to lower level driver and windows does show a pop message in system tray "Safe To Remove Hardware" "The 'MyDisk (F:)' device can now be safely removed from the computer"
  Message 2 of 2  
01 Nov 12 08:24
adnan
xxxxxx@gmail.com
Join Date: 08 Mar 2012
Posts To This List: 113
RE: Eject Removable Disk

Hi All, I am doing the DeviceIoControl in order to find, if there has been change in STORAGE media, sending IOCTL_STORAGE_CHECK_VERIFY. But instead of getting STATUS_VERIFY_REQUIRED, I am getting STATUS_NO_MEDIA_IN_DEVICE. This is very strange, and I have no idea why this is happening. I am trying to dismount the volume and delete the VCB on device removal as stated above.
Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You must login to OSR Online AND be a member of the ntfsd list to be able to post.

All times are GMT -5. The time now is 05:42.


Copyright ©2012, OSR Open Systems Resources, Inc.
Based on vBulletin Copyright ©2000 - 2005, Jelsoft Enterprises Ltd.
Modified under license