VideoPortZeroDeviceMemory - NtDoc

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

VIDEOPORT_DEPRECATED VIDEOPORT_API VOID VideoPortZeroDeviceMemory(
  [out] PVOID Destination,
        ULONG Length
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-video-videoportzerodevicememory)

VideoPortZeroDeviceMemory function

Description

The VideoPortZeroDeviceMemory function fills an adapter frame buffer or other device memory with zeros.

Parameters

Destination [out]

Specifies the base address of the adapter memory area. This value must be a mapped logical address returned by VideoPortGetDeviceBase.

Length

Specifies the size, in bytes, to be filled.

Return value

None

Remarks

Miniport drivers should always call this function, rather than VideoPortZeroMemory, to fill on-adapter memory with zeros.

A miniport driver's HwVidInterrupt or HwVidSynchronizeExecutionCallback function can call VideoPortZeroDeviceMemory.

Callers of VideoPortZeroDeviceMemory can be running at any IRQL if the memory pointed to by the Destination parameter is in nonpaged pool. Otherwise, the caller must be running at IRQL < DISPATCH_LEVEL.

See also

HwVidInterrupt

HwVidSynchronizeExecutionCallback

VideoPortGetDeviceBase

VideoPortZeroMemory