DISPLAYCONFIG_MODE_INFO structure (wingdi.h)

The DISPLAYCONFIG_MODE_INFO structure contains either source mode or target mode information.

Syntax

typedef struct DISPLAYCONFIG_MODE_INFO {
  DISPLAYCONFIG_MODE_INFO_TYPE infoType;
  UINT32                       id;
  LUID                         adapterId;
  union {
    DISPLAYCONFIG_TARGET_MODE        targetMode;
    DISPLAYCONFIG_SOURCE_MODE        sourceMode;
    DISPLAYCONFIG_DESKTOP_IMAGE_INFO desktopImageInfo;
  } DUMMYUNIONNAME;
} DISPLAYCONFIG_MODE_INFO;

Members

infoType

A value that indicates whether the DISPLAYCONFIG_MODE_INFO structure represents source or target mode information. If infoType is DISPLAYCONFIG_MODE_INFO_TYPE_TARGET, the targetMode parameter value contains a valid DISPLAYCONFIG_TARGET_MODE structure describing the specified target. If infoType is DISPLAYCONFIG_MODE_INFO_TYPE_SOURCE, the sourceMode parameter value contains a valid DISPLAYCONFIG_SOURCE_MODE structure describing the specified source.

id

The source or target identifier on the specified adapter that this path relates to.

adapterId

The identifier of the adapter that this source or target mode information relates to.

DUMMYUNIONNAME

DUMMYUNIONNAME.targetMode

A valid DISPLAYCONFIG_TARGET_MODE structure that describes the specified target only when infoType is DISPLAYCONFIG_MODE_INFO_TYPE_TARGET.

DUMMYUNIONNAME.sourceMode

A valid DISPLAYCONFIG_SOURCE_MODE structure that describes the specified source only when infoType is DISPLAYCONFIG_MODE_INFO_TYPE_SOURCE.

DUMMYUNIONNAME.desktopImageInfo

A DISPLAYCONFIG_DESKTOP_IMAGE_INFO structure that describes information about the desktop image only when infoType is DISPLAYCONFIG_MODE_INFO_TYPE_.

Supported starting in Windows 10.

Requirements

   
Minimum supported client Available in Windows 7 Client.
Header wingdi.h (include Windows.h)

See also

DISPLAYCONFIG_MODE_INFO_TYPE

DISPLAYCONFIG_SOURCE_MODE

DISPLAYCONFIG_TARGET_MODE