This function allows a device driver to cause an artificial interrupt event.
BOOL SetInterruptEvent( DWORD idInt );
[in] Identifier for the interrupt caused by the driver.
TRUE indicates success. FALSE indicates failure.
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.