PVIDEO_PORT_GET_PROC_ADDRESS callback function

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 PVOID HwDeviceExtension,
  IN PUCHAR FunctionName
)
{...}

Parameters

HwDeviceExtension

Pointer to the miniport driver's hardware device extension.

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

   
Windows version 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