VideoPortZeroDeviceMemory function (video.h)

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

Syntax

VIDEOPORT_DEPRECATED VIDEOPORT_API VOID VideoPortZeroDeviceMemory(
  [out] PVOID Destination,
        ULONG Length
);

Parameters

[out] Destination

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.

Requirements

Requirement Value
Minimum supported client Available in Windows 2000 and later versions of the Windows operating systems.
Target Platform Desktop
Header video.h (include Video.h)
Library Videoprt.lib
DLL Videoprt.sys
IRQL See Remarks section.

See also

HwVidInterrupt

HwVidSynchronizeExecutionCallback

VideoPortGetDeviceBase

VideoPortZeroMemory