VideoPortGetVgaStatus function (video.h)

The VideoPortGetVgaStatus function detects whether the calling device is decoding a VGA I/O address.

Syntax

VIDEOPORT_DEPRECATED VIDEOPORT_API VP_STATUS VideoPortGetVgaStatus(
        PVOID      HwDeviceExtension,
  [out] OUT PULONG VgaStatus
);

Parameters

HwDeviceExtension

Pointer to the miniport driver's device extension.

[out] VgaStatus

Pointer to the resulting VGA status. A value of zero (0) indicates that VGA is not enabled; a value of one (1) indicates that VGA is enabled.

Return value

VideoPortGetVgaStatus returns one of the following values:

Return code Description
NO_ERROR The function completed successfully.
ERROR_INVALID_FUNCTION The device was not a PCI device.

Remarks

The VideoPortGetVgaStatus function is mainly used to determine whether a device is the sole VGA-enabled device in a multiple monitor system.

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)
Library Videoprt.lib
DLL Videoprt.sys
IRQL PASSIVE_LEVEL