mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 09:03:38 +00:00
user32: Add QueryDisplayConfig stub.
Signed-off-by: Austin English <austinenglish@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
84d0c4f0da
commit
2b740588ba
|
@ -474,6 +474,18 @@ BOOL WINAPI EnumDisplayMonitors( HDC hdc, LPRECT rect, MONITORENUMPROC proc, LPA
|
|||
return USER_Driver->pEnumDisplayMonitors( hdc, rect, proc, lp );
|
||||
}
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
* QueryDisplayConfig (USER32.@)
|
||||
*/
|
||||
LONG WINAPI QueryDisplayConfig(UINT32 flags, UINT32 *numpathelements, DISPLAYCONFIG_PATH_INFO *pathinfo,
|
||||
UINT32 *numinfoelements, DISPLAYCONFIG_MODE_INFO *modeinfo,
|
||||
DISPLAYCONFIG_TOPOLOGY_ID *topologyid)
|
||||
{
|
||||
FIXME("(%08x %p %p %p %p %p)\n", flags, numpathelements, pathinfo, numinfoelements, modeinfo, topologyid);
|
||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* RegisterSystemThread (USER32.@)
|
||||
*/
|
||||
|
|
|
@ -550,6 +550,7 @@
|
|||
# @ stub PrivateSetDbgTag
|
||||
# @ stub PrivateSetRipFlags
|
||||
@ stdcall PtInRect(ptr int64)
|
||||
@ stdcall QueryDisplayConfig(long ptr ptr ptr ptr ptr)
|
||||
@ stub QuerySendMessage
|
||||
# @ stub QueryUserCounters
|
||||
@ stdcall RealChildWindowFromPoint(long int64)
|
||||
|
|
182
include/wingdi.h
182
include/wingdi.h
|
@ -3325,6 +3325,188 @@ DECL_WINELIB_TYPE_AW(LPDISPLAY_DEVICE)
|
|||
#define DISPLAY_DEVICE_MIRRORING_DRIVER 0x00000008
|
||||
#define DISPLAY_DEVICE_VGA_COMPATIBLE 0x00000010
|
||||
|
||||
typedef struct DISPLAYCONFIG_DESKTOP_IMAGE_INFO
|
||||
{
|
||||
POINTL PathSourceSize;
|
||||
RECTL DesktopImageRegion;
|
||||
RECTL DesktopImageClip;
|
||||
} DISPLAYCONFIG_DESKTOP_IMAGE_INFO;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
DISPLAYCONFIG_MODE_INFO_TYPE_SOURCE = 1,
|
||||
DISPLAYCONFIG_MODE_INFO_TYPE_TARGET = 2,
|
||||
DISPLAYCONFIG_MODE_INFO_TYPE_DESKTOP_IMAGE = 3,
|
||||
DISPLAYCONFIG_MODE_INFO_TYPE_FORCE_UINT32 = 0xffffffff
|
||||
} DISPLAYCONFIG_MODE_INFO_TYPE;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
DISPLAYCONFIG_PIXELFORMAT_8BPP = 1,
|
||||
DISPLAYCONFIG_PIXELFORMAT_16BPP = 2,
|
||||
DISPLAYCONFIG_PIXELFORMAT_24BPP = 3,
|
||||
DISPLAYCONFIG_PIXELFORMAT_32BPP = 4,
|
||||
DISPLAYCONFIG_PIXELFORMAT_NONGDI = 5,
|
||||
DISPLAYCONFIG_PIXELFORMAT_FORCE_UINT32 = 0xffffffff
|
||||
} DISPLAYCONFIG_PIXELFORMAT;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
DISPLAYCONFIG_ROTATION_IDENTITY = 1,
|
||||
DISPLAYCONFIG_ROTATION_ROTATE90 = 2,
|
||||
DISPLAYCONFIG_ROTATION_ROTATE180 = 3,
|
||||
DISPLAYCONFIG_ROTATION_ROTATE270 = 4,
|
||||
DISPLAYCONFIG_ROTATION_FORCE_UINT32 = 0xffffffff
|
||||
} DISPLAYCONFIG_ROTATION;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
DISPLAYCONFIG_SCALING_IDENTITY = 1,
|
||||
DISPLAYCONFIG_SCALING_CENTERED = 2,
|
||||
DISPLAYCONFIG_SCALING_STRETCHED = 3,
|
||||
DISPLAYCONFIG_SCALING_ASPECTRATIOCENTEREDMAX = 4,
|
||||
DISPLAYCONFIG_SCALING_CUSTOM = 5,
|
||||
DISPLAYCONFIG_SCALING_PREFERRED = 128,
|
||||
DISPLAYCONFIG_SCALING_FORCE_UINT32 = 0xffffffff
|
||||
} DISPLAYCONFIG_SCALING;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
DISPLAYCONFIG_SCANLINE_ORDERING_UNSPECIFIED = 0,
|
||||
DISPLAYCONFIG_SCANLINE_ORDERING_PROGRESSIVE = 1,
|
||||
DISPLAYCONFIG_SCANLINE_ORDERING_INTERLACED = 2,
|
||||
DISPLAYCONFIG_SCANLINE_ORDERING_INTERLACED_UPPERFIELDFIRST = DISPLAYCONFIG_SCANLINE_ORDERING_INTERLACED,
|
||||
DISPLAYCONFIG_SCANLINE_ORDERING_INTERLACED_LOWERFIELDFIRST = 3,
|
||||
DISPLAYCONFIG_SCANLINE_ORDERING_FORCE_UINT32 = 0xffffffff
|
||||
} DISPLAYCONFIG_SCANLINE_ORDERING;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
DISPLAYCONFIG_TOPOLOGY_INTERNAL = 0x00000001,
|
||||
DISPLAYCONFIG_TOPOLOGY_CLONE = 0x00000002,
|
||||
DISPLAYCONFIG_TOPOLOGY_EXTEND = 0x00000004,
|
||||
DISPLAYCONFIG_TOPOLOGY_EXTERNAL = 0x00000008,
|
||||
DISPLAYCONFIG_TOPOLOGY_FORCE_UINT32 = 0xffffffff
|
||||
} DISPLAYCONFIG_TOPOLOGY_ID;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_OTHER = -1,
|
||||
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_HD15 = 0,
|
||||
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_SVIDEO = 1,
|
||||
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_COMPOSITE_VIDEO = 2,
|
||||
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_COMPONENT_VIDEO = 3,
|
||||
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_DVI = 4,
|
||||
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_HDMI = 5,
|
||||
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_LVDS = 6,
|
||||
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_D_JPN = 8,
|
||||
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_SDI = 9,
|
||||
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_DISPLAYPORT_EXTERNAL = 10,
|
||||
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_DISPLAYPORT_EMBEDDED = 11,
|
||||
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_UDI_EXTERNAL = 12,
|
||||
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_UDI_EMBEDDED = 13,
|
||||
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_SDTVDONGLE = 14,
|
||||
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_MIRACAST = 15,
|
||||
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_INTERNAL = 0x80000000,
|
||||
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_FORCE_UINT32 = 0xffffffff
|
||||
} DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY;
|
||||
|
||||
typedef struct DISPLAYCONFIG_2DREGION
|
||||
{
|
||||
UINT32 cx;
|
||||
UINT32 cy;
|
||||
} DISPLAYCONFIG_2DREGION;
|
||||
|
||||
typedef struct DISPLAYCONFIG_RATIONAL
|
||||
{
|
||||
UINT32 Numerator;
|
||||
UINT32 Denominator;
|
||||
} DISPLAYCONFIG_RATIONAL;
|
||||
|
||||
typedef struct DISPLAYCONFIG_PATH_SOURCE_INFO
|
||||
{
|
||||
LUID adapterId;
|
||||
UINT32 id;
|
||||
union {
|
||||
UINT32 modeInfoIdx;
|
||||
struct {
|
||||
UINT32 cloneGroupId :16;
|
||||
UINT32 sourceModeInfoIdx :16;
|
||||
} DUMMYSTRUCTNAME;
|
||||
} DUMMYUNIONNAME;
|
||||
UINT32 statusFlags;
|
||||
} DISPLAYCONFIG_PATH_SOURCE_INFO;
|
||||
|
||||
typedef struct DISPLAYCONFIG_SOURCE_MODE
|
||||
{
|
||||
UINT32 width;
|
||||
UINT32 height;
|
||||
DISPLAYCONFIG_PIXELFORMAT pixelFormat;
|
||||
POINTL position;
|
||||
} DISPLAYCONFIG_SOURCE_MODE;
|
||||
|
||||
typedef struct DISPLAYCONFIG_VIDEO_SIGNAL_INFO
|
||||
{
|
||||
UINT64 pixelRate;
|
||||
DISPLAYCONFIG_RATIONAL hSyncFreq;
|
||||
DISPLAYCONFIG_RATIONAL vSyncFreq;
|
||||
DISPLAYCONFIG_2DREGION activeSize;
|
||||
DISPLAYCONFIG_2DREGION totalSize;
|
||||
union {
|
||||
struct {
|
||||
UINT32 videoStandard :16;
|
||||
UINT32 vSyncFreqDivider :6;
|
||||
UINT32 reserved :10;
|
||||
} AdditionalSignalInfo;
|
||||
UINT32 videoStandard;
|
||||
} DUMMYUNIONNAME;
|
||||
DISPLAYCONFIG_SCANLINE_ORDERING scanLineOrdering;
|
||||
} DISPLAYCONFIG_VIDEO_SIGNAL_INFO;
|
||||
|
||||
typedef struct DISPLAYCONFIG_PATH_TARGET_INFO
|
||||
{
|
||||
LUID adapterId;
|
||||
UINT32 id;
|
||||
union {
|
||||
UINT32 modeInfoIdx;
|
||||
struct {
|
||||
UINT32 desktopModeInfoIdx :16;
|
||||
UINT32 targetModeInfoIdx :16;
|
||||
} DUMMYSTRUCTNAME;
|
||||
} DUMMYUNIONNAME;
|
||||
DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY outputTechnology;
|
||||
DISPLAYCONFIG_ROTATION rotation;
|
||||
DISPLAYCONFIG_SCALING scaling;
|
||||
DISPLAYCONFIG_RATIONAL refreshRate;
|
||||
DISPLAYCONFIG_SCANLINE_ORDERING scanLineOrdering;
|
||||
BOOL targetAvailable;
|
||||
UINT32 statusFlags;
|
||||
} DISPLAYCONFIG_PATH_TARGET_INFO;
|
||||
|
||||
typedef struct DISPLAYCONFIG_TARGET_MODE
|
||||
{
|
||||
DISPLAYCONFIG_VIDEO_SIGNAL_INFO targetVideoSignalInfo;
|
||||
} DISPLAYCONFIG_TARGET_MODE;
|
||||
|
||||
typedef struct DISPLAYCONFIG_PATH_INFO
|
||||
{
|
||||
DISPLAYCONFIG_PATH_SOURCE_INFO sourceInfo;
|
||||
DISPLAYCONFIG_PATH_TARGET_INFO targetInfo;
|
||||
UINT32 flags;
|
||||
} DISPLAYCONFIG_PATH_INFO;
|
||||
|
||||
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;
|
||||
|
||||
/* For GetDisplayConfigBufferSizes */
|
||||
#define QDC_ALL_PATHS 0x00000001
|
||||
#define QDC_ONLY_ACTIVE_PATHS 0x00000002
|
||||
|
|
Loading…
Reference in a new issue