DXGK_DIAG_DISPLAY_LID_STATE enumeration (dispmprt.h)
DXGK_DIAG_DISPLAY_LID_STATE provides the lid state of the target to the operating system (OS) when it is gathering nonintrusive display diagnostic information.
Syntax
typedef enum _DXGK_DIAG_DISPLAY_LID_STATE {
DXGK_DIAG_DISPLAY_LID_STATE_UNINITIALIZED,
DXGK_DIAG_DISPLAY_LID_STATE_NOTAPPLICABLE,
DXGK_DIAG_DISPLAY_LID_STATE_OPEN,
DXGK_DIAG_DISPLAY_LID_STATE_CLOSE,
DXGK_DIAG_DISPLAY_LID_STATE_UNKNOWN
} DXGK_DIAG_DISPLAY_LID_STATE;
Constants
DXGK_DIAG_DISPLAY_LID_STATE_UNINITIALIZED Reserved for OS use during diagnostic initialization. |
DXGK_DIAG_DISPLAY_LID_STATE_NOTAPPLICABLE Lid state is not applicable on this target. This would be the value used for most of the targets which are not internal displays. |
DXGK_DIAG_DISPLAY_LID_STATE_OPEN The lid of the display is currently open, according to driver state. |
DXGK_DIAG_DISPLAY_LID_STATE_CLOSE The lid of the display is currently closed, according to driver state. |
DXGK_DIAG_DISPLAY_LID_STATE_UNKNOWN The driver does not know the current lid state. A driver should only use this value when it doesn't maintain/cache lid state internally. |
Remarks
The DXGK_DIAG_DISPLAY_LID_STATE enumeration is a member of the DXGK_DISPLAYSTATE_NONINTRUSIVE structure. It is used while gathering display diagnostic information via calls to DxgkDdiGetDisplayStateNonIntrusive.
DXGK_DIAG_DISPLAY_LID_STATE is only applicable to form factors which have a lid. If the driver caches the current state of the lid (open or close) then we want to compare it against to OS state.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10, version 2004 |
Header | dispmprt.h |
See also
DXGK_DISPLAYSTATE_NONINTRUSIVE