VideoPortZeroMemory - NtDoc

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

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

NtDoc

No description available.

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

VideoPortZeroMemory function

Description

The VideoPortZeroMemory function fills a block of system memory with zeros.

Parameters

Destination [out]

Specifies the starting address of the block of memory. This value must be in a mapped logical range returned by VideoPortGetDeviceBase.

Length

Specifies the size, in bytes, of the block.

Return value

None

Remarks

Miniport drivers' DriverEntry functions generally call VideoPortZeroMemory to initialize the VIDEO_HW_INITIALIZATION_DATA structure with zeros.

The given Destination must be in a mapped logical range returned by VideoPortGetDeviceBase and/or a system space RAM address, such as an address on the stack. Use VideoPortZeroDeviceMemory to fill any device-memory block, such as a frame buffer, with zeros.

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

Callers of VideoPortZeroMemory 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

DriverEntry

HwVidInterrupt

HwVidSynchronizeExecutionCallback

VIDEO_HW_INITIALIZATION_DATA

VideoPortCompareMemory

VideoPortMoveMemory

VideoPortZeroDeviceMemory