Hi experts,
I was trying to retrieve the Exlporer drive letter in my driver. This API
seemed to be good for WinXP. I added the code to SpyFsControlMountVolume(…)
function of Filespy. Yes, I NOW know that is the wrong place to call this
API, as the volume has still not been mounted. Neither can I add it to the
completion routine of this IRP (accoding to Neil
http://www.osronline.com/showThread.cfm?link=65760 ).
But the code does work for me!!! I can retrieve the drive letters (C:,
D:,…) . However, the code causes problems when I make a new partition,
assign a drive letter to it, but do not format it.
Then the machine hangs at boot time (I have modified filespy to start at
boot time too) during system initialization.
I have two queries:-
-
What is the right way/place to get the driver letters ( my driver must
handle all mounts automatically, unlike filespy) -
Why is it that the API IoVolumeDeviceToDosName(…) some times works, and
sometimes doesn’t?
Hoping to get a reply…
–
- amitr0
PS:-- Debugging this was hell, the machine didn’t crash, simply displayed
the Windows is initializing screen before GINE and waited
there…???