[wdmaudiodev] Re: Power IRPs

  • From: Tim Roberts <timr@xxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Thu, 26 Aug 2004 14:20:16 -0700

Nitin Porwal (HCL Technologies Ltd) wrote:

Hi,

I have developed a function device driver for a PCI device on Windows-XP. I am having some problem in handling Power IRPs. Currently I just pass all the Power IRPs to the lower level driver. With this the system goes into standby mode but doesn't come out of it.

Can anybody tell me, what are things that need to be performed by a function driver to handle the Power IRPs.


Many long and painful documents have been written on this topic. The simplest boilerplate power code in a WDM driver comes close to 1,000 lines of code. You cannot just hand them down to the next driver.


Have you checked the WDM samples in the DDK? Most of them include the basic boilerplate, and you can use their code virtually without change.

--
- Tim Roberts, timr@xxxxxxxxx
 Providenza & Boekelheide, Inc.

Other related posts: