I am looking for an API that can tell me what mode the desktop is in. In the ADL SDK documentation, there is a set of flags defined as follows:
/// \defgroup define_desktop_config Desktop Configuration Flags///These flags are used by ADL_DesktopConfig_xxx
// @{
#define
ADL_DESKTOPCONFIG_UNKNOWN 0
/* UNKNOWN desktop config */
#define
ADL_DESKTOPCONFIG_SINGLE (1 << 0)
/* Single */
#define
ADL_DESKTOPCONFIG_CLONE (1 << 2)
/* Clone */
#define
ADL_DESKTOPCONFIG_BIGDESK_H (1 << 4)
/* Big Desktop Horizontal */
#define
ADL_DESKTOPCONFIG_BIGDESK_V (1 << 5)
/* Big Desktop Vertical */
#define
ADL_DESKTOPCONFIG_BIGDESK_HR (1 << 6)
/* Big Desktop Reverse Horz */
#define
ADL_DESKTOPCONFIG_BIGDESK_VR (1 << 7)
/* Big Desktop Reverse Vert */
#define
ADL_DESKTOPCONFIG_RANDR12 (1 << 😎
/* RandR 1.2 Multi-display */
// @}
What API uses these flags? There is no such API called ADL_DesktopConfig_xxx, and I can't find an API that will return these flags.
int | ADL_DesktopConfig_Get (int iAdapterIndex, int *lpDesktopConfig) |
Uses these defines and returns the desktop configuration in lpDesktopConfig
However this is LINUX only API.
what if i want to make it in Windows.
In windows, using ADLutl, (I have "stretch horizontally onto this monitor") I do "adlutl get blah", then immediately "adlutl set blah", the stretch disappears! I get cloned displays instead.
Altering the xPos parm by hand before the set does nothing useful.
What am I doing wrong?