次の方法で共有


SetInterruptEvent (Compact 2013)

3/28/2014

This function allows a device driver to cause an artificial interrupt event.

Syntax

BOOL SetInterruptEvent(
  DWORD idInt
);

Parameters

  • idInt
    [in] Identifier for the interrupt caused by the driver.

Return Value

TRUE indicates success. FALSE indicates failure.

Remarks

A device driver can call this function only when it is in power-off or power-on processing, situations which occur when the device driver's PowerOn and PowerOff power handler functions are called by other OS components. A driver should only call SetInterruptEvent from these functions because the power handler functions are called in a special, nonpre-emptible kernel mode in which most function calls are not permitted. In other contexts, simulated interrupts can be generated with the SetEvent function.

Requirements

Header

nkintr.h

Library

Nkstub.lib

See Also

Reference

Kernel Functions
SetEvent

Other Resources

XXX_PowerDown (Device Manager)
XXX_PowerUp (Device Manager)