Expand Minimize

VideoPortGetProcAddress routine

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

Syntax


PVIDEO_PORT_GET_PROC_ADDRESS VideoPortGetProcAddress;

PVOID VideoPortGetProcAddress(
  _In_ PVOID  HwDeviceExtension,
  _In_ PUCHAR FunctionName
)
{ ... }

Parameters

HwDeviceExtension [in]

Pointer to the miniport driver's hardware device extension.

FunctionName [in]

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

Target platform

Desktop

Version

Available in Windows 2000 and later versions of the Windows operating systems.

Header

Video.h (include Video.h)

IRQL

PASSIVE_LEVEL

See also

VIDEO_PORT_CONFIG_INFO

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft