// dispmprt.h
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;
View the official Windows Driver Kit DDI referenceNo description available.
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.
DXGK_DIAG_DISPLAY_LID_STATE_UNINITIALIZEDReserved for OS use during diagnostic initialization.
DXGK_DIAG_DISPLAY_LID_STATE_NOTAPPLICABLELid 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_OPENThe lid of the display is currently open, according to driver state.
DXGK_DIAG_DISPLAY_LID_STATE_CLOSEThe lid of the display is currently closed, according to driver state.
DXGK_DIAG_DISPLAY_LID_STATE_UNKNOWNThe driver does not know the current lid state. A driver should only use this value when it doesn't maintain/cache lid state internally.
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.
DXGK_DISPLAYSTATE_NONINTRUSIVE
DXGKARG_GETDISPLAYSTATENONINTRUSIVE
DxgkDdiGetDisplayStateNonIntrusive