Hi All,
i’m having a problem with IRP_MJ_VOLUME_MOUNT, this IRP behavior is different on WinXP and Win2000, if i connect USB harddrive in WinXp only, one IRP_MJ_VOLUME_MOUNT is triggered, in Win2000 couple of them. And i don not know which IRP si correct IRP(correct i mean that drive is mounted). I would like to report to user space application when some drive is mounted and nothing else. Is there any flag which is set? Now i get with FltGetDiskDeviceObject function DEVICE_OBJECT structure and there is Vpb->Flags, but VPB_MOUNTED flag is not set in post mount? Any suggestions ?
I personally like filter-manager’s “InstanceSetup”-callback (see
FLT_REGISTRATION). It behaves the same on Win2K, WinXP, etc.
wrote news:xxxxx@ntfsd…
> Hi All,
>
> i’m having a problem with IRP_MJ_VOLUME_MOUNT, this IRP behavior is
> different on WinXP and Win2000, if i connect USB harddrive in WinXp only,
> one IRP_MJ_VOLUME_MOUNT is triggered, in Win2000 couple of them. And i don
> not know which IRP si correct IRP(correct i mean that drive is mounted). I
> would like to report to user space application when some drive is mounted
> and nothing else. Is there any flag which is set? Now i get with
> FltGetDiskDeviceObject function DEVICE_OBJECT structure and there is
> Vpb->Flags, but VPB_MOUNTED flag is not set in post mount? Any suggestions
> ?
>
I know for “InstanceSetup” callback, but i think that works only if
filter is attached to that drive,
In my case filter is not attached, because decision if filter will be
attached to that new drive is made later in user space application.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of frank
Sent: Monday, December 03, 2007 3:02 PM
To: Windows File Systems Devs Interest List
Subject: Re:[ntfsd] IRP_MJ_VOLUME_MOUNT OS differences
I personally like filter-manager’s “InstanceSetup”-callback (see
FLT_REGISTRATION). It behaves the same on Win2K, WinXP, etc.
wrote news:xxxxx@ntfsd…
> Hi All,
>
> i’m having a problem with IRP_MJ_VOLUME_MOUNT, this IRP behavior is
> different on WinXP and Win2000, if i connect USB harddrive in WinXp
only,
> one IRP_MJ_VOLUME_MOUNT is triggered, in Win2000 couple of them. And i
don
> not know which IRP si correct IRP(correct i mean that drive is
mounted). I
> would like to report to user space application when some drive is
mounted
> and nothing else. Is there any flag which is set? Now i get with
> FltGetDiskDeviceObject function DEVICE_OBJECT structure and there is
> Vpb->Flags, but VPB_MOUNTED flag is not set in post mount? Any
suggestions
> ?
>
—
NTFSD is sponsored by OSR
For our schedule debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars
You are currently subscribed to ntfsd as:
xxxxx@hermes-softlab.com
To unsubscribe send a blank email to xxxxx@lists.osr.com