how to distinguish Shutdown or Restart

Dear All:

In wdm driver We can use
irpStack->Parameters.Power.ShutdownType
to distinguish OS will shutdown or restart
but , Have any body know how to implement it to Kernel stream
driver .
because usbintel.sys seem can detect “IRP_MN_SET_POWER”

Howard


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