Driver Dynamic loading vs PnP managment

Hi everyone,

We developped a driver, and start the driver on NT/2K using the Microso=
ft
sample instdrv (via the Service control manager).
Everything works fine (basically, the driver only respond to
DeviceIoControl…) but we are facing a problem with the Power managem=
ent.
Since Win2k supports hibernation, the driver needs to know when the sys=
tem
will hibernate, because it has to erase whatever it has in memory, befo=
re
the system writes the memory on the disk and hibernate. This is really=

important because these informations are session keys for an encryption=

system.

What I noticed is that the driver never receives IRP_MJ_POWER requests.=
Is
there something special to do to receive those IRPs? Is that because t=
he
driver is dynamically installed and started?
Has someone faced that kind of problem?

Thanks a lot,
R=E9jean


R=E9jean Caron - xxxxx@motus.com
Motus Technologies inc.

=


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

"Drivers that support power management must also support Plug and Play
(PnP), because some power management operations are closely tied to
adding and removing devices, and drivers receive notification of these
events by means of PnP IRPs. " - the better documented XP DDK.

I believe, although I could be wrong, that unless you support PNP you
won’t participate in power management, even if you supply a dispatch
function for IRP_MJ_POWER.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@motus.com
Sent: Sunday, November 18, 2001 1:34 PM
To: NT Developers Interest List
Subject: [ntdev] Driver Dynamic loading vs PnP managment

Hi everyone,

We developped a driver, and start the driver on NT/2K using
the Microsoft sample instdrv (via the Service control
manager). Everything works fine (basically, the driver only respond to
DeviceIoControl…) but we are facing a problem with the
Power management. Since Win2k supports hibernation, the
driver needs to know when the system will hibernate, because
it has to erase whatever it has in memory, before the system
writes the memory on the disk and hibernate. This is really
important because these informations are session keys for an
encryption system.

What I noticed is that the driver never receives IRP_MJ_POWER
requests. Is there something special to do to receive those
IRPs? Is that because the driver is dynamically installed
and started? Has someone faced that kind of problem?

Thanks a lot,
R?jean


R?jean Caron - xxxxx@motus.com
Motus Technologies inc.


You are currently subscribed to ntdev as:
xxxxx@hollistech.com 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