RE: IRP_MJ_INTERNAL_DEVICE_CONTROL not getting called in Windows XP !

Yeah, good question. Having implemented a usb filter (well mostly
implemented, I haven’t had time to complete the data presentation side of
it,) I will follow onto Doron’s question with the observation that this is
non-trivial.

-----Original Message-----
From: Doron Holan [mailto:xxxxx@windows.microsoft.com]
Sent: Wednesday, July 24, 2002 12:13 PM
To: NT Developers Interest List
Subject: [ntdev] RE: IRP_MJ_INTERNAL_DEVICE_CONTROL not
getting called in Windows XP !

Where in the usb bus did you put your filter? On top of the
root hub FDO? Or on each PDO that usbhub/usbgccp creates?

D

This posting is provided “AS IS” with no warranties, and
confers no rights.

-----Original Message-----
From: xxxxx@controlnet.co.in [mailto:xxxxx@controlnet.co.in]
Sent: Wednesday, July 24, 2002 9:00 AM
To: NT Developers Interest List
Subject: [ntdev] IRP_MJ_INTERNAL_DEVICE_CONTROL not getting
called in Windows XP !

Hi,

I have written one (upper) filter driver for USB Bus in
Windows XP. I wish to have a look at URBs getting passed to
the bus driver. However my handler for
IRP_MJ_INTERNAL_DEVICE_CONTROL doesn’t get called !

In the DriverEntry, I have registered all my handlers as :

UINT iCount;
for (iCount = 0; iCount < IRP_MJ_MAXIMUM_FUNCTION; ++iCount)
DriverObject->MajorFunction[iCount] = FilterPass;

DriverObject->MajorFunction[IRP_MJ_POWER] = FilterPower;
DriverObject->MajorFunction[IRP_MJ_PNP] = FilterPnp;
DriverObject->MajorFunction[IRP_MJ_SYSTEM_CONTROL] = FilterWmi;
DriverObject->MajorFunction[IRP_MJ_INTERNAL_DEVICE_CONTROL] =
FilterInternalIOCTL;

Though ‘FilterPnp’ is getting called, ‘FilterInternalIOCTL’
never gets called ! I also watched all IRP_MJ_xxx codes in
‘FilterPass’ (the default passthrough routine), but the code
‘IRP_MJ_INTERNAL_DEVICE_CONTROL’ doesn’t appear.

Can anybody please help ?
Thanks,

Regards,
Abhijit Mirajkar


You are currently subscribed to ntdev as:
xxxxx@windows.microsoft.com To unsubscribe send a blank
email to %%email.unsub%%


You are currently subscribed to ntdev as:
xxxxx@stratus.com To unsubscribe send a blank email to
%%email.unsub%%