WdfInterruptDisable - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdfinterrupt.h

VOID WdfInterruptDisable(
  [in] WDFINTERRUPT Interrupt
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdfinterrupt-wdfinterruptdisable)

WdfInterruptDisable function

Description

[Applies to KMDF and UMDF]

The WdfInterruptDisable method disables a specified device interrupt by calling the driver's EvtInterruptDisable callback function.

Parameters

Interrupt [in]

A handle to a framework interrupt object.

Remarks

A bug check occurs if the driver supplies an invalid object handle.

Most framework-based drivers don't need to call WdfInterruptDisable, because the framework calls the driver's EvtInterruptDisable callback function each time the device leaves its working (D0) state.

For passive-level interrupt objects, the framework calls WdfInterruptDisable at PASSIVE_LEVEL.

Do not call WdfInterruptDisable from an arbitrary thread context, such as a request handler.

For more information about handling interrupts in framework-based drivers, see Handling Hardware Interrupts.

Examples

The following code example disables the device interrupt that is associated with a specified interrupt object.

WdfInterruptDisable(Interrupt);

See also

EvtInterruptDisable

WdfInterruptEnable