// video.h
VIDEOPORT_API ULONG VideoPortInitialize(
PVOID Argument1,
PVOID Argument2,
PVIDEO_HW_INITIALIZATION_DATA HwInitializationData,
PVOID HwContext
);
View the official Windows Driver Kit DDI referenceNo description available.
The VideoPortInitialize function performs part of the miniport driver initialization, allocating system resources for the miniport driver.
Argument1A pointer with which the operating system called DriverEntry of Video Miniport Driver.
Argument2A second pointer with which the operating system called DriverEntry.
HwInitializationDataPointer 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.
HwContextMust be NULL.
VideoPortInitialize returns the final status of the initialization operation.
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.
DriverEntry of Video Miniport Driver