VideoPortGetVgaStatus function

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

Syntax


VP_STATUS VideoPortGetVgaStatus(
        PVOID  HwDeviceExtension,
  _Out_ PULONG VgaStatus
);

Parameters

HwDeviceExtension

Pointer to the miniport driver's device extension.

VgaStatus [out]

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 codeDescription
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

Target platform

Version

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

Header

Video.h (include Video.h)

Library

Videoprt.lib

DLL

Videoprt.sys

IRQL

PASSIVE_LEVEL

 

 

Send comments about this topic to Microsoft

Show: