0x18 PnP IRP???

Hi all,

When I debug my WDM bus driver for a vertual device in Win 2k, the driver
received 0x18 PnP IRP which does not exist or is not documented in MSND. How
can I handle it?

Thanks

James

Is 0x18 the value of Major Funciton Code?

If it is, look at the the following line that
defined in ntddk.h

#define IRP_MJ_DEVICE_CHANGE 0x18

----- Original Message -----
From: Zhou, James
To: NT Developers Interest List
Sent: Friday, February 25, 2000 10:12 AM
Subject: [ntdev] 0x18 PnP IRP???

> Hi all,
>
> When I debug my WDM bus driver for a vertual device in Win 2k, the driver
> received 0x18 PnP IRP which does not exist or is not documented in MSND. How
> can I handle it?
>
> Thanks
>
> James
>
> —
> You are currently subscribed to ntdev as: xxxxx@psh.com.cn
> To unsubscribe send a blank email to $subst(‘Email.Unsub’)
>
>

#define IRP_MN_SURPRISE_REMOVAL 0x17
// end_wdm
#define IRP_MN_QUERY_LEGACY_BUS_INFORMATION 0x18
// begin_wdm

from ntddk.h.

Dinker Charak

Software Consultant, Web Applications / Open Systems Group

It is not necessary to change. Survival is not mandatory.


From: Zhou, James[SMTP:xxxxx@asia.adaptec.com]
Sent: Friday, February 25, 2000 7:42 AM
To: NT Developers Interest List
Subject: [ntdev] 0x18 PnP IRP???

Hi all,

When I debug my WDM bus driver for a vertual device in Win 2k, the driver
received 0x18 PnP IRP which does not exist or is not documented in MSND.
How
can I handle it?

Thanks

James


You are currently subscribed to ntdev as: xxxxx@dcmds.co.in
To unsubscribe send a blank email to $subst(‘Email.Unsub’)

No, it’s minor function. The major is IRP_MJ_PNP (0x1b).

Thanks

James

-----Original Message-----
From: Steve Huang [mailto:xxxxx@psh.com.cn]
Sent: Friday, February 25, 2000 10:27 AM
To: NT Developers Interest List
Subject: [ntdev] Re: 0x18 PnP IRP???

Is 0x18 the value of Major Funciton Code?

If it is, look at the the following line that
defined in ntddk.h

#define IRP_MJ_DEVICE_CHANGE 0x18

----- Original Message -----
From: Zhou, James
To: NT Developers Interest List
Sent: Friday, February 25, 2000 10:12 AM
Subject: [ntdev] 0x18 PnP IRP???

> Hi all,
>
> When I debug my WDM bus driver for a vertual device in Win 2k, the driver
> received 0x18 PnP IRP which does not exist or is not documented in MSND.
How
> can I handle it?
>
> Thanks
>
> James
>
> —
> You are currently subscribed to ntdev as: xxxxx@psh.com.cn
> To unsubscribe send a blank email to $subst(‘Email.Unsub’)
>
>


You are currently subscribed to ntdev as: xxxxx@asia.adaptec.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)

If you see it under IRP_MJ_PNP how can it be a major code?

<< Is 0x18 the value of Major Funciton Code?

If it is, look at the the following line that
defined in ntddk.h

#define IRP_MJ_DEVICE_CHANGE 0x18 >>

The major function is IRP_MJ_PNP (0x1b) and the minor function is 0x18.

So Dinker, do you know normally how to handle this function? My device is a
USB device. Currently, I don’t handle it.

Another question: How to add my own driver symbols to WinDbg in Win2000?
Right now, I have a symbols directory and a sub directory sys for my driver
and copied *.pdb (I also tried *.sys, *.sym) to the sub directory and in
WinDbg setting, I set the directory path. But when my driver is loaded,
WinDbg still can not find the symbol. Waht’s wrong?

Thanks

James

-----Original Message-----
From: dinker charak [mailto:xxxxx@dcmds.co.in]
Sent: Friday, February 25, 2000 11:43 AM
To: NT Developers Interest List
Subject: [ntdev] RE: 0x18 PnP IRP???

#define IRP_MN_SURPRISE_REMOVAL 0x17
// end_wdm
#define IRP_MN_QUERY_LEGACY_BUS_INFORMATION 0x18
// begin_wdm

from ntddk.h.

Dinker Charak

Software Consultant, Web Applications / Open Systems Group

It is not necessary to change. Survival is not mandatory.


From: Zhou, James[SMTP:xxxxx@asia.adaptec.com]
Sent: Friday, February 25, 2000 7:42 AM
To: NT Developers Interest List
Subject: [ntdev] 0x18 PnP IRP???

Hi all,

When I debug my WDM bus driver for a vertual device in Win 2k, the driver
received 0x18 PnP IRP which does not exist or is not documented in MSND.
How
can I handle it?

Thanks

James


You are currently subscribed to ntdev as: xxxxx@dcmds.co.in
To unsubscribe send a blank email to $subst(‘Email.Unsub’)


You are currently subscribed to ntdev as: xxxxx@asia.adaptec.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)

In your runwdeb.wrf file add the following:
/s:C:\SymDir\MySymFile.Sym

That’s how Win9x WDEB386 works. I believe WinDbg should require the same
semantics.

<< The major function is IRP_MJ_PNP (0x1b) and the minor function is 0x18.

So Dinker, do you know normally how to handle this function? My device is a
USB device. Currently, I don’t handle it.

Another question: How to add my own driver symbols to WinDbg in Win2000?
Right now, I have a symbols directory and a sub directory sys for my driver
and copied *.pdb (I also tried *.sys, *.sym) to the sub directory and in
WinDbg setting, I set the directory path. But when my driver is loaded,
WinDbg still can not find the symbol. Waht’s wrong?

Thanks

James >>

> Right now, I have a symbols directory and a sub directory sys for my
driver

and copied *.pdb (I also tried *.sys, *.sym) to the sub directory and in
WinDbg setting, I set the directory path. But when my driver is loaded,
WinDbg still can not find the symbol. Waht’s wrong?

You must have all .sys .pdb .dbg files in this directory. Maybe this will
help - at
least it helped me with windbg build 1999.

Max

How to create *.dbg? DDK ony creates *.sys and *.pdb. Also, I don’t see in
DDK doc that *.dbg are needed.

Thanks

James

-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Friday, February 25, 2000 7:54 AM
To: NT Developers Interest List
Subject: [ntdev] RE: 0x18 PnP IRP???

Right now, I have a symbols directory and a sub directory sys for my
driver
and copied *.pdb (I also tried *.sys, *.sym) to the sub directory and in
WinDbg setting, I set the directory path. But when my driver is loaded,
WinDbg still can not find the symbol. Waht’s wrong?

You must have all .sys .pdb .dbg files in this directory. Maybe this will
help - at
least it helped me with windbg build 1999.

Max


You are currently subscribed to ntdev as: xxxxx@asia.adaptec.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)

One of the KB articles listed on
http://www.microsoft.com/hwdev/driver/ntdebugging.htm has information on
.dbg and .pdb files.

Also take a look at the new documentation with excellent advanced debugging
tips on Microsoft debuggers.

http://www.microsoft.com/ddk/ddkdocs/Win2KDB/default.htm

-Eliyas

-----Original Message-----
From: Zhou, James [mailto:xxxxx@asia.adaptec.com]
Sent: Sunday, February 27, 2000 4:48 PM
To: NT Developers Interest List
Subject: [ntdev] RE: 0x18 PnP IRP???

How to create *.dbg? DDK ony creates *.sys and *.pdb. Also, I don’t see in
DDK doc that *.dbg are needed.

Thanks

James

-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Friday, February 25, 2000 7:54 AM
To: NT Developers Interest List
Subject: [ntdev] RE: 0x18 PnP IRP???

Right now, I have a symbols directory and a sub directory sys for my
driver
and copied *.pdb (I also tried *.sys, *.sym) to the sub directory and in
WinDbg setting, I set the directory path. But when my driver is loaded,
WinDbg still can not find the symbol. Waht’s wrong?

You must have all .sys .pdb .dbg files in this directory. Maybe this will
help - at
least it helped me with windbg build 1999.

Max


You are currently subscribed to ntdev as: xxxxx@asia.adaptec.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)


You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)

> How to create *.dbg? DDK ony creates *.sys and *.pdb. Also, I don’t see in

DDK doc that *.dbg are needed.

Depends on SOURCES file settings & compiler version (MSVC5 or 6).
Yes, for one of the modes you will get .sys .pdb. For others - .sys .dbg
I don’t think there is a mode when you will get all three of them.

Max

The REBASE utility (part of the SDK) has a switch that will create .DBG
files. I seem to recall having to compile code with the /Z7 switch and
linking with the /PDB:none in order to get debug symbols bound into an
executable, and not broken off into a seperate PDB file.

John D. Rogers Mangosoft, Inc. xxxxx@mango.com

-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Monday, February 28, 2000 4:18 PM
To: NT Developers Interest List
Subject: [ntdev] RE: 0x18 PnP IRP???

How to create *.dbg? DDK ony creates *.sys and *.pdb. Also, I don’t see in
DDK doc that *.dbg are needed.

Depends on SOURCES file settings & compiler version (MSVC5 or 6).
Yes, for one of the modes you will get .sys .pdb. For others - .sys .dbg
I don’t think there is a mode when you will get all three of them.

Max


You are currently subscribed to ntdev as: xxxxx@mango.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)