IRP_MJ_POWER hanging

The following was posted by Joseph Levin on Tuesday, 14
March 2000 3:31
but didn’t receive any solution or much discussion. As I have the same
problem myself with a driver on W2k (but not on XP), does anyone know
anything more about it?

Thanks,
Alan

> My question is somewhat tangential to file systems in that it is for a
> keyboard filter I have that works with a file system filter. My problem
>
> is in handling shutdowns and hibernation in Win2k. In both cases I am
> hanging the system and I get, in the debugger, a message that it is
> waiting that the system is waiting on my Driver.
>
> The message reads:
> “Waiting on: \Driver\FAkey 811435f0 irp (811cbcc8) SetPower-Shutdown
> status c00000bb”
> “\Driver\FAkey” is my driver. 811435f0 is the address of my filter
> device and 811cbcc8 is the address of an Irp that passed through
> FAPower. I don’t appear to ever return or receive a status of c00000bb.
>
> I maintain no Power state so I am try to just pass the Irps on as fast
> as possible. My IRP_MJ_POWER function looks like this:
>
> NTSTATUS
> FAPower(
> IN PDEVICE_OBJECT DeviceObject,
> IN PIRP pIrp)
> {
> PDEVICE_OBJECT pNextDevice =
> ((PFA_EXTENSION)DeviceObject->DeviceExtension)->NextDevice;
>
> PoStartNextPowerIrp( pIrp);
> IoSkipCurrentIrpStackLocation( pIrp );
> return PoCallDriver( pNextDevice, pIrp);
> }
>
> Any ideas would be greatly appreciated. Thanks.
>
>
>
>


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