PVIDEO_PORT_GET_PROC_ADDRESS callback function (video.h)

The VideoPortGetProcAddress callback routine retrieves the address of a Windows 2000 or later video port driver function.

Syntax

PVIDEO_PORT_GET_PROC_ADDRESS PvideoPortGetProcAddress;

PVOID PvideoPortGetProcAddress(
  [in] IN PVOID HwDeviceExtension,
  [in] IN PUCHAR FunctionName
)
{...}

Parameters

[in] HwDeviceExtension

Pointer to the miniport driver's hardware device extension.

[in] FunctionName

Pointer to a null-terminated ASCII string that contains the name of the function being searched for.

Return value

VideoPortGetProcAddress returns a pointer to the function specified in the FunctionName parameter, if it exists. If that function does not exist, this function returns NULL.

Remarks

VideoPortGetProcAddress makes it possible for a video miniport driver to gain access to video port driver functions without linking to them directly. This enables a miniport driver to take full advantage of Windows 2000 and later features but still be able to load on earlier NT-based operating system versions. For an example of how to use VideoPortGetProcAddress, see Using VideoPortGetProcAddress.

The VideoPortGetProcAddress member of the VIDEO_PORT_CONFIG_INFO structure contains the address of this callback routine.

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)
IRQL PASSIVE_LEVEL

See also

VIDEO_PORT_CONFIG_INFO