IRP Minor function value is wrong some times IRP_MJ_PNP

Hi all

I am seeing some wrong parameters coming from IRP . In an IRP with major
function code IRP_MJ_PNP the Minor Function value is sometimes morethan
0x17 which is no mean to IRP_MJ_PNP . As far as PNP is concerned the IRP
generation is done by PNP manager I believe . Can anybody has any idea how
this problem is coming ?

Thanks in advance
srinivas


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

When I faced the same situation, I found 0x18 corresponds to
IRP_MN_QUERY_LEGACY_BUS_INFORMATION which is not defined in wdm.h but is
defined in ntddk.h.

Eliyas advised that just pass the IRP down if yours is a function or filter
driver or complete without changing the IoStatus if it is a bus driver.

But I had to do
#defined IRP_MN_QUERY_LEGACY_BUS_INFORMATION 0x18 myself since I was not
using ntddk.h

Hassan

On 06/10/01, “Srinivasa Rao Deevi ” wrote:
> Hi all
>
> I am seeing some wrong parameters coming from IRP . In an IRP with major
> function code IRP_MJ_PNP the Minor Function value is sometimes morethan
> 0x17 which is no mean to IRP_MJ_PNP . As far as PNP is concerned the IRP
> generation is done by PNP manager I believe . Can anybody has any idea how
> this problem is coming ?
>
> Thanks in advance
> srinivas
>
> —
> You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com