// video.h
VIDEOPORT_DEPRECATED VIDEOPORT_API VP_STATUS VideoPortGetVgaStatus(
PVOID HwDeviceExtension,
[out] OUT PULONG VgaStatus
);
View the official Windows Driver Kit DDI referenceNo description available.
The VideoPortGetVgaStatus function detects whether the calling device is decoding a VGA I/O address.
HwDeviceExtensionPointer 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.
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. |
The VideoPortGetVgaStatus function is mainly used to determine whether a device is the sole VGA-enabled device in a multiple monitor system.