Skip to content

Latest commit

 

History

History
98 lines (70 loc) · 3.68 KB

nf-video-videoportdisableinterrupt.md

File metadata and controls

98 lines (70 loc) · 3.68 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NF:video.VideoPortDisableInterrupt
VideoPortDisableInterrupt function (video.h)
The VideoPortDisableInterrupt function is obsolete and should not be called.The VideoPortDisableInterrupt function disables interrupts from a video adapter.
display\videoportdisableinterrupt.htm
display
05/10/2018
VideoPortDisableInterrupt function
VideoPortDisableInterrupt, VideoPortDisableInterrupt function [Display Devices], VideoPort_Functions_b01a5ae8-7e44-4ac8-9e11-ee266f34a4da.xml, display.videoportdisableinterrupt, video/VideoPortDisableInterrupt
video.h
Video.h
Desktop
Available in Windows 2000 and later versions of the Windows operating systems.
Videoprt.lib
Videoprt.sys
Any level
Windows
VideoPortDisableInterrupt
video/VideoPortDisableInterrupt
APIRef
kbSyntax
DllExport
Videoprt.sys
VideoPortDisableInterrupt

VideoPortDisableInterrupt function

-description

The VideoPortDisableInterrupt function is obsolete and should not be called.

The VideoPortDisableInterrupt function disables interrupts from a video adapter. As a result, interrupts coming from the device are ignored by the operating system and are not forwarded to the driver.

-parameters

-param HwDeviceExtension

Pointer to the miniport driver's device extension.

-returns

If VideoPortDisableInterrupt succeeds, it returns NO_ERROR. Otherwise, it returns ERROR_INVALID_FUNCTION.

-remarks

If you need to disable interrupts for the display adapter, write hardware-specific code to prevent the display adapter from generating interrupts. To subsequently enable interrupts, write hardware-specific code to allow the display adapter to resume generating interrupts.

You should not call VideoPortDisableInterrupt or VideoPortEnableInterrupt for the following reasons:

  • Can disable interrupts for other devices that share an interrupt vector with the display adapter.
  • Disables interrupts only on the processor where the current thread is running. On a multiprocessor computer, the display adapter can still interrupt another processor.
  • On a multiprocessor computer, a call to VideoPortEnableInterrupt might run on a different processor than the previous corresponding call to VideoPortDisableInterrupt. In that case, interrupts will remain disabled for the processor on which VideoPortDisableInterrupt ran.
If the video miniport driver has not registered an HwVidInterrupt routine for the display adapter, VideoPortDisableInterrupt returns ERROR_INVALID_FUNCTION.

-see-also

HwVidInterrupt

HwVidSynchronizeExecutionCallback

VIDEO_HW_INITIALIZATION_DATA

VideoPortEnableInterrupt