Debugging the User mode dll

Hi,

Could some body let me know how to debug the UMPD source code of NT DDK.

Here is what I have done:

I did a checked build of the NT ddk sample of UMPD (User Mode Printer
Driver) to get checked version of umpd.dll.
I have hooked one of the printer drivers to this dll by creating a
registry entry. This seems to be working fine as I am able to get the
message box that I have put in one of the dll entry points.

I would like to step into the source code and hence I do an attach to
process of winword.exe from VC++ 6.0 editor and load my printer driver
in the application. Ideally I would expect the umpd.dll also to be
loaded so that I can put a breakpoint in one of the entry points. Well,
I am unable to put the breakpoint at all.

I modified the sources file to include -DEBUG flag and switched on the
MSC_OPTIMIZATION.
Nothing seems to be working…

Kindly let me know how I can go about debugging this user mode dll.

Thanks and Regards
Shalini

What port was the printer installed on? Depending on the port, you might
need to attach to the spooler process in order to set a breakpoint in
the driver.

  • Ashwin

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

-----Original Message-----
From: Shalini Kolakkampadathe [mailto:xxxxx@wipro.com]
Sent: Friday, January 31, 2003 6:17 AM
To: NT Developers Interest List
Subject: [ntdev] Debugging the User mode dll

Hi,

Could some body let me know how to debug the UMPD source code of NT DDK.

Here is what I have done:

I did a checked build of the NT ddk sample of UMPD (User Mode Printer
Driver) to get checked version of umpd.dll.
I have hooked one of the printer drivers to this dll by creating a
registry entry. This seems to be working fine as I am able to get the
message box that I have put in one of the dll entry points.

I would like to step into the source code and hence I do an attach to
process of winword.exe from VC++ 6.0 editor and load my printer driver
in the application. Ideally I would expect the umpd.dll also to be
loaded so that I can put a breakpoint in one of the entry points. Well,
I am unable to put the breakpoint at all.

I modified the sources file to include -DEBUG flag and switched on the
MSC_OPTIMIZATION. Nothing seems to be working…

Kindly let me know how I can go about debugging this user mode dll.

Thanks and Regards
Shalini


You are currently subscribed to ntdev as: xxxxx@microsoft.com To
unsubscribe send a blank email to xxxxx@lists.osr.com

Thanks for the Response.

The printer is mapped to FILE port. How do I go about debugging this dll
based on this port?

Thanks
Shalini

-----Original Message-----
From: Ashwin Needamangala [mailto:xxxxx@microsoft.com]
Sent: Saturday, February 01, 2003 2:58 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Debugging the User mode dll

What port was the printer installed on? Depending on the port, you might
need to attach to the spooler process in order to set a breakpoint in
the driver.

  • Ashwin

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

-----Original Message-----
From: Shalini Kolakkampadathe [mailto:xxxxx@wipro.com]
Sent: Friday, January 31, 2003 6:17 AM
To: NT Developers Interest List
Subject: [ntdev] Debugging the User mode dll

Hi,

Could some body let me know how to debug the UMPD source code of NT DDK.

Here is what I have done:

I did a checked build of the NT ddk sample of UMPD (User Mode Printer
Driver) to get checked version of umpd.dll.
I have hooked one of the printer drivers to this dll by creating a
registry entry. This seems to be working fine as I am able to get the
message box that I have put in one of the dll entry points.

I would like to step into the source code and hence I do an attach to
process of winword.exe from VC++ 6.0 editor and load my printer driver
in the application. Ideally I would expect the umpd.dll also to be
loaded so that I can put a breakpoint in one of the entry points. Well,
I am unable to put the breakpoint at all.

I modified the sources file to include -DEBUG flag and switched on the
MSC_OPTIMIZATION. Nothing seems to be working…

Kindly let me know how I can go about debugging this user mode dll.

Thanks and Regards
Shalini


You are currently subscribed to ntdev as: xxxxx@microsoft.com To
unsubscribe send a blank email to xxxxx@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@wipro.com To
unsubscribe send a blank email to xxxxx@lists.osr.com

Thanks Ashwin!!!
I was able to debug the UMPD.

Regards
Shalini

-----Original Message-----
From: Ashwin Needamangala [mailto:xxxxx@microsoft.com]
Sent: Saturday, February 01, 2003 2:58 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Debugging the User mode dll

What port was the printer installed on? Depending on the port, you might
need to attach to the spooler process in order to set a breakpoint in
the driver.

  • Ashwin

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

-----Original Message-----
From: Shalini Kolakkampadathe [mailto:xxxxx@wipro.com]
Sent: Friday, January 31, 2003 6:17 AM
To: NT Developers Interest List
Subject: [ntdev] Debugging the User mode dll

Hi,

Could some body let me know how to debug the UMPD source code of NT DDK.

Here is what I have done:

I did a checked build of the NT ddk sample of UMPD (User Mode Printer
Driver) to get checked version of umpd.dll.
I have hooked one of the printer drivers to this dll by creating a
registry entry. This seems to be working fine as I am able to get the
message box that I have put in one of the dll entry points.

I would like to step into the source code and hence I do an attach to
process of winword.exe from VC++ 6.0 editor and load my printer driver
in the application. Ideally I would expect the umpd.dll also to be
loaded so that I can put a breakpoint in one of the entry points. Well,
I am unable to put the breakpoint at all.

I modified the sources file to include -DEBUG flag and switched on the
MSC_OPTIMIZATION. Nothing seems to be working…

Kindly let me know how I can go about debugging this user mode dll.

Thanks and Regards
Shalini


You are currently subscribed to ntdev as: xxxxx@microsoft.com To
unsubscribe send a blank email to xxxxx@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@wipro.com To
unsubscribe send a blank email to xxxxx@lists.osr.com