I need to match a drive letter with a Device Object. I understand that
drive letters are user mode only, but I need to filter some traffic at
boot time, even before I could get a service up and running. I tried
using IoVolumeDeviceToDosName() (XP) but I always blue screen. I am in my
DriverEntry() and am giving it a PDEVICE_OBJECT for the NTFS file system
that I am attaching to. Any idea what I am doing wrong? Also, while
developing I am starting my driver manually after the world is up and
running.
I used to live in Roy a few years ago and never visited Orem.
Drive letters are created only after booting has reached a specific point.
You didn’t indicate where the blue screen occurs. It could be errors in
your code where you aren’t handling failures properly. Boot device drivers
are restricted in their DriverEntry() and until more of the OS is loaded and
initialized. There is no need for drive letters until the win32 subsystem
needs them - as a general rule.
“Merrill Smith” wrote in message news:xxxxx@ntfsd…
>
> I need to match a drive letter with a Device Object. I understand that
> drive letters are user mode only, but I need to filter some traffic at
> boot time, even before I could get a service up and running. I tried
> using IoVolumeDeviceToDosName() (XP) but I always blue screen. I am in my
> DriverEntry() and am giving it a PDEVICE_OBJECT for the NTFS file system
> that I am attaching to. Any idea what I am doing wrong? Also, while
> developing I am starting my driver manually after the world is up and
> running.
>
>