VideoPortInitialize - NtDoc

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

VIDEOPORT_API ULONG VideoPortInitialize(
  PVOID                         Argument1,
  PVOID                         Argument2,
  PVIDEO_HW_INITIALIZATION_DATA HwInitializationData,
  PVOID                         HwContext
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

VideoPortInitialize function

Description

The VideoPortInitialize function performs part of the miniport driver initialization, allocating system resources for the miniport driver.

Parameters

Argument1

A pointer with which the operating system called DriverEntry of Video Miniport Driver.

Argument2

A second pointer with which the operating system called DriverEntry.

HwInitializationData

Pointer to the VIDEO_HW_INITIALIZATION_DATA structure on the stack. The miniport driver's DriverEntry routine zero-initialized this structure and then filled it in with driver-specific configuration information describing a video adapter that the miniport driver can support.

HwContext

Must be NULL.

Return value

VideoPortInitialize returns the final status of the initialization operation.

Remarks

Every video miniport driver must call VideoPortInitialize from its DriverEntry function. DriverEntry can call VideoPortInitialize only after it has first zero-initialized and then set up the VIDEO_HW_INITIALIZATION_DATA structure. VideoPortInitialize can be called only from a miniport driver's DriverEntry function.

The VideoPortInitialize function:

The miniport driver's DriverEntry routine propagates the value returned by VideoPortInitialize back to its caller. Miniport drivers should not use this return value.

See also

DriverEntry of Video Miniport Driver

HwVidFindAdapter

HwVidInitialize

VIDEO_HW_INITIALIZATION_DATA

VIDEO_PORT_CONFIG_INFO

VideoPortZeroMemory