2021-06-07 05:55:44 +00:00
#region Copyright
/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Copyright ( c ) 2008 - 2009 Advanced Micro Devices , Inc . All Rights Reserved .
Copyright ( c ) 2002 - 2006 ATI Technologies Inc . All Rights Reserved .
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND , EITHER EXPRESSED OR IMPLIED , INCLUDED BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND / OR FITNESS FOR A
PARTICULAR PURPOSE .
File : ADL . cs
Purpose : Implements ADL interface
Description : Implements some of the methods defined in ADL interface .
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
#endregion Copyright
#region Using
using System ;
using System.Collections.Generic ;
using System.Text ;
using System.Runtime.InteropServices ;
using System.Diagnostics ;
using System.Threading ;
using FARPROC = System . IntPtr ;
using HMODULE = System . IntPtr ;
#endregion Using
#region ATI . ADL
namespace ATI.ADL
{
#region Export Delegates
/// <summary> ADL Memory allocation function allows ADL to callback for memory allocation</summary>
/// <param name="size">input size</param>
/// <returns> retrun ADL Error Code</returns>
2021-06-27 01:53:00 +00:00
public delegate IntPtr ADL_Main_Memory_Alloc ( int size ) ;
2021-06-07 05:55:44 +00:00
2021-06-18 09:31:55 +00:00
// ADL2 version of function delagates
2021-06-18 06:11:32 +00:00
/// <summary> ADL2 Create Function to create ADL Data</summary>
2021-06-18 00:33:46 +00:00
/// <param name="callback">Call back functin pointer which is ised to allocate memory </param>
/// <param name="numConnectedAdapters">If it is 1, then ADL will only retuen the physical exist adapters </param>
/// <param name="contextHandle">Handle to ADL client context.</param>
2021-06-18 06:11:32 +00:00
/// <returns> retrun ADL Error Code</returns>
2021-06-27 01:53:00 +00:00
public delegate int ADL2_Main_Control_Create ( ADL_Main_Memory_Alloc callback , int numConnectedAdapters , out IntPtr contextHandle ) ;
2021-06-18 00:33:46 +00:00
/// <summary> ADL2 Destroy Function to free up ADL Data</summary>
/// <param name="contextHandle">Handle to ADL client context.</param>
/// <returns> retrun ADL Error Code</returns>
2021-06-27 01:53:00 +00:00
public delegate int ADL2_Main_Control_Destroy ( IntPtr contextHandle ) ;
2021-06-18 00:33:46 +00:00
2021-06-18 06:11:32 +00:00
/// <summary> ADL2 Function to get the number of adapters</summary>
2021-06-18 06:02:14 +00:00
/// <param name="ADLContextHandle">Handle to ADL client context.</param>
/// <param name="numAdapters">return number of adapters</param>
2021-06-27 01:53:00 +00:00
public delegate int ADL2_Adapter_NumberOfAdapters_Get ( IntPtr ADLContextHandle , ref int numAdapters ) ;
2021-06-18 06:02:14 +00:00
2021-06-18 06:11:32 +00:00
/// <summary> ADL2 Function to determine if the adapter is active or not.</summary>
/// <remarks>The function is used to check if the adapter associated with iAdapterIndex is active</remarks>
/// <param name="ADLContextHandle">Handle to ADL client context.</param>
/// <param name="adapterIndex"> Adapter Index.</param>
/// <param name="status"> Status of the adapter. True: Active; False: Disabled</param>
/// <returns>Non zero is successful</returns>
2021-06-27 01:53:00 +00:00
public delegate int ADL2_Adapter_Active_Get ( IntPtr ADLContextHandle , int adapterIndex , ref int status ) ;
2021-06-18 06:11:32 +00:00
2021-06-18 09:31:55 +00:00
/// <summary>ADL2 Function to retrieve adapter capability information.</summary>
/// <remarks>This function implements a DI call to retrieve adapter capability information .</remarks>
/// <param name="ADLContextHandle">Handle to ADL client context.</param>
/// <param name="adapterIndex"> Adapter Index.</param>
/// <param name="adapterCapabilities"> The pointer to the ADLAdapterCaps structure storing the retrieved adapter capability information.</param>
/// <returns>return ADL Error Code</returns>
2021-06-27 01:53:00 +00:00
public delegate int ADL2_AdapterX2_Caps ( IntPtr ADLContextHandle , int adapterIndex , out ADLAdapterCapsX2 adapterCapabilities ) ;
2021-06-18 09:31:55 +00:00
2021-06-18 06:11:32 +00:00
/// <summary>ADL2 Function to retrieve all OS-known adapter information.</summary>
2021-06-18 06:02:14 +00:00
/// <remarks>This function retrieves the adapter information of all OS-known adapters in the system. OS-known adapters can include adapters that are physically present in the system (logical adapters) as well as ones that are no longer present in the system but are still recognized by the OS.</remarks>
/// <param name="ADLContextHandle">Handle to ADL client context.</param>
/// <param name="adapterInfoArray">return GPU adapter information</param>
/// <param name="inputSize">the size of the GPU adapter struct</param>
/// <returns> retrun ADL Error Code</returns>
2021-06-27 01:53:00 +00:00
public delegate int ADL2_Adapter_AdapterInfo_Get ( IntPtr ADLContextHandle , int inputSize , out IntPtr adapterInfoArray ) ;
2021-06-18 06:02:14 +00:00
2021-06-18 06:11:32 +00:00
/// <summary>ADL2 function retrieves all OS-known adapter information.</summary>
2021-06-18 06:02:14 +00:00
/// <remarks>This function retrieves the adapter information of all OS-known adapters in the system. OS-known adapters can include adapters that are physically present in the system (logical adapters) as well as ones that are no longer present in the system but are still recognized by the OS.</remarks>
/// <param name="ADLContextHandle">Handle to ADL client context.</param>
/// <param name="adapterInfoArray">return GPU adapter information. Is a pointer to the pointer of AdapterInfo array. Initialize to NULL before calling this API. ADL will allocate the necessary memory, using the user provided callback function.</param>
/// <returns> retrun ADL Error Code</returns>
2021-06-27 01:53:00 +00:00
public delegate int ADL2_Adapter_AdapterInfoX2_Get ( IntPtr ADLContextHandle , out IntPtr adapterInfoArray ) ;
2021-06-18 06:02:14 +00:00
2021-06-18 06:11:32 +00:00
/// <summary>ADL2 function retrieves all OS-known adapter information.</summary>
2021-06-18 06:02:14 +00:00
/// <remarks>This function retrieves the adapter information of all OS-known adapters in the system. OS-known adapters can include adapters that are physically present in the system (logical adapters) as well as ones that are no longer present in the system but are still recognized by the OS.</remarks>
/// <param name="ADLContextHandle">Handle to ADL client context.</param>
/// <param name="adapterIndex">The ADL index handle of the desired adapter or -1 if all adapters are desired</param>
/// <param name="numAdapters">Number of items in the AdapterInfo Array. Can pass NULL pointer if passign an adapter index (in which case only one AdapterInfo is returned)</param>
/// <param name="adapterInfoArray">return GPU adapter information</param>
/// <returns> retrun ADL Error Code</returns>
2021-06-27 01:53:00 +00:00
public delegate int ADL2_Adapter_AdapterInfoX3_Get ( IntPtr ADLContextHandle , int adapterIndex , out int numAdapters , out IntPtr adapterInfoArray ) ;
2021-06-18 06:02:14 +00:00
2021-06-18 06:11:32 +00:00
/// <summary>ADL2 function retrieves all OS-known adapter information.</summary>
2021-06-18 06:02:14 +00:00
/// <remarks>This function retrieves the adapter information of all OS-known adapters in the system. OS-known adapters can include adapters that are physically present in the system (logical adapters) as well as ones that are no longer present in the system but are still recognized by the OS.</remarks>
/// <param name="ADLContextHandle">Handle to ADL client context.</param>
/// <param name="adapterIndex">The ADL index handle of the desired adapter or -1 if all adapters are desired</param>
/// <param name="numAdapters">Number of items in the AdapterInfo Array. Can pass NULL pointer if passign an adapter index (in which case only one AdapterInfo is returned)</param>
/// <param name="adapterInfoX2Array">return GPU adapter information in adapterInfoX2 array</param>
/// <returns> retrun ADL Error Code</returns>
2021-06-27 01:53:00 +00:00
public delegate int ADL2_Adapter_AdapterInfoX4_Get ( IntPtr ADLContextHandle , int adapterIndex , out int numAdapters , out IntPtr adapterInfoX2Array ) ;
2021-06-18 06:02:14 +00:00
2021-06-18 06:11:32 +00:00
/// <summary> ADL2 Create Function to create ADL Data</summary>
2021-06-18 00:33:46 +00:00
/// <param name="ADLContextHandle">Handle to ADL client context.</param>
/// <param name="adapterIndex">Adapter Index</param>
/// <param name="displayIndex">Display Index</param>
/// <param name="displayDDCInfo2">The ADLDDCInfo2 structure storing all DDC retrieved from the driver.</param>
2021-06-18 06:11:32 +00:00
/// <returns> retrun ADL Error Code</returns>
2021-06-27 01:53:00 +00:00
public delegate int ADL2_Display_DDCInfo2_Get ( IntPtr ADLContextHandle , int adapterIndex , int displayIndex , out ADLDDCInfo2 displayDDCInfo2 ) ;
2021-06-18 00:33:46 +00:00
2021-06-18 09:31:55 +00:00
/// <summary>ADL2 function to get display information based on adapter index</summary>
/// <param name="ADLContextHandle">Handle to ADL client context.</param>
/// <param name="adapterIndex">Adapter Index</param>
/// <param name="numDisplays">return the total number of supported displays</param>
/// <param name="displayInfoArray">return ADLDisplayInfo Array for supported displays' information</param>
/// <param name="forceDetect">force detect or not</param>
/// <returns>return ADL Error Code</returns>
2021-06-27 01:53:00 +00:00
public delegate int ADL2_Display_DisplayInfo_Get ( IntPtr ADLContextHandle , int adapterIndex , ref int numDisplays , out IntPtr displayInfoArray , int forceDetect ) ;
2021-06-18 09:31:55 +00:00
/// <summary>This ADL2 function retrieves HDTV capability settings for a specified display.</summary>
/// <param name="ADLContextHandle">Handle to ADL client context.</param>
/// <param name="adapterIndex">Adapter Index</param>
/// <param name="displayIndex">Display Index</param>
/// <param name="displayConfig">return ADLDisplayConfig with HDTV capability settings in it</param>
/// <returns>return ADL Error Code</returns>
2021-06-27 01:53:00 +00:00
public delegate int ADL2_Display_DeviceConfig_Get ( IntPtr ADLContextHandle , int adapterIndex , int displayIndex , out ADLDisplayConfig displayConfig ) ;
2021-06-18 09:31:55 +00:00
2021-06-18 21:48:47 +00:00
/// <summary>ADL2 function to query whether a display is HDR Supported and Enabled</summary>
/// <param name="ADLContextHandle">Handle to ADL client context.</param>
/// <param name="adapterIndex">Adapter Index</param>
/// <param name="displayID">DisplayID for the desired display</param>
/// <param name="support">return a pointer to the int whose value is set to true if the display supports HDR</param>
/// <param name="enable">return a pointer to the int whose value is set to true if HDR is enabled on this display</param>
/// <returns>return ADL Error Code</returns>
2021-06-27 01:53:00 +00:00
public delegate int ADL2_Display_HDRState_Get ( IntPtr ADLContextHandle , int adapterIndex , ADLDisplayID displayID , out int support , out int enable ) ;
2021-06-18 21:48:47 +00:00
2021-06-20 03:20:43 +00:00
/// <summary>ADL2 function to retrieve the current display mode information</summary>
/// <param name="ADLContextHandle">Handle to ADL client context.</param>
/// <param name="adapterIndex">Adapter Index</param>
/// <param name="displayIndex">Display Index</param>
/// <param name="numModes">return a pointer to the number of modes retrieved.</param>
/// <param name="modes">return a pointer to the array of retrieved ADLMode display modes.</param>
/// <returns>return ADL Error Code</returns>
2021-06-27 01:53:00 +00:00
public delegate int ADL2_Display_Modes_Get ( IntPtr ADLContextHandle , int adapterIndex , int displayIndex , out int numModes , out IntPtr modes ) ;
2021-06-20 03:20:43 +00:00
2021-06-18 21:48:47 +00:00
2021-06-18 09:31:55 +00:00
// ADL version of function delagates
2021-06-18 00:33:46 +00:00
2021-06-18 06:11:32 +00:00
/// <summary> ADL Create Function to create ADL Data</summary>
2021-06-07 05:55:44 +00:00
/// <param name="callback">Call back functin pointer which is ised to allocate memeory </param>
/// <param name="enumConnectedAdapters">If it is 1, then ADL will only retuen the physical exist adapters </param>
2021-06-18 06:11:32 +00:00
/// <returns> retrun ADL Error Code</returns>
2021-06-27 01:53:00 +00:00
public delegate int ADL_Main_Control_Create ( ADL_Main_Memory_Alloc callback , int enumConnectedAdapters ) ;
2021-06-07 05:55:44 +00:00
/// <summary> ADL Destroy Function to free up ADL Data</summary>
/// <returns> retrun ADL Error Code</returns>
2021-06-27 01:53:00 +00:00
public delegate int ADL_Main_Control_Destroy ( ) ;
2021-06-07 05:55:44 +00:00
/// <summary> ADL Function to get the number of adapters</summary>
/// <param name="numAdapters">return number of adapters</param>
/// <returns> retrun ADL Error Code</returns>
2021-06-27 01:53:00 +00:00
public delegate int ADL_Adapter_NumberOfAdapters_Get ( ref int numAdapters ) ;
2021-06-07 05:55:44 +00:00
/// <summary> Function to determine if the adapter is active or not.</summary>
/// <remarks>The function is used to check if the adapter associated with iAdapterIndex is active</remarks>
/// <param name="adapterIndex"> Adapter Index.</param>
2021-06-15 09:55:15 +00:00
/// <param name="status"> Status of the adapter. True: Active; False: Disabled</param>
/// <returns>Non zero is successful</returns>
2021-06-27 01:53:00 +00:00
public delegate int ADL_Adapter_Active_Get ( int adapterIndex , ref int status ) ;
2021-06-07 05:55:44 +00:00
2021-06-15 09:55:15 +00:00
/// <summary> Function to get the unique identifier of an adapter.</summary>
/// <remarks>This function retrieves the unique identifier of a specified adapter. The adapter ID is a unique value and will be used to determine what other controllers share the same adapter. The desktop will use this to find which HDCs are associated with an adapter.</remarks>
/// <param name="adapterIndex"> Adapter Index.</param>
/// <param name="adapterId"> The pointer to the adapter identifier. Zero means: The adapter is not AMD.</param>
/// <returns>return ADL Error Code</returns>
2021-06-27 01:53:00 +00:00
public delegate int ADL_Adapter_ID_Get ( int adapterIndex , ref int adapterId ) ;
2021-06-15 09:55:15 +00:00
/// <summary>Function to retrieve adapter capability information.</summary>
/// <remarks>This function implements a DI call to retrieve adapter capability information .</remarks>
/// <param name="adapterIndex"> Adapter Index.</param>
/// <param name="adapterCapabilities"> The pointer to the ADLAdapterCaps structure storing the retrieved adapter capability information.</param>
/// <returns>return ADL Error Code</returns>
2021-06-27 01:53:00 +00:00
public delegate int ADL_AdapterX2_Caps ( int adapterIndex , out ADLAdapterCapsX2 adapterCapabilities ) ;
2021-06-15 09:55:15 +00:00
2021-06-18 06:02:14 +00:00
/// <summary>Retrieves all OS-known adapter information.</summary>
/// <remarks>This function retrieves the adapter information of all OS-known adapters in the system. OS-known adapters can include adapters that are physically present in the system (logical adapters) as well as ones that are no longer present in the system but are still recognized by the OS.</remarks>
/// <param name="adapterInfoArray">return GPU adapter information</param>
/// <param name="inputSize">the size of the GPU adapter struct</param>
/// <returns> retrun ADL Error Code</returns>
2021-06-27 01:53:00 +00:00
public delegate int ADL_Adapter_AdapterInfo_Get ( out IntPtr adapterInfoArray , int inputSize ) ;
2021-06-18 06:02:14 +00:00
2021-06-18 00:33:46 +00:00
/// <summary>Function to get the EDID data.</summary>
/// <remarks>This function retrieves the EDID data for a specififed display.</remarks>
2021-06-18 06:11:32 +00:00
/// <param name="adapterIndex">Adapter Index</param>
2021-06-18 00:33:46 +00:00
/// <param name="displayIndex">The desired display index. It can be retrieved from the ADLDisplayInfo data structure.</param>
/// <param name="EDIDData">return the ADLDisplayEDIDData structure storing the retrieved EDID data.</param>
/// <returns>return ADL Error Code</returns>
2021-06-27 01:53:00 +00:00
public delegate int ADL_Display_EdidData_Get ( int adapterIndex , int displayIndex , ref ADLDisplayEDIDData EDIDData ) ;
2021-06-18 00:33:46 +00:00
2021-06-07 05:55:44 +00:00
/// <summary>Get display information based on adapter index</summary>
/// <param name="adapterIndex">Adapter Index</param>
/// <param name="numDisplays">return the total number of supported displays</param>
/// <param name="displayInfoArray">return ADLDisplayInfo Array for supported displays' information</param>
/// <param name="forceDetect">force detect or not</param>
/// <returns>return ADL Error Code</returns>
2021-06-27 01:53:00 +00:00
public delegate int ADL_Display_DisplayInfo_Get ( int adapterIndex , ref int numDisplays , out IntPtr displayInfoArray , int forceDetect ) ;
2021-06-07 09:41:48 +00:00
2021-06-16 10:15:15 +00:00
/// <summary>This function retrieves HDTV capability settings for a specified display.</summary>
/// <param name="adapterIndex">Adapter Index</param>
/// <param name="displayIndex">Display Index</param>
/// <param name="displayConfig">return ADLDisplayConfig with HDTV capability settings in it</param>
/// <returns>return ADL Error Code</returns>
2021-06-27 01:53:00 +00:00
public delegate int ADL_Display_DeviceConfig_Get ( int adapterIndex , int displayIndex , out ADLDisplayConfig displayConfig ) ;
2021-06-16 10:15:15 +00:00
2021-06-17 09:40:10 +00:00
/// <summary>Function to retrieve current display map configurations.</summary>
/// <remarks>This function retrieves the current display map configurations, including the controllers and adapters mapped to each display.</remarks>
/// <param name="adapterIndex"> The ADL index handle of the desired adapter. A value of -1 returns all display configurations for the system across multiple GPUs.</param>
/// <param name="numDisplayMap">Number of returned Display Maps</param>
/// <param name="displayMap">Array of ADLDisplayMap objects</param>
/// <param name="numDisplayTarget">Number of Display Targets</param>
/// <param name="displayTarget">Array of ADLDisplayTarget objects</param>
/// <param name="options">Options supplied</param>
/// <returns>return ADL Error Code</returns>
2021-06-27 01:53:00 +00:00
public delegate int ADL_Display_DisplayMapConfig_Get ( int adapterIndex , out int numDisplayMap , out IntPtr displayMap , out int numDisplayTarget , out IntPtr displayTarget , int options ) ;
2021-06-17 09:40:10 +00:00
/// <summary>Function to validate a list of display configurations.</summary>
/// <remarks>This function allows the user to input a potential displays map and its targets. The function can also be used to obtain a list of display targets that can be added to this given topology and a list of display targets that can be removed from this given topology.</remarks>
/// <param name="adapterIndex"> The ADL index handle of the desired adapter. Cannot be set to -1 </param>
/// <param name="numDisplayMap">Number of Display Map</param>
/// <param name="displayMap">Number of Display Map</param>
/// <param name="numDisplayTarget">Number of Display Map</param>
/// <param name="displayTarget">Number of Display Map</param>
/// <param name="numPossibleAddTarget">Number of Display Map</param>
/// <param name="possibleAddTarget">Number of Display Map</param>
/// <param name="numPossibleRemoveTarget">Number of Display Map</param>
/// <param name="possibleRemoveTarget">Number of Display Map</param>
/// <returns>return ADL Error Code</returns>
2021-06-27 01:53:00 +00:00
public delegate int ADL_Display_DisplayMapConfig_PossibleAddAndRemove ( int adapterIndex , int numDisplayMap , ADLDisplayMap displayMap , int numDisplayTarget , ADLDisplayTarget displayTarget , out int numPossibleAddTarget , out IntPtr possibleAddTarget , out int numPossibleRemoveTarget , out IntPtr possibleRemoveTarget ) ;
2021-06-17 09:40:10 +00:00
2021-06-07 09:41:48 +00:00
/// <summary>Function to retrieve an SLS configuration.</summary>
/// <param name="adapterIndex">Adapter Index</param>
/// <param name="SLSMapIndex">Specifies the SLS map index to be queried.</param>
/// <param name="SLSMap">return ADLSLSMap Array for supported displays' information</param>
/// <param name="numSLSTarget">return number of targets in the SLS mapo</param>
/// <param name="SLSTargetArray">return ADLSLSTarget Array </param>
/// <param name="numNativeMode">return the number of native modes</param>
/// <param name="SLSNativeMode">return ADLSLSMode Array that contains the native modes</param>
/// <param name="numBezelMode">return the number of bezel modes</param>
/// <param name="SLSBezelMode">return ADLSLSMode Array that contains the bezel modes</param>
/// <param name="numTransientMode">return the number of transient modes</param>
/// <param name="SLSTransientMode">return ADLSLSMode Array that contains the transient modes</param>
/// <param name="numSLSOffset">return the number of SLS offsets</param>
/// <param name="SLSOffset">return ADLSLSOffset Array that contains the SLS offsets</param>
/// <param name="option">Specifies the layout type of SLS grid data. It is bit vector. There are two types of SLS layout:s, relative to landscape (ref \ADL_DISPLAY_SLSGRID_CAP_OPTION_RELATIVETO_LANDSCAPE) and relative to current angle (ref \ADL_DISPLAY_SLSGRID_CAP_OPTION_RELATIVETO_CURRENTANGLE).</param>
/// <returns>return ADL Error Code</returns>
2021-06-27 01:53:00 +00:00
public delegate int ADL_Display_SLSMapConfig_Get ( int adapterIndex , int SLSMapIndex , ref ADLSLSMap SLSMap , ref int numSLSTarget , out IntPtr SLSTargetArray , ref int numNativeMode ,
2021-06-07 09:41:48 +00:00
out IntPtr SLSNativeMode , ref int numBezelMode , out IntPtr SLSBezelMode , ref int numTransientMode , out IntPtr SLSTransientMode , ref int numSLSOffset , out IntPtr SLSOffset , int option ) ;
2021-06-07 05:55:44 +00:00
#endregion Export Delegates
#region Export Struct
2021-06-07 09:41:48 +00:00
#region ADLMode
/// <summary> ADLAdapterInfo Array</summary>
[StructLayout(LayoutKind.Sequential)]
2021-06-27 01:53:00 +00:00
public struct ADLMode
2021-06-07 09:41:48 +00:00
{
/// <summary> Adapter index. </summary>
2021-06-27 01:53:00 +00:00
public int AdapterIndex ;
2021-06-26 09:54:11 +00:00
/// <summary> Display IDs. </summary>
2021-06-27 01:53:00 +00:00
public ADLDisplayID DisplayID ;
2021-06-26 09:54:11 +00:00
/// <summary> Screen position X coordinate. </summary>
2021-06-27 01:53:00 +00:00
public int XPos ;
2021-06-26 09:54:11 +00:00
/// <summary> Screen position Y coordinate. </summary>
2021-06-27 01:53:00 +00:00
public int YPos ;
2021-06-26 09:54:11 +00:00
/// <summary> Screen resolution Width. </summary>
2021-06-27 01:53:00 +00:00
public int XRes ;
2021-06-26 09:54:11 +00:00
/// <summary> Screen resolution Height. </summary>
2021-06-27 01:53:00 +00:00
public int YRes ;
2021-06-07 09:41:48 +00:00
/// <summary> Screen Color Depth. E.g., 16, 32. </summary>
2021-06-27 01:53:00 +00:00
public int ColourDepth ;
2021-06-26 09:54:11 +00:00
/// <summary> Screen refresh rate. </summary>
2021-06-27 01:53:00 +00:00
public float RefreshRate ;
2021-06-26 09:54:11 +00:00
/// <summary> Screen orientation. E.g., 0, 90, 180, 270. </summary>
2021-06-27 01:53:00 +00:00
public int Orientation ;
2021-06-07 09:41:48 +00:00
/// <summary> Vista mode flag indicating Progressive or Interlaced mode. </summary>
2021-06-27 01:53:00 +00:00
public int ModeFlag ;
2021-06-07 09:41:48 +00:00
/// <summary> The bit mask identifying the number of bits this Mode is currently using. </summary>
2021-06-27 01:53:00 +00:00
public int ModeMask ;
2021-06-07 09:41:48 +00:00
/// <summary> The bit mask identifying the display status. </summary>
2021-06-27 01:53:00 +00:00
public int ModeValue ;
2021-06-07 09:41:48 +00:00
}
2021-06-20 04:37:00 +00:00
2021-06-27 01:53:00 +00:00
public struct ConvertedDisplayModeFlags
2021-06-20 04:37:00 +00:00
{
/// <summary> Indicates the display supports Colour Format 565.</summary>
2021-06-27 01:53:00 +00:00
public bool COLOURFORMAT_565 ;
2021-06-20 04:37:00 +00:00
/// <summary> Indicates the display supports Colour Format 8888.</summary>
2021-06-27 01:53:00 +00:00
public bool COLOURFORMAT_8888 ;
2021-06-20 04:37:00 +00:00
/// <summary> Indicates the display supports normal vertical orientation</summary>
2021-06-27 01:53:00 +00:00
public bool ORIENTATION_SUPPORTED_000 ;
2021-06-20 04:37:00 +00:00
/// <summary> Indicates the display supports 90 degree orientation</summary>
2021-06-27 01:53:00 +00:00
public bool ORIENTATION_SUPPORTED_090 ;
2021-06-20 04:37:00 +00:00
/// <summary> Indicates the display supports 180 degree orientation</summary>
2021-06-27 01:53:00 +00:00
public bool ORIENTATION_SUPPORTED_180 ;
2021-06-20 04:37:00 +00:00
/// <summary> Indicates the display supports 270 degree orientation</summary>
2021-06-27 01:53:00 +00:00
public bool ORIENTATION_SUPPORTED_270 ;
2021-06-20 04:37:00 +00:00
/// <summary> Indicates the display supports rounded refresh rates</summary>
2021-06-27 01:53:00 +00:00
public bool REFRESHRATE_ROUNDED ;
2021-06-20 04:37:00 +00:00
/// <summary> Indicates the display supports exact refresh rates</summary>
2021-06-27 01:53:00 +00:00
public bool REFRESHRATE_ONLY ;
2021-06-20 04:37:00 +00:00
}
2021-06-07 09:41:48 +00:00
#endregion ADLMode
#region ADLDisplayTarget
2021-06-17 09:40:10 +00:00
/// <summary> ADLDisplayTarget </summary>
2021-06-07 09:41:48 +00:00
[StructLayout(LayoutKind.Sequential)]
2021-06-27 01:53:00 +00:00
public struct ADLDisplayTarget
2021-06-07 09:41:48 +00:00
{
/// <summary> Display IDs. </summary>
2021-06-27 01:53:00 +00:00
public ADLDisplayID DisplayID ;
2021-06-07 09:41:48 +00:00
/// <summary> The display map index identify this manner and the desktop surface. </summary>
2021-06-27 01:53:00 +00:00
public int DisplayMapIndex ;
2021-06-07 09:41:48 +00:00
/// <summary> The bit mask identifies the number of bits DisplayTarget is currently using. </summary>
2021-06-27 01:53:00 +00:00
public int DisplayTargetMask ;
2021-06-07 09:41:48 +00:00
/// <summary> The bit mask identifies the display status. </summary>
2021-06-27 01:53:00 +00:00
public int DisplayTargetValue ;
2021-06-07 09:41:48 +00:00
}
2021-06-17 09:40:10 +00:00
/// <summary> ADLDisplayTargetArray Array</summary>
[StructLayout(LayoutKind.Sequential)]
2021-06-27 01:53:00 +00:00
public struct ADLDisplayTargetArray
2021-06-17 09:40:10 +00:00
{
/// <summary> ADLDisplayTarget Array </summary>
[MarshalAs(UnmanagedType.ByValArray, SizeConst = (int)ADL.ADL_MAX_DISPLAYS)]
2021-06-27 01:53:00 +00:00
public ADLDisplayTarget [ ] ADLDisplayTarget ;
2021-06-17 09:40:10 +00:00
}
2021-06-07 09:41:48 +00:00
#endregion ADLDisplayTarget
2021-06-07 05:55:44 +00:00
#region ADLAdapterInfo
/// <summary> ADLAdapterInfo Structure</summary>
[StructLayout(LayoutKind.Sequential)]
2021-06-27 01:53:00 +00:00
public struct ADLAdapterInfo
2021-06-07 05:55:44 +00:00
{
/// <summary>The size of the structure</summary>
int Size ;
/// <summary> Adapter Index</summary>
2021-06-27 01:53:00 +00:00
public int AdapterIndex ;
2021-06-07 05:55:44 +00:00
/// <summary> Adapter UDID</summary>
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = (int)ADL.ADL_MAX_PATH)]
2021-06-27 01:53:00 +00:00
public string UDID ;
2021-06-07 05:55:44 +00:00
/// <summary> Adapter Bus Number</summary>
2021-06-27 01:53:00 +00:00
public int BusNumber ;
2021-06-07 05:55:44 +00:00
/// <summary> Adapter Driver Number</summary>
2021-06-27 01:53:00 +00:00
public int DriverNumber ;
2021-06-07 05:55:44 +00:00
/// <summary> Adapter Function Number</summary>
2021-06-27 01:53:00 +00:00
public int FunctionNumber ;
2021-06-07 05:55:44 +00:00
/// <summary> Adapter Vendor ID</summary>
2021-06-27 01:53:00 +00:00
public int VendorID ;
2021-06-07 05:55:44 +00:00
/// <summary> Adapter Adapter name</summary>
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = (int)ADL.ADL_MAX_PATH)]
2021-06-27 01:53:00 +00:00
public string AdapterName ;
2021-06-07 05:55:44 +00:00
/// <summary> Adapter Display name</summary>
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = (int)ADL.ADL_MAX_PATH)]
2021-06-27 01:53:00 +00:00
public string DisplayName ;
2021-06-07 05:55:44 +00:00
/// <summary> Adapter Present status</summary>
2021-06-27 01:53:00 +00:00
public int Present ;
2021-06-07 05:55:44 +00:00
/// <summary> Adapter Exist status</summary>
2021-06-27 01:53:00 +00:00
public int Exist ;
2021-06-07 05:55:44 +00:00
/// <summary> Adapter Driver Path</summary>
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = (int)ADL.ADL_MAX_PATH)]
2021-06-27 01:53:00 +00:00
public string DriverPath ;
2021-06-07 05:55:44 +00:00
/// <summary> Adapter Driver Ext Path</summary>
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = (int)ADL.ADL_MAX_PATH)]
2021-06-27 01:53:00 +00:00
public string DriverPathExt ;
2021-06-07 05:55:44 +00:00
/// <summary> Adapter PNP String</summary>
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = (int)ADL.ADL_MAX_PATH)]
2021-06-27 01:53:00 +00:00
public string PNPString ;
2021-06-07 05:55:44 +00:00
/// <summary> OS Display Index</summary>
2021-06-27 01:53:00 +00:00
public int OSDisplayIndex ;
2021-06-07 05:55:44 +00:00
}
/// <summary> ADLAdapterInfo Array</summary>
[StructLayout(LayoutKind.Sequential)]
2021-06-27 01:53:00 +00:00
public struct ADLAdapterInfoArray
2021-06-07 05:55:44 +00:00
{
/// <summary> ADLAdapterInfo Array </summary>
[MarshalAs(UnmanagedType.ByValArray, SizeConst = (int)ADL.ADL_MAX_ADAPTERS)]
2021-06-27 01:53:00 +00:00
public ADLAdapterInfo [ ] ADLAdapterInfo ;
2021-06-07 05:55:44 +00:00
}
2021-06-18 06:02:14 +00:00
/// <summary> ADLAdapterInfoX2 Structure</summary>
[StructLayout(LayoutKind.Sequential)]
2021-06-27 01:53:00 +00:00
public struct ADLAdapterInfoX2
2021-06-18 06:02:14 +00:00
{
/// <summary>The size of the structure</summary>
2021-06-27 01:53:00 +00:00
public int Size ;
2021-06-18 06:02:14 +00:00
/// <summary> Adapter Index</summary>
2021-06-27 01:53:00 +00:00
public int AdapterIndex ;
2021-06-18 06:02:14 +00:00
/// <summary> Adapter UDID</summary>
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = (int)ADL.ADL_MAX_PATH)]
2021-06-27 01:53:00 +00:00
public string UDID ;
2021-06-18 06:02:14 +00:00
/// <summary> Adapter Bus Number</summary>
2021-06-27 01:53:00 +00:00
public int BusNumber ;
2021-06-18 06:02:14 +00:00
/// <summary> Adapter Device Number</summary>
2021-06-27 01:53:00 +00:00
public int DeviceNumber ;
2021-06-18 06:02:14 +00:00
/// <summary> Adapter Function Number</summary>
2021-06-27 01:53:00 +00:00
public int FunctionNumber ;
2021-06-18 06:02:14 +00:00
/// <summary> Adapter Vendor ID</summary>
2021-06-27 01:53:00 +00:00
public int VendorID ;
2021-06-18 06:02:14 +00:00
/// <summary> Adapter Adapter name</summary>
2021-06-18 21:48:47 +00:00
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = (int)ADL.ADL_MAX_DISPLAY_NAME)]
2021-06-27 01:53:00 +00:00
public string AdapterName ;
2021-06-18 06:02:14 +00:00
/// <summary> Adapter Display name</summary>
2021-06-18 21:48:47 +00:00
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = (int)ADL.ADL_MAX_DISPLAY_NAME)]
2021-06-27 01:53:00 +00:00
public string DisplayName ;
2021-06-18 06:02:14 +00:00
/// <summary> Adapter Present status</summary>
2021-06-27 01:53:00 +00:00
public int Present ;
2021-06-18 06:02:14 +00:00
/// <summary> Adapter Exist status</summary>
2021-06-27 01:53:00 +00:00
public int Exist ;
2021-06-18 06:02:14 +00:00
/// <summary> Adapter Driver Path</summary>
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = (int)ADL.ADL_MAX_PATH)]
2021-06-27 01:53:00 +00:00
public string DriverPath ;
2021-06-18 06:02:14 +00:00
/// <summary> Adapter Driver Ext Path</summary>
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = (int)ADL.ADL_MAX_PATH)]
2021-06-27 01:53:00 +00:00
public string DriverPathExt ;
2021-06-18 06:02:14 +00:00
/// <summary> Adapter PNP String</summary>
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = (int)ADL.ADL_MAX_PATH)]
2021-06-27 01:53:00 +00:00
public string PNPString ;
2021-06-18 06:02:14 +00:00
/// <summary> OS Display Index</summary>
2021-06-27 01:53:00 +00:00
public int OSDisplayIndex ;
2021-06-18 06:02:14 +00:00
/// <summary> Display Info Mask</summary>
2021-06-27 01:53:00 +00:00
public int InfoMask ;
2021-06-18 06:02:14 +00:00
/// <summary> Display Info Value</summary>
2021-06-27 01:53:00 +00:00
public int InfoValue ;
2021-06-18 06:02:14 +00:00
}
2021-06-07 05:55:44 +00:00
#endregion ADLAdapterInfo
2021-06-18 00:33:46 +00:00
2021-06-07 05:55:44 +00:00
#region ADLDisplayInfo
2021-06-18 00:33:46 +00:00
/// <summary> ADLDisplayEDIDData Structure</summary>
[StructLayout(LayoutKind.Sequential)]
2021-06-27 01:53:00 +00:00
public struct ADLDisplayEDIDData
2021-06-18 00:33:46 +00:00
{
2021-06-26 09:54:11 +00:00
/// <summary> Size</summary>
2021-06-27 01:53:00 +00:00
public int Size ;
2021-06-26 09:54:11 +00:00
/// <summary> Flag</summary>
2021-06-27 01:53:00 +00:00
public int Flag ;
2021-06-26 09:54:11 +00:00
/// <summary> EDIDSize </summary>
2021-06-27 01:53:00 +00:00
public int EDIDSize ;
2021-06-26 09:54:11 +00:00
/// <summary> Block Index </summary>
2021-06-27 01:53:00 +00:00
public int BlockIndex ;
2021-06-18 00:33:46 +00:00
/// <summary> EDIDData [256] </summary>
2021-06-18 09:31:55 +00:00
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = (int)ADL.ADL_MAX_EDIDDATA_SIZE)]
2021-06-27 01:53:00 +00:00
public string EDIDData ;
2021-06-26 09:54:11 +00:00
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)]
2021-06-27 01:53:00 +00:00
public int [ ] Reserved ;
2021-06-26 09:54:11 +00:00
2021-06-18 00:33:46 +00:00
}
/// <summary> ADLDDCInfo2 Structure</summary>
[StructLayout(LayoutKind.Sequential)]
2021-06-27 01:53:00 +00:00
public struct ADLDDCInfo2
2021-06-18 00:33:46 +00:00
{
2021-06-18 09:31:55 +00:00
/// <summary> Size of the structure. </summary>
2021-06-27 01:53:00 +00:00
public int Size ;
2021-06-18 09:31:55 +00:00
/// <summary> Whether this display device support DDC</summary>
2021-06-27 01:53:00 +00:00
public int SupportsDDC ;
2021-06-18 09:31:55 +00:00
/// <summary> Returns the manufacturer ID of the display device. Should be zeroed if this information is not available.</summary>
2021-06-27 01:53:00 +00:00
public int ManufacturerID ;
2021-06-18 09:31:55 +00:00
/// <summary> Returns the product ID of the display device. Should be zeroed if this informatiadlon is not available.</summary>
2021-06-27 01:53:00 +00:00
public int ProductID ;
2021-06-18 09:31:55 +00:00
/// <summary> Returns the name of the display device. Should be zeroed if this information is not available.</summary>
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = (int)ADL.ADL_MAX_DISPLAY_NAME)]
2021-06-27 01:53:00 +00:00
public string DisplayName ;
2021-06-18 09:31:55 +00:00
/// <summary> Returns the maximum Horizontal supported resolution. Should be zeroed if this information is not available.</summary>
2021-06-27 01:53:00 +00:00
public int MaxHResolution ;
2021-06-18 09:31:55 +00:00
/// <summary> Returns the maximum Vertical supported resolution. Should be zeroed if this information is not available. </summary>
2021-06-27 01:53:00 +00:00
public int MaxVResolution ;
2021-06-18 09:31:55 +00:00
/// <summary> Returns the maximum supported refresh rate. Should be zeroed if this information is not available. </summary>
2021-06-27 01:53:00 +00:00
public int MaxRefresh ;
2021-06-18 09:31:55 +00:00
/// <summary> Returns the display device preferred timing mode's horizontal resolution.</summary>
2021-06-27 01:53:00 +00:00
public int PTMCx ;
2021-06-18 09:31:55 +00:00
/// <summary> Returns the display device preferred timing mode's vertical resolution. </summary>
2021-06-27 01:53:00 +00:00
public int PTMCy ;
2021-06-18 09:31:55 +00:00
/// <summary> Returns the display device preferred timing mode's refresh rate.</summary>
2021-06-27 01:53:00 +00:00
public int PTMRefreshRate ;
2021-06-18 09:31:55 +00:00
/// <summary> Return EDID flags.</summary>
2021-06-27 01:53:00 +00:00
public int DDCInfoFlag ;
2021-06-18 00:33:46 +00:00
/// <summary> Returns 1 if the display supported packed pixel, 0 otherwise. </summary>
2021-06-27 01:53:00 +00:00
public int PackedPixelSupported ;
2021-06-18 09:31:55 +00:00
/// <summary> Returns the Pixel formats the display supports DDCInfo Pixel Formats.</summary>
2021-06-27 01:53:00 +00:00
public int PanelPixelFormat ;
2021-06-18 09:31:55 +00:00
/// <summary> Return EDID serial ID.</summary>
2021-06-27 01:53:00 +00:00
public int SerialID ;
2021-06-18 09:31:55 +00:00
/// <summary> Return minimum monitor luminance data.</summary>
2021-06-27 01:53:00 +00:00
public int MinLuminanceData ;
2021-06-18 09:31:55 +00:00
/// <summary> Return average monitor luminance data. </summary>
2021-06-27 01:53:00 +00:00
public int AvgLuminanceData ;
2021-06-18 09:31:55 +00:00
/// <summary> Return maximum monitor luminance data.</summary>
2021-06-27 01:53:00 +00:00
public int MaxLuminanceData ;
2021-06-18 09:31:55 +00:00
/// <summary> Bit vector of supported transfer functions ADLSourceContentAttributes transfer functions (gamma). </summary>
2021-06-27 01:53:00 +00:00
public int SupportedTransferFunction ;
2021-06-18 09:31:55 +00:00
/// <summary> Bit vector of supported color spaces ADLSourceContentAttributes color spaces.</summary>
2021-06-27 01:53:00 +00:00
public int SupportedColorSpace ;
2021-06-18 00:33:46 +00:00
/// <summary> Display Red Chromaticity X coordinate multiplied by 10000.</summary>
2021-06-27 01:53:00 +00:00
public int NativeDisplayChromaticityRedX ;
2021-06-18 00:33:46 +00:00
/// <summary> Display Red Chromaticity Y coordinate multiplied by 10000.</summary>
2021-06-27 01:53:00 +00:00
public int NativeDisplayChromaticityRedY ;
2021-06-18 09:31:55 +00:00
/// <summary> Display Green Chromaticity X coordinate multiplied by 10000.</summary>
2021-06-27 01:53:00 +00:00
public int NativeDisplayChromaticityGreenX ;
2021-06-18 09:31:55 +00:00
/// <summary> Display Green Chromaticity Y coordinate multiplied by 10000.</summary>
2021-06-27 01:53:00 +00:00
public int NativeDisplayChromaticityGreenY ;
2021-06-18 09:31:55 +00:00
/// <summary> Display Blue Chromaticity X coordinate multiplied by 10000.</summary>
2021-06-27 01:53:00 +00:00
public int NativeDisplayChromaticityBlueX ;
2021-06-18 09:31:55 +00:00
/// <summary> Display Blue Chromaticity Y coordinate multiplied by 10000.</summary>
2021-06-27 01:53:00 +00:00
public int NativeDisplayChromaticityBlueY ;
2021-06-18 00:33:46 +00:00
/// <summary> Display White Chromaticity X coordinate multiplied by 10000.</summary>
2021-06-27 01:53:00 +00:00
public int NativeDisplayChromaticityWhiteX ;
2021-06-18 00:33:46 +00:00
/// <summary> Display White Chromaticity Y coordinate multiplied by 10000.</summary>
2021-06-27 01:53:00 +00:00
public int NativeDisplayChromaticityWhiteY ;
2021-06-18 09:31:55 +00:00
/// <summary> Display diffuse screen reflectance 0-1 (100%) in units of 0.01.</summary>
2021-06-27 01:53:00 +00:00
public int DiffuseScreenReflectance ;
2021-06-18 00:33:46 +00:00
/// <summary> Display specular screen reflectance 0-1 (100%) in units of 0.01.</summary>
2021-06-27 01:53:00 +00:00
public int SpecularScreenReflectance ;
2021-06-18 00:33:46 +00:00
/// <summary> Bit vector of supported color spaces ADLDDCInfo2 HDR support options.</summary>
2021-06-27 01:53:00 +00:00
public int SupportedHDR ;
2021-06-18 09:31:55 +00:00
/// <summary> Bit vector for freesync flags.</summary>
2021-06-27 01:53:00 +00:00
public int FreesyncFlags ;
2021-06-18 09:31:55 +00:00
/// <summary> Return minimum monitor luminance without dimming data.</summary>
2021-06-27 01:53:00 +00:00
public int MinLuminanceNoDimmingData ;
2021-06-18 00:33:46 +00:00
/// <summary> Returns the maximum backlight maximum luminance. Should be zeroed if this information is not available.</summary>
2021-06-27 01:53:00 +00:00
public int MaxBacklightMaxLuminanceData ;
2021-06-18 09:31:55 +00:00
/// <summAry> Returns the minimum backlight maximum luminance. Should be zeroed if this information is not available.</summary>
2021-06-27 01:53:00 +00:00
public int MinBacklightMaxLuminanceData ;
2021-06-18 00:33:46 +00:00
/// <summary> Returns the maximum backlight minimum luminance. Should be zeroed if this information is not available.</summary>
2021-06-27 01:53:00 +00:00
public int MaxBacklightMinLuminanceData ;
2021-06-18 00:33:46 +00:00
/// <summary> Returns the minimum backlight maximum luminance. Should be zeroed if this information is not available.</summary>
2021-06-27 01:53:00 +00:00
public int MinBacklightMinLuminanceData ;
2021-06-18 09:31:55 +00:00
/// <summary> Reserved </summary>
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)]
2021-06-27 01:53:00 +00:00
public int [ ] Reserved ;
2021-06-18 00:33:46 +00:00
}
2021-06-27 01:53:00 +00:00
public struct ConvertedDDCInfoFlag
2021-06-18 21:48:47 +00:00
{
/// <summary> Indicates the display is a projector .</summary>
2021-06-27 01:53:00 +00:00
public bool PROJECTORDEVICE ;
2021-06-18 21:48:47 +00:00
/// <summary> Indicates the display has an EDID extension</summary>
2021-06-27 01:53:00 +00:00
public bool EDIDEXTENSION ;
2021-06-18 21:48:47 +00:00
/// <summary> Indicates the display is a digital device</summary>
2021-06-27 01:53:00 +00:00
public bool DIGITALDEVICE ;
2021-06-18 21:48:47 +00:00
/// <summary> Indicates the display has HDMI audio capabilities</summary>
2021-06-27 01:53:00 +00:00
public bool HDMIAUDIODEVICE ;
2021-06-18 21:48:47 +00:00
/// <summary> Indicates the display supports AI</summary>
2021-06-27 01:53:00 +00:00
public bool SUPPORTS_AI ;
2021-06-18 21:48:47 +00:00
/// <summary> Indicates the display supports xvYCC601</summary>
2021-06-27 01:53:00 +00:00
public bool SUPPORT_xvYCC601 ;
2021-06-18 21:48:47 +00:00
/// <summary> Indicates the display supports xvYCC709</summary>
2021-06-27 01:53:00 +00:00
public bool SUPPORT_xvYCC709 ;
2021-06-18 21:48:47 +00:00
}
2021-06-27 01:53:00 +00:00
public struct ConvertedSupportedHDR
2021-06-18 21:48:47 +00:00
{
/// <summary> HDR10/CEA861.3 HDR supported</summary>
2021-06-27 01:53:00 +00:00
public bool CEA861_3 ;
2021-06-18 21:48:47 +00:00
/// <summary> DolbyVision HDR supported</summary>
2021-06-27 01:53:00 +00:00
public bool DOLBYVISION ;
2021-06-18 21:48:47 +00:00
/// <summary> FreeSync HDR supported.</summary>
2021-06-27 01:53:00 +00:00
public bool FREESYNC_HDR ;
2021-06-18 21:48:47 +00:00
}
2021-06-07 05:55:44 +00:00
/// <summary> ADLDisplayID Structure</summary>
[StructLayout(LayoutKind.Sequential)]
2021-06-27 01:53:00 +00:00
public struct ADLDisplayID
2021-06-07 05:55:44 +00:00
{
/// <summary> Display Logical Index </summary>
2021-06-27 01:53:00 +00:00
public int DisplayLogicalIndex ;
2021-06-07 05:55:44 +00:00
/// <summary> Display Physical Index </summary>
2021-06-27 01:53:00 +00:00
public int DisplayPhysicalIndex ;
2021-06-07 05:55:44 +00:00
/// <summary> Adapter Logical Index </summary>
2021-06-27 01:53:00 +00:00
public int DisplayLogicalAdapterIndex ;
2021-06-07 05:55:44 +00:00
/// <summary> Adapter Physical Index </summary>
2021-06-27 01:53:00 +00:00
public int DisplayPhysicalAdapterIndex ;
2021-06-07 05:55:44 +00:00
}
/// <summary> ADLDisplayInfo Structure</summary>
[StructLayout(LayoutKind.Sequential)]
2021-06-27 01:53:00 +00:00
public struct ADLDisplayInfo
2021-06-07 05:55:44 +00:00
{
/// <summary> Display Index </summary>
2021-06-27 01:53:00 +00:00
public ADLDisplayID DisplayID ;
2021-06-07 05:55:44 +00:00
/// <summary> Display Controller Index </summary>
2021-06-27 01:53:00 +00:00
public int DisplayControllerIndex ;
2021-06-07 05:55:44 +00:00
/// <summary> Display Name </summary>
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = (int)ADL.ADL_MAX_PATH)]
2021-06-27 01:53:00 +00:00
public string DisplayName ;
2021-06-07 05:55:44 +00:00
/// <summary> Display Manufacturer Name </summary>
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = (int)ADL.ADL_MAX_PATH)]
2021-06-27 01:53:00 +00:00
public string DisplayManufacturerName ;
2021-06-07 05:55:44 +00:00
/// <summary> Display Type : < The Display type. CRT, TV,CV,DFP are some of display types,</summary>
2021-06-27 01:53:00 +00:00
public int DisplayType ;
2021-06-07 05:55:44 +00:00
/// <summary> Display output type </summary>
2021-06-27 01:53:00 +00:00
public int DisplayOutputType ;
2021-06-07 05:55:44 +00:00
/// <summary> Connector type</summary>
2021-06-27 01:53:00 +00:00
public int DisplayConnector ;
2021-06-07 05:55:44 +00:00
///<summary> Indicating the display info bits' mask.<summary>
2021-06-27 01:53:00 +00:00
public int DisplayInfoMask ;
2021-06-07 05:55:44 +00:00
///<summary> Indicating the display info value.<summary>
2021-06-27 01:53:00 +00:00
public int DisplayInfoValue ;
2021-06-07 05:55:44 +00:00
}
2021-06-14 08:37:35 +00:00
2021-06-27 01:53:00 +00:00
public struct ConvertedDisplayInfoValue
2021-06-18 00:33:46 +00:00
{
/// <summary> Indicates the display is connected .</summary>
2021-06-27 01:53:00 +00:00
public bool DISPLAYCONNECTED ;
2021-06-18 00:33:46 +00:00
/// <summary> Indicates the display is mapped within OS </summary>
2021-06-27 01:53:00 +00:00
public bool DISPLAYMAPPED ;
2021-06-18 00:33:46 +00:00
/// <summary> Indicates the display can be forced </summary>
2021-06-27 01:53:00 +00:00
public bool FORCIBLESUPPORTED ;
2021-06-18 00:33:46 +00:00
/// <summary> Indicates the display supports genlock </summary>
2021-06-27 01:53:00 +00:00
public bool GENLOCKSUPPORTED ;
2021-06-18 00:33:46 +00:00
/// <summary> Indicates the display is an LDA display.</summary>
2021-06-27 01:53:00 +00:00
public bool LDA_DISPLAY ;
2021-06-18 00:33:46 +00:00
/// <summary> Indicates the display supports 2x Horizontal stretch </summary>
2021-06-27 01:53:00 +00:00
public bool MANNER_SUPPORTED_2HSTRETCH ;
2021-06-18 00:33:46 +00:00
/// <summIndicates the display supports 2x Vertical stretch </summary>
2021-06-27 01:53:00 +00:00
public bool MANNER_SUPPORTED_2VSTRETCH ;
2021-06-18 00:33:46 +00:00
/// <summary> Indicates the display supports cloned desktops </summary>
2021-06-27 01:53:00 +00:00
public bool MANNER_SUPPORTED_CLONE ;
2021-06-18 00:33:46 +00:00
/// <summary> Indicates the display supports extended desktops </summary>
2021-06-27 01:53:00 +00:00
public bool MANNER_SUPPORTED_EXTENDED ;
2021-06-18 00:33:46 +00:00
/// <summary> Indicates the display supports N Stretched on 1 GPU</summary>
2021-06-27 01:53:00 +00:00
public bool MANNER_SUPPORTED_NSTRETCH1GPU ;
2021-06-18 00:33:46 +00:00
/// <summary> Indicates the display supports N Stretched on N GPUs</summary>
2021-06-27 01:53:00 +00:00
public bool MANNER_SUPPORTED_NSTRETCHNGPU ;
2021-06-18 00:33:46 +00:00
/// <summary> Reserved display info flag #2</summary>
2021-06-27 01:53:00 +00:00
public bool MANNER_SUPPORTED_RESERVED2 ;
2021-06-18 00:33:46 +00:00
/// <summary> Reserved display info flag #3</summary>
2021-06-27 01:53:00 +00:00
public bool MANNER_SUPPORTED_RESERVED3 ;
2021-06-18 00:33:46 +00:00
/// <summary> Indicates the display supports single desktop </summary>
2021-06-27 01:53:00 +00:00
public bool MANNER_SUPPORTED_SINGLE ;
2021-06-18 00:33:46 +00:00
/// <summary> Indicates the display supports overriding the mode timing </summary>
2021-06-27 01:53:00 +00:00
public bool MODETIMING_OVERRIDESSUPPORTED ;
2021-06-18 00:33:46 +00:00
/// <summary> Indicates the display supports multi-vpu</summary>
2021-06-27 01:53:00 +00:00
public bool MULTIVPU_SUPPORTED ;
2021-06-18 00:33:46 +00:00
/// <summary> Indicates the display is non-local to this machine </summary>
2021-06-27 01:53:00 +00:00
public bool NONLOCAL ;
2021-06-18 00:33:46 +00:00
/// <summary> Indicates the display is a projector </summary>
2021-06-27 01:53:00 +00:00
public bool SHOWTYPE_PROJECTOR ;
2021-06-18 00:33:46 +00:00
}
2021-06-16 10:15:15 +00:00
/// <summary> ADLDisplayConfig Structure</summary>
[StructLayout(LayoutKind.Sequential)]
2021-06-27 01:53:00 +00:00
public struct ADLDisplayConfig
2021-06-16 10:15:15 +00:00
{
2021-06-26 09:54:11 +00:00
/// <summary> Size of this data structure </summary>
2021-06-27 01:53:00 +00:00
public long Size ;
2021-06-16 10:15:15 +00:00
/// <summary> HDTV Connector Type </summary>
2021-06-27 01:53:00 +00:00
public long ConnectorType ;
2021-06-16 10:15:15 +00:00
/// <summary> HDTV Capabilities themselves </summary>
2021-06-27 01:53:00 +00:00
public long DeviceData ;
2021-06-16 10:15:15 +00:00
/// <summary> Overridden HDTV capabilities</summary>
2021-06-27 01:53:00 +00:00
public long OverriddedDeviceData ;
2021-06-16 10:15:15 +00:00
/// <summary> Reserved for future use</summary>
2021-06-27 01:53:00 +00:00
public long Reserved ;
2021-06-26 09:54:11 +00:00
2021-06-16 10:15:15 +00:00
}
2021-06-17 09:40:10 +00:00
/// <summary> ADLDisplayMap Structure</summary>
[StructLayout(LayoutKind.Sequential)]
2021-06-27 01:53:00 +00:00
public struct ADLDisplayMap
2021-06-17 09:40:10 +00:00
{
/// <summary> The current display map index. It is the OS desktop index. For example, if the OS index 1 is showing clone mode, the display map will be 1. </summary>
2021-06-27 01:53:00 +00:00
public int DisplayMapIndex ;
2021-06-26 09:54:11 +00:00
/// <summary> The Display Mode for the current map.</summary>
2021-06-27 01:53:00 +00:00
public ADLMode DisplayMode ;
2021-06-26 09:54:11 +00:00
/// <summary> The number of display targets belongs to this map </summary>
2021-06-27 01:53:00 +00:00
public int NumDisplayTarget ;
2021-06-26 09:54:11 +00:00
/// <summary> The first target array index in the Target array </summary>
2021-06-27 01:53:00 +00:00
public int FirstDisplayTargetArrayIndex ;
2021-06-17 09:40:10 +00:00
/// <summary> The bit mask identifies the number of bits DisplayMap is currently using. It is the sum of all the bit definitions defined in ADL_DISPLAY_DISPLAYMAP_MANNER_xxx.</summary>
2021-06-27 01:53:00 +00:00
public int DisplayMapMask ;
2021-06-17 09:40:10 +00:00
/// <summary> The bit mask identifies the display status. The detailed definition is in ADL_DISPLAY_DISPLAYMAP_MANNER_xxx.</summary>
2021-06-27 01:53:00 +00:00
public int DisplayMapValue ;
2021-06-17 09:40:10 +00:00
}
/// <summary> ADLDisplayMapArray Array</summary>
[StructLayout(LayoutKind.Sequential)]
2021-06-27 01:53:00 +00:00
public struct ADLDisplayMapArray
2021-06-17 09:40:10 +00:00
{
/// <summary> ADLAdapterInfo Array </summary>
[MarshalAs(UnmanagedType.ByValArray, SizeConst = (int)ADL.ADL_MAX_DISPLAYS)]
2021-06-27 01:53:00 +00:00
public ADLDisplayMap [ ] ADLDisplayMap ;
2021-06-17 09:40:10 +00:00
}
2021-06-15 09:55:15 +00:00
/// <summary> ADLAdapterCaps Structure</summary>
[StructLayout(LayoutKind.Sequential)]
2021-06-27 01:53:00 +00:00
public struct ADLAdapterCapsX2
2021-06-15 09:55:15 +00:00
{
/// <summary> AdapterID for this adapter </summary>
2021-06-27 01:53:00 +00:00
public int AdapterID ;
2021-06-15 09:55:15 +00:00
/// <summary> Number of controllers for this adapter. </summary>
2021-06-27 01:53:00 +00:00
public int NumControllers ;
2021-06-15 09:55:15 +00:00
/// <summary> Number of displays for this adapter.</summary>
2021-06-27 01:53:00 +00:00
public int NumDisplays ;
2021-06-15 09:55:15 +00:00
/// <summary> Number of overlays for this adapter.</summary>
2021-06-27 01:53:00 +00:00
public int NumOverlays ;
2021-06-16 10:15:15 +00:00
/// <summary> Number of GLSyncConnectors. </summary>
2021-06-27 01:53:00 +00:00
public int NumOfGLSyncConnectors ;
2021-06-16 10:15:15 +00:00
/// <summary> The bit mask identifies the adapter caps. </summary>
2021-06-27 01:53:00 +00:00
public int CapsMask ;
2021-06-16 10:15:15 +00:00
/// <summary> The bit identifies the adapter caps define_adapter_caps. </summary>
2021-06-27 01:53:00 +00:00
public int CapsValue ;
2021-06-16 10:15:15 +00:00
/// <summary> Number of Connectors for this adapter. </summary>
2021-06-27 01:53:00 +00:00
public int NumConnectors ;
2021-06-15 09:55:15 +00:00
}
2021-06-07 05:55:44 +00:00
#endregion ADLDisplayInfo
2021-06-07 09:41:48 +00:00
#region ADLSLS
/// <summary> ADLSLSGrid Structure</summary>
[StructLayout(LayoutKind.Sequential)]
2021-06-27 01:53:00 +00:00
public struct ADLSLSGrid
2021-06-07 09:41:48 +00:00
{
/// <summary> The Adapter index </summary>
2021-06-27 01:53:00 +00:00
public int AdapterIndex ;
2021-06-07 09:41:48 +00:00
/// <summary> The grid index </summary>
2021-06-27 01:53:00 +00:00
public int SLSGridIndex ;
2021-06-07 09:41:48 +00:00
/// <summary>The grid row. </summary>
2021-06-27 01:53:00 +00:00
public int SLSGridRow ;
2021-06-26 09:54:11 +00:00
/// <summary> The grid column </summary>
2021-06-27 01:53:00 +00:00
public int SLSGridColumn ;
2021-06-26 09:54:11 +00:00
/// <summary> The grid bit mask identifies the number of bits DisplayMap is currently using. </summary>
2021-06-27 01:53:00 +00:00
public int SLSGridMask ;
2021-06-07 09:41:48 +00:00
/// <summary> The grid bit value identifies the display status. </summary>
2021-06-27 01:53:00 +00:00
public int SLSGridValue ;
2021-06-07 09:41:48 +00:00
}
/// <summary> ADLSLSMap Structure</summary>
[StructLayout(LayoutKind.Sequential)]
2021-06-27 01:53:00 +00:00
public struct ADLSLSMap
2021-06-07 09:41:48 +00:00
{
/// <summary> The Adapter Index </summary>
2021-06-27 01:53:00 +00:00
public int AdapterIndex ;
2021-06-26 09:54:11 +00:00
/// <summary> The current display map index. It is the OS Desktop index. </summary>
2021-06-27 01:53:00 +00:00
public int SLSMapIndex ;
2021-06-26 09:54:11 +00:00
/// <summary> The current grid </summary>
2021-06-27 01:53:00 +00:00
public ADLSLSGrid Grid ;
2021-06-26 09:54:11 +00:00
/// <summary> OS Surface Index </summary>
2021-06-27 01:53:00 +00:00
public int SurfaceMapIndex ;
2021-06-26 09:54:11 +00:00
/// <summary> Screen orientation. E.g., 0, 90, 180, 270. </summary>
2021-06-27 01:53:00 +00:00
public int Orientation ;
2021-06-26 09:54:11 +00:00
/// <summary> The number of display targets belongs to this map. </summary>
2021-06-27 01:53:00 +00:00
public int NumSLSTarget ;
2021-06-07 09:41:48 +00:00
/// <summary> The first target array index in the Target array. </summary>
2021-06-27 01:53:00 +00:00
public int FirstSLSTargetArrayIndex ;
2021-06-26 09:54:11 +00:00
/// <summary> The number of native modes belongs to this map. </summary>
2021-06-27 01:53:00 +00:00
public int NumNativeMode ;
2021-06-26 09:54:11 +00:00
/// <summary>The first native mode array index in the native mode array. </summary>
2021-06-27 01:53:00 +00:00
public int FirstNativeModeArrayIndex ;
2021-06-07 09:41:48 +00:00
/// <summary> The number of bezel modes belongs to this map. </summary>
2021-06-27 01:53:00 +00:00
public int NumBezelMode ;
2021-06-26 09:54:11 +00:00
/// <summary> The first bezel mode array index in the native mode array </summary>
2021-06-27 01:53:00 +00:00
public int FirstBezelModeArrayIndex ;
2021-06-07 09:41:48 +00:00
/// <summary> The number of bezel offsets belongs to this map. </summary>
2021-06-27 01:53:00 +00:00
public int NumBezelOffset ;
2021-06-26 09:54:11 +00:00
/// <summary> The first bezel offset array index in the native mode array </summary>
2021-06-27 01:53:00 +00:00
public int FirstBezelOffsetArrayIndex ;
2021-06-07 09:41:48 +00:00
/// <summary> Bitmask identifies display map status </summary>
2021-06-27 01:53:00 +00:00
public int SLSMapMask ;
2021-06-07 09:41:48 +00:00
/// <summary> Bitmask identifies display map status </summary>
2021-06-27 01:53:00 +00:00
public int SLSMapValue ;
2021-06-26 09:54:11 +00:00
2021-06-07 09:41:48 +00:00
}
/// <summary> ADLSLSTarget Structure</summary>
[StructLayout(LayoutKind.Sequential)]
2021-06-27 01:53:00 +00:00
public struct ADLSLSTarget
2021-06-07 09:41:48 +00:00
{
/// <summary> The Adapter Index </summary>
2021-06-27 01:53:00 +00:00
public int AdapterIndex ;
2021-06-26 09:54:11 +00:00
/// <summary> The SLS map index. </summary>
2021-06-27 01:53:00 +00:00
public int SLSMapIndex ;
2021-06-26 09:54:11 +00:00
/// <summary> The target ID. </summary>
2021-06-27 01:53:00 +00:00
public ADLDisplayTarget DisplayTarget ;
2021-06-07 09:41:48 +00:00
/// <summary> Target postion X in SLS grid </summary>
2021-06-27 01:53:00 +00:00
public int SLSGridPositionX ;
2021-06-07 09:41:48 +00:00
/// <summary> Target postion Y in SLS grid </summary>
2021-06-27 01:53:00 +00:00
public int SLSGridPositionY ;
2021-06-26 09:54:11 +00:00
/// <summary> The view size width, height and rotation angle per SLS Target. </summary>
2021-06-27 01:53:00 +00:00
public ADLMode ViewSize ;
2021-06-07 09:41:48 +00:00
/// <summary> The bit mask identifies the bits in iSLSTargetValue are currently used. </summary>
2021-06-27 01:53:00 +00:00
public int SLSTargetMask ;
2021-06-07 09:41:48 +00:00
/// <summary> The bit mask identifies status info. </summary>
2021-06-27 01:53:00 +00:00
public int SLSTargetValue ;
2021-06-07 09:41:48 +00:00
}
/// <summary> ADLSLSTarget Array</summary>
[StructLayout(LayoutKind.Sequential)]
2021-06-27 01:53:00 +00:00
public struct ADLSLSTargetArray
2021-06-07 09:41:48 +00:00
{
/// <summary> ADLAdapterInfo Array </summary>
[MarshalAs(UnmanagedType.ByValArray, SizeConst = (int)ADL.ADL_MAX_ADAPTERS)]
2021-06-27 01:53:00 +00:00
public ADLSLSTarget [ ] ADLSLSTarget ;
2021-06-07 09:41:48 +00:00
}
/// <summary> ADLSLSMode Structure</summary>
[StructLayout(LayoutKind.Sequential)]
2021-06-27 01:53:00 +00:00
public struct ADLSLSMode
2021-06-07 09:41:48 +00:00
{
/// <summary> The Adapter Index </summary>
2021-06-27 01:53:00 +00:00
public int AdapterIndex ;
2021-06-07 09:41:48 +00:00
/// <summary> The current display map index. It is the OS Desktop index. </summary>
2021-06-27 01:53:00 +00:00
public int SLSMapIndex ;
2021-06-07 09:41:48 +00:00
/// <summary> The mode index. </summary>
2021-06-27 01:53:00 +00:00
public int SLSModeIndex ;
2021-06-26 09:54:11 +00:00
/// <summary> The target ID. </summary>
2021-06-27 01:53:00 +00:00
public ADLMode DisplayMode ;
2021-06-07 09:41:48 +00:00
/// <summary> The bit mask identifies the number of bits Mode is currently using. </summary>
2021-06-27 01:53:00 +00:00
public int SLSNativeModeMask ;
2021-06-07 09:41:48 +00:00
/// <summary> The bit mask identifies the display status. </summary>
2021-06-27 01:53:00 +00:00
public int SLSNativeModeValue ;
2021-06-07 09:41:48 +00:00
}
/// <summary> ADLBezelTransientMode Structure</summary>
[StructLayout(LayoutKind.Sequential)]
2021-06-27 01:53:00 +00:00
public struct ADLBezelTransientMode
2021-06-07 09:41:48 +00:00
{
/// <summary> The Adapter Index </summary>
2021-06-27 01:53:00 +00:00
public int AdapterIndex ;
2021-06-26 09:54:11 +00:00
/// <summary> SLS Map Index. </summary>
2021-06-27 01:53:00 +00:00
public int SLSMapIndex ;
2021-06-26 09:54:11 +00:00
/// <summary> SLS Mode Index. </summary>
2021-06-27 01:53:00 +00:00
public int SLSModeIndex ;
2021-06-26 09:54:11 +00:00
/// <summary> The target ID. </summary>
2021-06-27 01:53:00 +00:00
public ADLMode DisplayMode ;
2021-06-07 09:41:48 +00:00
/// <summary> The number of bezel offsets belongs to this map. </summary>
2021-06-27 01:53:00 +00:00
public int NumBezelOffset ;
2021-06-26 09:54:11 +00:00
/// <summary> The first bezel offset array index in the native mode array. </summary>
2021-06-27 01:53:00 +00:00
public int FirstBezelOffsetArrayIndex ;
2021-06-07 09:41:48 +00:00
/// <summary> The bit mask identifies the bits this structure is currently using. </summary>
2021-06-27 01:53:00 +00:00
public int SLSBezelTransientModeMask ;
2021-06-07 09:41:48 +00:00
/// <summary> The bit mask identifies the display status. </summary>
2021-06-27 01:53:00 +00:00
public int SLSBezelTransientModeValue ;
2021-06-26 09:54:11 +00:00
2021-06-07 09:41:48 +00:00
}
/// <summary> ADLSLSOffset Structure</summary>
[StructLayout(LayoutKind.Sequential)]
2021-06-27 01:53:00 +00:00
public struct ADLSLSOffset
2021-06-07 09:41:48 +00:00
{
/// <summary> The Adapter Index </summary>
2021-06-27 01:53:00 +00:00
public int AdapterIndex ;
2021-06-26 09:54:11 +00:00
/// <summary> The current display map index. It is the OS Desktop index. </summary>
2021-06-27 01:53:00 +00:00
public int SLSMapIndex ;
2021-06-26 09:54:11 +00:00
/// <summary> The target ID. </summary>
2021-06-27 01:53:00 +00:00
public ADLDisplayID DisplayID ;
2021-06-07 09:41:48 +00:00
/// <summary> SLS Bezel Mode Index. </summary>
2021-06-27 01:53:00 +00:00
public int BezelModeIndex ;
2021-06-07 09:41:48 +00:00
/// <summary>SLS Bezel Offset X. </summary>
2021-06-27 01:53:00 +00:00
public int BezelOffsetX ;
2021-06-07 09:41:48 +00:00
/// <summary>SLS Bezel Offset Y. </summary>
2021-06-27 01:53:00 +00:00
public int BezelOffsetY ;
2021-06-07 09:41:48 +00:00
/// <summary> SLS Display Width. </summary>
2021-06-27 01:53:00 +00:00
public int DisplayWidth ;
2021-06-26 09:54:11 +00:00
/// <summary> SLS Display Height. </summary>
2021-06-27 01:53:00 +00:00
public int DisplayHeight ;
2021-06-26 09:54:11 +00:00
/// <summary> The bit mask identifies the number of bits Offset is currently using. </summary>
2021-06-27 01:53:00 +00:00
public int BezelOffsetMask ;
2021-06-26 09:54:11 +00:00
/// <summary> The bit mask identifies the display status. </summary>
2021-06-27 01:53:00 +00:00
public int BezelOffsetValue ;
2021-06-07 09:41:48 +00:00
}
#endregion ADLSLS
2021-06-07 05:55:44 +00:00
#endregion Export Struct
#region ADL Class
/// <summary> ADL Class</summary>
2021-06-27 01:53:00 +00:00
public static class ADL
2021-06-07 05:55:44 +00:00
{
#region Internal Constant
2021-06-17 09:40:10 +00:00
/// <summary> Selects all adapters instead of aparticular single adapter</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_ADAPTER_INDEX_ALL = - 1 ;
2021-06-19 08:19:29 +00:00
/// <summary> Define the maximum char</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_MAX_CHAR = 4096 ;
2021-06-07 05:55:44 +00:00
/// <summary> Define the maximum path</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_MAX_PATH = 256 ;
2021-06-07 05:55:44 +00:00
/// <summary> Define the maximum adapters</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_MAX_ADAPTERS = 250 ;
2021-06-07 05:55:44 +00:00
/// <summary> Define the maximum displays</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_MAX_DISPLAYS = 150 ;
2021-06-07 05:55:44 +00:00
/// <summary> Define the maximum device name length</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_MAX_DEVICENAME = 32 ;
2021-06-18 00:33:46 +00:00
/// <summary> Define the maximum EDID Data length</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_MAX_EDIDDATA_SIZE = 256 ; // number of UCHAR
2021-06-18 09:31:55 +00:00
/// <summary> Define the maximum display names</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_MAX_DISPLAY_NAME = 256 ;
2021-06-18 00:33:46 +00:00
// Result Codes
/// <summary> ADL function completed successfully. </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_OK = 0 ;
2021-06-18 00:33:46 +00:00
/// <summary> Generic Error.Most likely one or more of the Escape calls to the driver failed!</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_ERR = - 1 ;
2021-06-18 00:33:46 +00:00
/// <summary> Call can't be made due to disabled adapter. </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_ERR_DISABLED_ADAPTER = - 10 ;
2021-06-18 00:33:46 +00:00
/// <summary> Invalid ADL index passed. </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_ERR_INVALID_ADL_IDX = - 5 ;
2021-06-18 00:33:46 +00:00
/// <summary> Invalid Callback. </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_ERR_INVALID_CALLBACK = - 11 ;
2021-06-18 00:33:46 +00:00
/// <summary> Invalid controller index passed.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_ERR_INVALID_CONTROLLER_IDX = - 6 ;
2021-06-18 00:33:46 +00:00
/// <summary> Invalid display index passed.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_ERR_INVALID_DISPLAY_IDX = - 7 ;
2021-06-18 00:33:46 +00:00
/// <summary> One of the parameter passed is invalid.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_ERR_INVALID_PARAM = - 3 ;
2021-06-18 00:33:46 +00:00
/// <summary> One of the parameter size is invalid.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_ERR_INVALID_PARAM_SIZE = - 4 ;
2021-06-18 00:33:46 +00:00
/// <summary> There's no Linux XDisplay in Linux Console environment.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_ERR_NO_XDISPLAY = - 21 ;
2021-06-18 00:33:46 +00:00
/// <summary> ADL not initialized.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_ERR_NOT_INIT = - 2 ;
2021-06-18 00:33:46 +00:00
/// <summary> Function not supported by the driver. </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_ERR_NOT_SUPPORTED = - 8 ;
2021-06-18 00:33:46 +00:00
/// <summary> Null Pointer error.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_ERR_NULL_POINTER = - 9 ;
2021-06-18 00:33:46 +00:00
/// <summary> Display Resource conflict.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_ERR_RESOURCE_CONFLICT = - 12 ;
2021-06-18 00:33:46 +00:00
/// <summary> Err Set incomplete</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_ERR_SET_INCOMPLETE = - 20 ;
2021-06-18 00:33:46 +00:00
/// <summary> All OK but need mode change. </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_OK_MODE_CHANGE = 2 ;
2021-06-18 00:33:46 +00:00
/// <summary> All OK, but need restart.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_OK_RESTART = 3 ;
2021-06-18 00:33:46 +00:00
/// <summary> All OK, but need to wait</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_OK_WAIT = 4 ;
2021-06-18 00:33:46 +00:00
/// <summary> All OK, but with warning.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_OK_WARNING = 1 ;
2021-06-18 00:33:46 +00:00
2021-06-07 05:55:44 +00:00
/// <summary> Define the driver ok</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DRIVER_OK = 0 ;
2021-06-07 05:55:44 +00:00
/// <summary> Maximum number of GL-Sync ports on the GL-Sync module </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_MAX_GLSYNC_PORTS = 8 ;
2021-06-07 05:55:44 +00:00
/// <summary> Maximum number of GL-Sync ports on the GL-Sync module </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_MAX_GLSYNC_PORT_LEDS = 8 ;
2021-06-12 21:44:36 +00:00
/// <summary> Maximum number of ADLModes for the adapter </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_MAX_NUM_DISPLAYMODES = 1024 ;
2021-06-15 09:55:15 +00:00
/// <summary> Define true </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_TRUE = 1 ;
2021-06-15 09:55:15 +00:00
/// <summary> Maximum number of ADLModes for the adapter </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_FALSE = 0 ;
2021-06-16 10:15:15 +00:00
/// <summary> Indicates the active dongle, all types </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_CONNECTION_TYPE_ACTIVE_DONGLE = 12 ;
2021-06-16 10:15:15 +00:00
/// <summary> Indicates the Active dongle DP->DVI(double link) connection type is valid. </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_CONNECTION_TYPE_ACTIVE_DONGLE_DP_DVI_DL = 6 ;
2021-06-16 10:15:15 +00:00
/// <summary> Indicates the Active dongle DP->DVI(single link) connection type is valid. </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_CONNECTION_TYPE_ACTIVE_DONGLE_DP_DVI_SL = 5 ;
2021-06-16 10:15:15 +00:00
/// <summary> Indicates the Active dongle DP->HDMI connection type is valid. </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_CONNECTION_TYPE_ACTIVE_DONGLE_DP_HDMI = 7 ;
2021-06-16 10:15:15 +00:00
/// <summary> Indicates the Active dongle DP->VGA connection type is valid. </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_CONNECTION_TYPE_ACTIVE_DONGLE_DP_VGA = 8 ;
2021-06-16 10:15:15 +00:00
/// <summary> Indicates the DISPLAY PORT connection type is valid. </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_CONNECTION_TYPE_DISPLAY_PORT = 4 ;
2021-06-16 10:15:15 +00:00
/// <summary> Indicates the DVI_I connection type is valid. </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_CONNECTION_TYPE_DVI = 1 ;
2021-06-16 10:15:15 +00:00
/// <summary> Indicates the DVI_SL connection type is valid. </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_CONNECTION_TYPE_DVI_SL = 2 ;
2021-06-16 10:15:15 +00:00
/// <summary> Indicates the HDMI connection type is valid. </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_CONNECTION_TYPE_HDMI = 3 ;
2021-06-16 10:15:15 +00:00
/// <summary> Indicates the MST type is valid. </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_CONNECTION_TYPE_MST = 11 ;
2021-06-16 10:15:15 +00:00
/// <summary> Indicates the Active dongle DP->VGA connection type is valid. </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_CONNECTION_TYPE_PASSIVE_DONGLE_DP_DVI = 10 ;
2021-06-16 10:15:15 +00:00
/// <summary> Indicates the Passive dongle DP->HDMI connection type is valid. </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_CONNECTION_TYPE_PASSIVE_DONGLE_DP_HDMI = 9 ;
2021-06-16 10:15:15 +00:00
/// <summary> Indicates the VGA connection type is valid. </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_CONNECTION_TYPE_VGA = 0 ;
2021-06-16 10:15:15 +00:00
/// <summary> Indicates the Virtual Connection Type.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_CONNECTION_TYPE_VIRTUAL = 13 ;
2021-06-16 10:15:15 +00:00
/// <summary> Indicates Active Dongle-JP Connector type.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_CONNECTOR_TYPE_ATICVDONGLE_JP = 5 ;
2021-06-16 10:15:15 +00:00
/// <summary> Indicates Active Dongle-NA Connector type.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_CONNECTOR_TYPE_ATICVDONGLE_NA = 4 ;
2021-06-16 10:15:15 +00:00
/// <summary> Indicates Active Dongle-NONI2C Connector type.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_CONNECTOR_TYPE_ATICVDONGLE_NONI2C = 6 ;
2021-06-16 10:15:15 +00:00
/// <summary> Indicates Active Dongle-NONI2C-D Connector type.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_CONNECTOR_TYPE_ATICVDONGLE_NONI2C_D = 7 ;
2021-06-16 10:15:15 +00:00
/// <summary> Indicates Display port Connector type.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_CONNECTOR_TYPE_DISPLAYPORT = 10 ;
2021-06-16 10:15:15 +00:00
/// <summary> Indicates DVI-D Connector type.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_CONNECTOR_TYPE_DVI_D = 2 ;
2021-06-16 10:15:15 +00:00
/// <summary> Indicates DVI-I Connector type.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_CONNECTOR_TYPE_DVI_I = 3 ;
2021-06-16 10:15:15 +00:00
/// <summary> Indicates EDP Connector type.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_CONNECTOR_TYPE_EDP = 11 ;
2021-06-16 10:15:15 +00:00
/// <summary> Indicates HDMI-Type A Connector type.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_CONNECTOR_TYPE_HDMI_TYPE_A = 8 ;
2021-06-16 10:15:15 +00:00
/// <summary> Indicates HDMI-Type B Connector type.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_CONNECTOR_TYPE_HDMI_TYPE_B = 9 ;
2021-06-16 10:15:15 +00:00
/// <summary> Indicates MiniDP Connector type. </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_CONNECTOR_TYPE_MINI_DISPLAYPORT = 12 ;
2021-06-16 10:15:15 +00:00
/// <summary> Indicates Unknown Connector type. </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_CONNECTOR_TYPE_UNKNOWN = 0 ;
2021-06-16 10:15:15 +00:00
/// <summary> Indicates USB type C Connector type. </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_CONNECTOR_TYPE_USB_TYPE_C = 14 ;
2021-06-16 10:15:15 +00:00
/// <summary> Indicates VGA Connector type. </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_CONNECTOR_TYPE_VGA = 1 ;
2021-06-16 10:15:15 +00:00
/// <summary> Indicates Virtual Connector type.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_CONNECTOR_TYPE_VIRTUAL = 13 ;
2021-06-07 05:55:44 +00:00
2021-06-19 01:04:38 +00:00
// ADL Display Connector Types
/// <summary> Indicates Unknown Display Connector type.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_CONTYPE_UNKNOWN = 0 ;
2021-06-19 01:04:38 +00:00
/// <summary> Indicates VGA Display Connector type.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_CONTYPE_VGA = 1 ;
2021-06-19 01:04:38 +00:00
/// <summary> Indicates DVI-D Display Connector type.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_CONTYPE_DVI_D = 2 ;
2021-06-19 01:04:38 +00:00
/// <summary> Indicates DVI-I Display Connector type.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_CONTYPE_DVI_I = 3 ;
2021-06-19 01:04:38 +00:00
/// <summary> Indicates ATICV NTSC Dongle Display Connector type.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_CONTYPE_ATICVDONGLE_NTSC = 4 ;
2021-06-19 01:04:38 +00:00
/// <summary> Indicates ATICV Japanese Display Connector type.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_CONTYPE_ATICVDONGLE_JPN = 5 ;
2021-06-19 01:04:38 +00:00
/// <summary> Indicates ATICV non-I2C Japanese Display Connector type.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_CONTYPE_ATICVDONGLE_NONI2C_JPN = 6 ;
2021-06-19 01:04:38 +00:00
/// <summary> Indicates ATICV non-I2C NTSC Display Connector type.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_CONTYPE_ATICVDONGLE_NONI2C_NTSC = 7 ;
2021-06-19 01:04:38 +00:00
/// <summary> Indicates Proprietary Display Connector type.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_CONTYPE_PROPRIETARY = 8 ;
2021-06-19 01:04:38 +00:00
/// <summary> Indicates HDMI Type A Display Connector type.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_CONTYPE_HDMI_TYPE_A = 10 ;
2021-06-19 01:04:38 +00:00
/// <summary> Indicates HDMI Type B Display Connector type.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_CONTYPE_HDMI_TYPE_B = 11 ;
2021-06-19 01:04:38 +00:00
/// <summary> Indicates S-Video Display Connector type.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_CONTYPE_SVIDEO = 12 ;
2021-06-19 01:04:38 +00:00
/// <summary> Indicates Composite Display Connector type.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_CONTYPE_COMPOSITE = 13 ;
2021-06-19 01:04:38 +00:00
/// <summary> Indicates RCA 3-component Display Connector type.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_CONTYPE_RCA_3COMPONENT = 14 ;
2021-06-19 01:04:38 +00:00
/// <summary> Indicates DisplayPort Display Connector type.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_CONTYPE_DISPLAYPORT = 15 ;
2021-06-19 01:04:38 +00:00
/// <summary> Indicates EDP Display Connector type.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_CONTYPE_EDP = 16 ;
2021-06-19 01:04:38 +00:00
/// <summary> Indicates Wireless Display Connector type.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_CONTYPE_WIRELESSDISPLAY = 17 ;
2021-06-19 01:04:38 +00:00
/// <summary> Indicates USB Type-C Display Connector type.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_CONTYPE_USB_TYPE_C = 18 ;
2021-06-19 01:04:38 +00:00
2021-06-18 00:33:46 +00:00
// Display Info Constants
/// <summary> Indicates the display is connected .</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_DISPLAYINFO_DISPLAYCONNECTED = 0x00000001 ;
2021-06-18 00:33:46 +00:00
/// <summary> Indicates the display is mapped within OS </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_DISPLAYINFO_DISPLAYMAPPED = 0x00000002 ;
2021-06-18 00:33:46 +00:00
/// <summary> Indicates the display can be forced </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_DISPLAYINFO_FORCIBLESUPPORTED = 0x00000008 ;
2021-06-18 00:33:46 +00:00
/// <summary> Indicates the display supports genlock </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_DISPLAYINFO_GENLOCKSUPPORTED = 0x00000010 ;
2021-06-18 00:33:46 +00:00
/// <summary> Indicates the display is an LDA display.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_DISPLAYINFO_LDA_DISPLAY = 0x00000040 ;
2021-06-18 00:33:46 +00:00
/// <summary> Indicates the display supports 2x Horizontal stretch </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_2HSTRETCH = 0x00000800 ;
2021-06-18 00:33:46 +00:00
/// <summary> Indicates the display supports 2x Vertical stretch </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_2VSTRETCH = 0x00000400 ;
2021-06-18 00:33:46 +00:00
/// <summary> Indicates the display supports cloned desktops </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_CLONE = 0x00000200 ;
2021-06-18 00:33:46 +00:00
/// <summary> Indicates the display supports extended desktops </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_EXTENDED = 0x00001000 ;
2021-06-18 00:33:46 +00:00
/// <summary> Indicates the display supports N Stretched on 1 GPU</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_NSTRETCH1GPU = 0x00010000 ;
2021-06-18 00:33:46 +00:00
/// <summary> Indicates the display supports N Stretched on N GPUs</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_NSTRETCHNGPU = 0x00020000 ;
2021-06-18 00:33:46 +00:00
/// <summary> Reserved display info flag #2</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_RESERVED2 = 0x00040000 ;
2021-06-18 00:33:46 +00:00
/// <summary> Reserved display info flag #3</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_RESERVED3 = 0x00080000 ;
2021-06-18 00:33:46 +00:00
/// <summary> Indicates the display supports single desktop </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_SINGLE = 0x00000100 ;
2021-06-18 00:33:46 +00:00
/// <summary> Indicates the display supports overriding the mode timing </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_DISPLAYINFO_MODETIMING_OVERRIDESSUPPORTED = 0x00000080 ;
2021-06-18 00:33:46 +00:00
/// <summary> Indicates the display supports multi-vpu</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_DISPLAYINFO_MULTIVPU_SUPPORTED = 0x00000020 ;
2021-06-18 00:33:46 +00:00
/// <summary> Indicates the display is non-local to this machine </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_DISPLAYINFO_NONLOCAL = 0x00000004 ;
2021-06-18 00:33:46 +00:00
/// <summary> Indicates the display is a projector </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_DISPLAYINFO_SHOWTYPE_PROJECTOR = 0x00100000 ;
2021-06-18 00:33:46 +00:00
2021-06-20 03:20:43 +00:00
// Display Mode Constants
/// <summary> Indicates the display is in interlaced mode</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_MODE_INTERLACED_FLAG = 2 ;
2021-06-20 03:20:43 +00:00
/// <summary> Indicates the display is in progressive mode </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_MODE_PROGRESSIVE_FLAG = 0 ;
2021-06-20 03:20:43 +00:00
/// <summary> Indicates the display colour format is 565</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_MODE_COLOURFORMAT_565 = 0x00000001 ;
2021-06-20 03:20:43 +00:00
/// <summary> Indicates the display colour format is 8888 </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_MODE_COLOURFORMAT_8888 = 0x00000002 ;
2021-06-20 03:20:43 +00:00
/// <summary> Indicates the display orientation is normal position</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_MODE_ORIENTATION_SUPPORTED_000 = 0x00000004 ;
2021-06-20 03:20:43 +00:00
/// <summary> Indicates the display is in the 90 degree position</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_MODE_ORIENTATION_SUPPORTED_090 = 0x00000008 ;
2021-06-20 03:20:43 +00:00
/// <summary> Indicates the display in the 180 degree position</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_MODE_ORIENTATION_SUPPORTED_180 = 0x00000010 ;
2021-06-20 03:20:43 +00:00
/// <summary> Indicates the display is in the 270 degree position</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_MODE_ORIENTATION_SUPPORTED_270 = 0x00000020 ;
2021-06-20 03:20:43 +00:00
/// <summary> Indicates the display refresh rate is exact </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_MODE_REFRESHRATE_ONLY = 0x00000080 ;
2021-06-20 03:20:43 +00:00
/// <summary> Indicates the display refresh rate is rounded</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAY_MODE_REFRESHRATE_ROUNDED = 0x00000040 ;
2021-06-20 03:20:43 +00:00
2021-06-18 21:48:47 +00:00
// DDCInfoX2 DDCInfo Flag values
/// <summary> Indicates the display is a projector </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAYDDCINFOEX_FLAG_PROJECTORDEVICE = ( 1 < < 0 ) ;
2021-06-18 21:48:47 +00:00
/// <summary> Indicates the display is a projector </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAYDDCINFOEX_FLAG_EDIDEXTENSION = ( 1 < < 1 ) ;
2021-06-18 21:48:47 +00:00
/// <summary> Indicates the display is a projector </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAYDDCINFOEX_FLAG_DIGITALDEVICE = ( 1 < < 2 ) ;
2021-06-18 21:48:47 +00:00
/// <summary> Indicates the display is a projector </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAYDDCINFOEX_FLAG_HDMIAUDIODEVICE = ( 1 < < 3 ) ;
2021-06-18 21:48:47 +00:00
/// <summary> Indicates the display is a projector </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAYDDCINFOEX_FLAG_SUPPORTS_AI = ( 1 < < 4 ) ;
2021-06-18 21:48:47 +00:00
/// <summary> Indicates the display is a projector </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAYDDCINFOEX_FLAG_SUPPORT_xvYCC601 = ( 1 < < 5 ) ;
2021-06-18 21:48:47 +00:00
/// <summary> Indicates the display is a projector </summary>
2021-06-27 01:53:00 +00:00
public const int ADL_DISPLAYDDCINFOEX_FLAG_SUPPORT_xvYCC709 = ( 1 < < 6 ) ;
2021-06-18 21:48:47 +00:00
/// <summary> HDR10/CEA861.3 HDR supported</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_HDR_CEA861_3 = 0x0001 ;
2021-06-18 21:48:47 +00:00
/// <summary> DolbyVision HDR supported</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_HDR_DOLBYVISION = 0x0002 ;
2021-06-18 21:48:47 +00:00
/// <summary> FreeSync HDR supported.</summary>
2021-06-27 01:53:00 +00:00
public const int ADL_HDR_FREESYNC_HDR = 0x0004 ;
2021-06-18 00:33:46 +00:00
2021-06-07 05:55:44 +00:00
#endregion Internal Constant
2021-06-17 06:51:48 +00:00
#region Internal Enums
2021-06-27 01:53:00 +00:00
public enum ADLConnectionType
2021-06-17 06:51:48 +00:00
{
2021-06-19 01:04:38 +00:00
VGA = 0 ,
2021-06-17 06:51:48 +00:00
DVI = 1 ,
DVI_SL = 2 ,
HDMI = 4 ,
DisplayPort = 4 ,
ActiveDongleDPToDVI_SL = 5 ,
ActiveDongleDPToDVI_DL = 6 ,
ActiveDongleDPToHDMI = 7 ,
ActiveDongleDPToVGA = 8 ,
PassiveDongleDPToHDMI = 9 ,
PassiveDongleDPToDVI = 10 ,
MST = 11 ,
ActiveDongle = 12 ,
Virtual = 13
}
2021-06-19 01:04:38 +00:00
2021-06-27 01:53:00 +00:00
public enum ADLDisplayConnectionType
2021-06-19 01:04:38 +00:00
{
Unknown = 0 ,
VGA = 1 ,
DVI_D = 2 ,
DVI_I = 3 ,
HDMI = 4 ,
ATICV_NTSC_Dongle = 4 ,
ATICV_JPN_Dongle = 5 ,
ATICV_NONI2C_NTSC_Dongle = 6 ,
ATICV_NONI2C_JPN_Dongle = 7 ,
Proprietary = 8 ,
HDMITypeA = 10 ,
HTMITypeB = 11 ,
SVideo = 12 ,
Composite = 13 ,
RCA_3Component = 14 ,
DisplayPort = 15 ,
EDP = 16 ,
WirelessDisplay = 17 ,
USBTypeC = 18
}
2021-06-27 01:53:00 +00:00
public enum ADLDisplayModeFlag
2021-06-20 03:20:43 +00:00
{
ColourFormat565 = 1 ,
2021-06-20 04:37:00 +00:00
ColourFormat8888 = 2 ,
2021-06-20 03:20:43 +00:00
Degrees0 = 4 ,
Degrees90 = 8 ,
Degrees180 = 10 ,
2021-06-20 04:37:00 +00:00
Degrees270 = 20 ,
2021-06-20 03:20:43 +00:00
ExactRefreshRate = 80 ,
RoundedRefreshRate = 40
}
2021-06-27 01:53:00 +00:00
public enum ADLDisplayModeInterlacing
2021-06-20 04:37:00 +00:00
{
Progressive = 0 ,
Interlaced = 2
}
2021-06-17 06:51:48 +00:00
#endregion Internal Enums
2021-06-07 05:55:44 +00:00
#region Class ADLImport
/// <summary> ADLImport class</summary>
private static class ADLImport
{
#region Internal Constant
/// <summary> Atiadlxx_FileName </summary>
2021-06-27 01:53:00 +00:00
public const string Atiadlxx_FileName = "atiadlxx.dll" ;
2021-06-07 05:55:44 +00:00
/// <summary> Kernel32_FileName </summary>
2021-06-27 01:53:00 +00:00
public const string Kernel32_FileName = "kernel32.dll" ;
2021-06-07 05:55:44 +00:00
#endregion Internal Constant
#region DLLImport
[DllImport(Kernel32_FileName)]
2021-06-27 01:53:00 +00:00
public static extern HMODULE GetModuleHandle ( string moduleName ) ;
2021-06-07 05:55:44 +00:00
2021-06-18 00:33:46 +00:00
[DllImport(Atiadlxx_FileName)]
2021-06-27 01:53:00 +00:00
public static extern int ADL2_Main_Control_Create ( ADL_Main_Memory_Alloc callback , int enumConnectedAdapters , out IntPtr contextHandle ) ;
2021-06-18 00:33:46 +00:00
[DllImport(Atiadlxx_FileName)]
2021-06-27 01:53:00 +00:00
public static extern int ADL2_Main_Control_Destroy ( IntPtr contextHandle ) ;
2021-06-18 00:33:46 +00:00
2021-06-18 06:02:14 +00:00
[DllImport(Atiadlxx_FileName)]
2021-06-27 01:53:00 +00:00
public static extern int ADL2_Adapter_NumberOfAdapters_Get ( IntPtr contextHandle , ref int numAdapters ) ;
2021-06-18 06:02:14 +00:00
2021-06-18 06:11:32 +00:00
[DllImport(Atiadlxx_FileName)]
2021-06-27 01:53:00 +00:00
public static extern int ADL2_Adapter_Active_Get ( IntPtr ADLContextHandle , int adapterIndex , ref int status ) ;
2021-06-18 06:11:32 +00:00
2021-06-18 09:31:55 +00:00
[DllImport(Atiadlxx_FileName)]
2021-06-27 01:53:00 +00:00
public static extern int ADL2_AdapterX2_Caps ( IntPtr ADLContextHandle , int adapterIndex , out ADLAdapterCapsX2 adapterCapabilities ) ;
2021-06-18 09:31:55 +00:00
2021-06-18 06:02:14 +00:00
[DllImport(Atiadlxx_FileName)]
2021-06-27 01:53:00 +00:00
public static extern int ADL2_Adapter_AdapterInfo_Get ( IntPtr ADLContextHandle , int inputSize , out IntPtr AdapterInfoArray ) ;
2021-06-18 06:02:14 +00:00
[DllImport(Atiadlxx_FileName)]
2021-06-27 01:53:00 +00:00
public static extern int ADL2_Adapter_AdapterInfoX2_Get ( IntPtr ADLContextHandle , out IntPtr AdapterInfoArray ) ;
2021-06-18 06:02:14 +00:00
[DllImport(Atiadlxx_FileName)]
2021-06-27 01:53:00 +00:00
public static extern int ADL2_Adapter_AdapterInfoX3_Get ( IntPtr ADLContextHandle , int adapterIndex , out int numAdapters , out IntPtr AdapterInfoArray ) ;
2021-06-18 06:02:14 +00:00
[DllImport(Atiadlxx_FileName)]
2021-06-27 01:53:00 +00:00
public static extern int ADL2_Adapter_AdapterInfoX4_Get ( IntPtr ADLContextHandle , int adapterIndex , out int numAdapters , out IntPtr AdapterInfoX2Array ) ;
2021-06-18 06:02:14 +00:00
2021-06-18 00:33:46 +00:00
[DllImport(Atiadlxx_FileName)]
2021-06-27 01:53:00 +00:00
public static extern int ADL2_Display_DDCInfo2_Get ( IntPtr contextHandle , int adapterIndex , int displayIndex , out ADLDDCInfo2 DDCInfo ) ;
2021-06-18 00:33:46 +00:00
2021-06-18 09:31:55 +00:00
[DllImport(Atiadlxx_FileName)]
2021-06-27 01:53:00 +00:00
public static extern int ADL2_Display_DisplayInfo_Get ( IntPtr ADLContextHandle , int adapterIndex , ref int numDisplays , out IntPtr displayInfoArray , int forceDetect ) ;
2021-06-18 09:31:55 +00:00
[DllImport(Atiadlxx_FileName)]
2021-06-27 01:53:00 +00:00
public static extern int ADL2_Display_DeviceConfig_Get ( IntPtr ADLContextHandle , int adapterIndex , int displayIndex , out ADLDisplayConfig displayConfig ) ;
2021-06-18 09:31:55 +00:00
2021-06-18 21:48:47 +00:00
[DllImport(Atiadlxx_FileName)]
2021-06-27 01:53:00 +00:00
public static extern int ADL2_Display_HDRState_Get ( IntPtr ADLContextHandle , int adapterIndex , ADLDisplayID displayID , out int support , out int enable ) ;
2021-06-18 21:48:47 +00:00
2021-06-20 03:20:43 +00:00
[DllImport(Atiadlxx_FileName)]
2021-06-27 01:53:00 +00:00
public static extern int ADL2_Display_Modes_Get ( IntPtr ADLContextHandle , int adapterIndex , int displayIndex , out int numModes , out IntPtr modes ) ;
2021-06-20 03:20:43 +00:00
2021-06-07 05:55:44 +00:00
[DllImport(Atiadlxx_FileName)]
2021-06-27 01:53:00 +00:00
public static extern int ADL_Main_Control_Create ( ADL_Main_Memory_Alloc callback , int enumConnectedAdapters ) ;
2021-06-07 05:55:44 +00:00
[DllImport(Atiadlxx_FileName)]
2021-06-27 01:53:00 +00:00
public static extern int ADL_Main_Control_Destroy ( ) ;
2021-06-07 05:55:44 +00:00
[DllImport(Atiadlxx_FileName)]
2021-06-27 01:53:00 +00:00
public static extern int ADL_Main_Control_IsFunctionValid ( HMODULE module , string procName ) ;
2021-06-07 05:55:44 +00:00
[DllImport(Atiadlxx_FileName)]
2021-06-27 01:53:00 +00:00
public static extern FARPROC ADL_Main_Control_GetProcAddress ( HMODULE module , string procName ) ;
2021-06-07 05:55:44 +00:00
[DllImport(Atiadlxx_FileName)]
2021-06-27 01:53:00 +00:00
public static extern int ADL_Adapter_NumberOfAdapters_Get ( ref int numAdapters ) ;
2021-06-07 05:55:44 +00:00
[DllImport(Atiadlxx_FileName)]
2021-06-27 01:53:00 +00:00
public static extern int ADL_Adapter_AdapterInfo_Get ( out IntPtr info , int inputSize ) ;
2021-06-07 05:55:44 +00:00
[DllImport(Atiadlxx_FileName)]
2021-06-27 01:53:00 +00:00
public static extern int ADL_Adapter_Active_Get ( int adapterIndex , ref int status ) ;
2021-06-07 05:55:44 +00:00
2021-06-15 09:55:15 +00:00
[DllImport(Atiadlxx_FileName)]
2021-06-27 01:53:00 +00:00
public static extern int ADL_Adapter_ID_Get ( int adapterIndex , ref int adapterId ) ;
2021-06-15 09:55:15 +00:00
[DllImport(Atiadlxx_FileName)]
2021-06-27 01:53:00 +00:00
public static extern int ADL_AdapterX2_Caps ( int adapterIndex , out ADLAdapterCapsX2 adapterCapabilities ) ;
2021-06-15 09:55:15 +00:00
2021-06-07 05:55:44 +00:00
[DllImport(Atiadlxx_FileName)]
2021-06-27 01:53:00 +00:00
public static extern int ADL_Display_DisplayInfo_Get ( int adapterIndex , ref int numDisplays , out IntPtr displayInfoArray , int forceDetect ) ;
2021-06-07 09:41:48 +00:00
2021-06-16 10:15:15 +00:00
[DllImport(Atiadlxx_FileName)]
2021-06-27 01:53:00 +00:00
public static extern int ADL_Display_DeviceConfig_Get ( int adapterIndex , int displayIndex , out ADLDisplayConfig displayConfig ) ;
2021-06-16 10:15:15 +00:00
2021-06-18 00:33:46 +00:00
[DllImport(Atiadlxx_FileName)]
2021-06-27 01:53:00 +00:00
public static extern int ADL_Display_EdidData_Get ( int adapterIndex , int displayIndex , ref ADLDisplayEDIDData EDIDData ) ;
2021-06-18 00:33:46 +00:00
2021-06-17 09:40:10 +00:00
[DllImport(Atiadlxx_FileName)]
2021-06-27 01:53:00 +00:00
public static extern int ADL_Display_DisplayMapConfig_Get ( int adapterIndex , out int numDisplayMap , out IntPtr displayMap , out int numDisplayTarget , out IntPtr displayTarget , int options ) ;
2021-06-17 09:40:10 +00:00
[DllImport(Atiadlxx_FileName)]
2021-06-27 01:53:00 +00:00
public static extern int ADL_Display_DisplayMapConfig_PossibleAddAndRemove ( int adapterIndex , int numDisplayMap , ADLDisplayMap displayMap , int numDisplayTarget , ADLDisplayTarget displayTarget , out int numPossibleAddTarget , out IntPtr possibleAddTarget , out int numPossibleRemoveTarget , out IntPtr possibleRemoveTarget ) ;
2021-06-17 09:40:10 +00:00
2021-06-07 09:41:48 +00:00
[DllImport(Atiadlxx_FileName)]
2021-06-27 01:53:00 +00:00
public static extern int ADL_Display_SLSMapConfig_Get ( int adapterIndex , int SLSMapIndex , ref ADLSLSMap SLSMap , ref int NumSLSTarget , out IntPtr SLSTargetArray , ref int lpNumNativeMode , out IntPtr NativeMode , ref int NumBezelMode , out IntPtr BezelMode , ref int NumTransientMode , out IntPtr TransientMode , ref int NumSLSOffset , out IntPtr SLSOffset , int iOption ) ;
2021-06-07 09:57:50 +00:00
// This is used to set the SLS Grid we want from the SLSMap by selecting the one we want and supplying that as an index.
[DllImport(Atiadlxx_FileName)]
2021-06-27 01:53:00 +00:00
public static extern int ADL_Display_SLSMapConfig_SetState ( int AdapterIndex , int SLSMapIndex , int State ) ;
2021-06-07 09:57:50 +00:00
// Function to get the current supported SLS grid patterns (MxN) for a GPU.
// This function gets a list of supported SLS grids for a specified input adapter based on display devices currently connected to the GPU.
[DllImport(Atiadlxx_FileName)]
2021-06-27 01:53:00 +00:00
public static extern int ADL_Display_SLSGrid_Caps ( int adapterIndex , ref int NumSLSGrid , out IntPtr SLSGrid , int option ) ;
2021-06-07 09:57:50 +00:00
// Function to get the active SLS map index list for a given GPU.
// This function retrieves a list of active SLS map indexes for a specified input GPU.
[DllImport(Atiadlxx_FileName)]
2021-06-27 01:53:00 +00:00
public static extern int ADL_Display_SLSMapIndexList_Get ( int adapterIndex , ref int numSLSMapIndexList , out IntPtr SLSMapIndexList , int options ) ;
2021-06-07 09:57:50 +00:00
// Function to get the active SLS map index list for a given GPU.
// This function retrieves a list of active SLS map indexes for a specified input GPU.
[DllImport(Atiadlxx_FileName)]
2021-06-27 01:53:00 +00:00
public static extern int ADL_Display_SLSMapIndex_Get ( int adapterIndex , int ADLNumDisplayTarget , ref ADLDisplayTarget displayTarget , ref int SLSMapIndex ) ;
2021-06-07 05:55:44 +00:00
#endregion DLLImport
}
#endregion Class ADLImport
#region Class ADLCheckLibrary
/// <summary> ADLCheckLibrary class</summary>
private class ADLCheckLibrary
{
#region Private Members
private HMODULE ADLLibrary = System . IntPtr . Zero ;
#endregion Private Members
#region Static Members
/// <summary> new a private instance</summary>
private static ADLCheckLibrary ADLCheckLibrary_ = new ADLCheckLibrary ( ) ;
#endregion Static Members
#region Constructor
/// <summary> Constructor</summary>
private ADLCheckLibrary ( )
{
try
{
2021-06-13 10:54:19 +00:00
if ( 1 = = ADLImport . ADL_Main_Control_IsFunctionValid ( IntPtr . Zero , "ADL_Main_Control_Create" ) )
2021-06-07 05:55:44 +00:00
{
ADLLibrary = ADLImport . GetModuleHandle ( ADLImport . Atiadlxx_FileName ) ;
}
}
catch ( DllNotFoundException ) { }
catch ( EntryPointNotFoundException ) { }
catch ( Exception ) { }
}
#endregion Constructor
#region Destructor
/// <summary> Destructor to force calling ADL Destroy function before free up the ADL library</summary>
~ ADLCheckLibrary ( )
{
if ( System . IntPtr . Zero ! = ADLCheckLibrary_ . ADLLibrary )
{
2021-06-13 10:54:19 +00:00
ADLImport . ADL_Main_Control_Destroy ( ) ;
2021-06-07 05:55:44 +00:00
}
}
#endregion Destructor
#region Static IsFunctionValid
/// <summary> Check the import function to see it exists or not</summary>
/// <param name="functionName"> function name</param>
/// <returns>return true, if function exists</returns>
2021-06-27 01:53:00 +00:00
public static bool IsFunctionValid ( string functionName )
2021-06-07 05:55:44 +00:00
{
bool result = false ;
if ( System . IntPtr . Zero ! = ADLCheckLibrary_ . ADLLibrary )
{
2021-06-13 10:54:19 +00:00
if ( 1 = = ADLImport . ADL_Main_Control_IsFunctionValid ( ADLCheckLibrary_ . ADLLibrary , functionName ) )
2021-06-07 05:55:44 +00:00
{
result = true ;
}
}
return result ;
}
#endregion Static IsFunctionValid
#region Static GetProcAddress
/// <summary> Get the unmanaged function pointer </summary>
/// <param name="functionName"> function name</param>
/// <returns>return function pointer, if function exists</returns>
2021-06-27 01:53:00 +00:00
public static FARPROC GetProcAddress ( string functionName )
2021-06-07 05:55:44 +00:00
{
FARPROC result = System . IntPtr . Zero ;
if ( System . IntPtr . Zero ! = ADLCheckLibrary_ . ADLLibrary )
{
2021-06-13 10:54:19 +00:00
result = ADLImport . ADL_Main_Control_GetProcAddress ( ADLCheckLibrary_ . ADLLibrary , functionName ) ;
2021-06-07 05:55:44 +00:00
}
return result ;
}
#endregion Static GetProcAddress
}
#endregion Class ADLCheckLibrary
#region Export Functions
2021-06-13 10:54:19 +00:00
#region ADL_Main_Memory_Alloc
2021-06-07 05:55:44 +00:00
/// <summary> Build in memory allocation function</summary>
2021-06-27 01:53:00 +00:00
public static ADL_Main_Memory_Alloc ADL_Main_Memory_Alloc = ADL_Main_Memory_Alloc_ ;
2021-06-07 05:55:44 +00:00
/// <summary> Build in memory allocation function</summary>
/// <param name="size">input size</param>
/// <returns>return the memory buffer</returns>
2021-06-13 10:54:19 +00:00
private static IntPtr ADL_Main_Memory_Alloc_ ( int size )
2021-06-07 05:55:44 +00:00
{
IntPtr result = Marshal . AllocCoTaskMem ( size ) ;
return result ;
}
2021-06-13 10:54:19 +00:00
#endregion ADL_Main_Memory_Alloc
2021-06-07 05:55:44 +00:00
2021-06-13 10:54:19 +00:00
#region ADL_Main_Memory_Free
2021-06-07 05:55:44 +00:00
/// <summary> Build in memory free function</summary>
/// <param name="buffer">input buffer</param>
2021-06-27 01:53:00 +00:00
public static void ADL_Main_Memory_Free ( IntPtr buffer )
2021-06-07 05:55:44 +00:00
{
if ( IntPtr . Zero ! = buffer )
{
Marshal . FreeCoTaskMem ( buffer ) ;
}
}
2021-06-13 10:54:19 +00:00
#endregion ADL_Main_Memory_Free
2021-06-07 05:55:44 +00:00
2021-06-18 00:33:46 +00:00
#region ADL2_Main_Control_Create
/// <summary> ADL2_Main_Control_Create Delegates</summary>
2021-06-27 01:53:00 +00:00
public static ADL2_Main_Control_Create ADL2_Main_Control_Create
2021-06-18 00:33:46 +00:00
{
get
{
if ( ! ADL2_Main_Control_Create_Check & & null = = ADL2_Main_Control_Create_ )
{
ADL2_Main_Control_Create_Check = true ;
if ( ADLCheckLibrary . IsFunctionValid ( "ADL2_Main_Control_Create" ) )
{
ADL2_Main_Control_Create_ = ADLImport . ADL2_Main_Control_Create ;
}
}
return ADL2_Main_Control_Create_ ;
}
}
/// <summary> Private Delegate</summary>
private static ADL2_Main_Control_Create ADL2_Main_Control_Create_ = null ;
/// <summary> check flag to indicate the delegate has been checked</summary>
private static bool ADL2_Main_Control_Create_Check = false ;
#endregion ADL2_Main_Control_Create
#region ADL2_Main_Control_Destroy
/// <summary> ADL2_Main_Control_Destroy Delegates</summary>
2021-06-27 01:53:00 +00:00
public static ADL2_Main_Control_Destroy ADL2_Main_Control_Destroy
2021-06-18 00:33:46 +00:00
{
get
{
if ( ! ADL2_Main_Control_Destroy_Check & & null = = ADL2_Main_Control_Destroy_ )
{
ADL2_Main_Control_Destroy_Check = true ;
if ( ADLCheckLibrary . IsFunctionValid ( "ADL2_Main_Control_Destroy" ) )
{
ADL2_Main_Control_Destroy_ = ADLImport . ADL2_Main_Control_Destroy ;
}
}
return ADL2_Main_Control_Destroy_ ;
}
}
/// <summary> Private Delegate</summary>
private static ADL2_Main_Control_Destroy ADL2_Main_Control_Destroy_ = null ;
/// <summary> check flag to indicate the delegate has been checked</summary>
private static bool ADL2_Main_Control_Destroy_Check = false ;
#endregion ADL2_Main_Control_Destroy
2021-06-18 06:02:14 +00:00
#region ADL2_Adapter_NumberOfAdapters_Get
/// <summary> ADL2_Adapter_NumberOfAdapters_Get Delegates</summary>
2021-06-27 01:53:00 +00:00
public static ADL2_Adapter_NumberOfAdapters_Get ADL2_Adapter_NumberOfAdapters_Get
2021-06-18 06:02:14 +00:00
{
get
{
if ( ! ADL2_Adapter_NumberOfAdapters_Get_Check & & null = = ADL2_Adapter_NumberOfAdapters_Get_ )
{
ADL2_Adapter_NumberOfAdapters_Get_Check = true ;
if ( ADLCheckLibrary . IsFunctionValid ( "ADL2_Adapter_NumberOfAdapters_Get" ) )
{
ADL2_Adapter_NumberOfAdapters_Get_ = ADLImport . ADL2_Adapter_NumberOfAdapters_Get ;
}
}
return ADL2_Adapter_NumberOfAdapters_Get_ ;
}
}
/// <summary> Private Delegate</summary>
private static ADL2_Adapter_NumberOfAdapters_Get ADL2_Adapter_NumberOfAdapters_Get_ = null ;
/// <summary> check flag to indicate the delegate has been checked</summary>
private static bool ADL2_Adapter_NumberOfAdapters_Get_Check = false ;
#endregion ADL2_Adapter_NumberOfAdapters_Get
2021-06-18 06:11:32 +00:00
#region ADL2_Adapter_Active_Get
/// <summary> ADL2_Adapter_Active_Get Delegates</summary>
2021-06-27 01:53:00 +00:00
public static ADL2_Adapter_Active_Get ADL2_Adapter_Active_Get
2021-06-18 06:11:32 +00:00
{
get
{
if ( ! ADL2_Adapter_Active_Get_Check & & null = = ADL2_Adapter_Active_Get_ )
{
ADL2_Adapter_Active_Get_Check = true ;
if ( ADLCheckLibrary . IsFunctionValid ( "ADL2_Adapter_Active_Get" ) )
{
ADL2_Adapter_Active_Get_ = ADLImport . ADL2_Adapter_Active_Get ;
}
}
return ADL2_Adapter_Active_Get_ ;
}
}
/// <summary> Private Delegate</summary>
private static ADL2_Adapter_Active_Get ADL2_Adapter_Active_Get_ = null ;
/// <summary> check flag to indicate the delegate has been checked</summary>
private static bool ADL2_Adapter_Active_Get_Check = false ;
#endregion ADL2_Adapter_Active_Get
2021-06-18 09:31:55 +00:00
#region ADL2_AdapterX2_Caps
/// <summary> ADL2_AdapterX2_Caps Delegates</summary>
2021-06-27 01:53:00 +00:00
public static ADL2_AdapterX2_Caps ADL2_AdapterX2_Caps
2021-06-18 09:31:55 +00:00
{
get
{
if ( ! ADL2_AdapterX2_Caps_Check & & null = = ADL2_AdapterX2_Caps_ )
{
ADL2_AdapterX2_Caps_Check = true ;
if ( ADLCheckLibrary . IsFunctionValid ( "ADL2_AdapterX2_Caps" ) )
{
ADL2_AdapterX2_Caps_ = ADLImport . ADL2_AdapterX2_Caps ;
}
}
return ADL2_AdapterX2_Caps_ ;
}
}
/// <summary> Private Delegate</summary>
private static ADL2_AdapterX2_Caps ADL2_AdapterX2_Caps_ = null ;
/// <summary> check flag to indicate the delegate has been checked</summary>
private static bool ADL2_AdapterX2_Caps_Check = false ;
#endregion ADL2_AdapterX2_Caps
2021-06-18 06:11:32 +00:00
2021-06-18 06:02:14 +00:00
#region ADL2_Adapter_AdapterInfo_Get
/// <summary> ADL2_Adapter_AdapterInfo_Get Delegates</summary>
2021-06-27 01:53:00 +00:00
public static ADL2_Adapter_AdapterInfo_Get ADL2_Adapter_AdapterInfo_Get
2021-06-18 06:02:14 +00:00
{
get
{
if ( ! ADL2_Adapter_AdapterInfo_Get_Check & & null = = ADL2_Adapter_AdapterInfo_Get_ )
{
ADL2_Adapter_AdapterInfo_Get_Check = true ;
if ( ADLCheckLibrary . IsFunctionValid ( "ADL2_Adapter_AdapterInfo_Get" ) )
{
ADL2_Adapter_AdapterInfo_Get_ = ADLImport . ADL2_Adapter_AdapterInfo_Get ;
}
}
return ADL2_Adapter_AdapterInfo_Get_ ;
}
}
/// <summary> Private Delegate</summary>
private static ADL2_Adapter_AdapterInfo_Get ADL2_Adapter_AdapterInfo_Get_ = null ;
/// <summary> check flag to indicate the delegate has been checked</summary>
private static bool ADL2_Adapter_AdapterInfo_Get_Check = false ;
#endregion ADL2_Adapter_AdapterInfo_Get
#region ADL2_Adapter_AdapterInfoX2_Get
/// <summary> ADL2_Adapter_AdapterInfoX2_Get Delegates</summary>
2021-06-27 01:53:00 +00:00
public static ADL2_Adapter_AdapterInfoX2_Get ADL2_Adapter_AdapterInfoX2_Get
2021-06-18 06:02:14 +00:00
{
get
{
if ( ! ADL2_Adapter_AdapterInfoX2_Get_Check & & null = = ADL2_Adapter_AdapterInfoX2_Get_ )
{
ADL2_Adapter_AdapterInfoX2_Get_Check = true ;
if ( ADLCheckLibrary . IsFunctionValid ( "ADL2_Adapter_AdapterInfoX2_Get" ) )
{
ADL2_Adapter_AdapterInfoX2_Get_ = ADLImport . ADL2_Adapter_AdapterInfoX2_Get ;
}
}
return ADL2_Adapter_AdapterInfoX2_Get_ ;
}
}
/// <summary> Private Delegate</summary>
private static ADL2_Adapter_AdapterInfoX2_Get ADL2_Adapter_AdapterInfoX2_Get_ = null ;
/// <summary> check flag to indicate the delegate has been checked</summary>
private static bool ADL2_Adapter_AdapterInfoX2_Get_Check = false ;
#endregion ADL2_Adapter_AdapterInfoX2_Get
#region ADL2_Adapter_AdapterInfoX3_Get
/// <summary> ADL2_Adapter_AdapterInfoX3_Get Delegates</summary>
2021-06-27 01:53:00 +00:00
public static ADL2_Adapter_AdapterInfoX3_Get ADL2_Adapter_AdapterInfoX3_Get
2021-06-18 06:02:14 +00:00
{
get
{
if ( ! ADL2_Adapter_AdapterInfoX3_Get_Check & & null = = ADL2_Adapter_AdapterInfoX3_Get_ )
{
ADL2_Adapter_AdapterInfoX3_Get_Check = true ;
if ( ADLCheckLibrary . IsFunctionValid ( "ADL2_Adapter_AdapterInfoX3_Get" ) )
{
ADL2_Adapter_AdapterInfoX3_Get_ = ADLImport . ADL2_Adapter_AdapterInfoX3_Get ;
}
}
return ADL2_Adapter_AdapterInfoX3_Get_ ;
}
}
/// <summary> Private Delegate</summary>
private static ADL2_Adapter_AdapterInfoX3_Get ADL2_Adapter_AdapterInfoX3_Get_ = null ;
/// <summary> check flag to indicate the delegate has been checked</summary>
private static bool ADL2_Adapter_AdapterInfoX3_Get_Check = false ;
#endregion ADL2_Adapter_AdapterInfoX3_Get
#region ADL2_Adapter_AdapterInfoX4_Get
/// <summary> ADL2_Adapter_AdapterInfoX4_Get Delegates</summary>
2021-06-27 01:53:00 +00:00
public static ADL2_Adapter_AdapterInfoX4_Get ADL2_Adapter_AdapterInfoX4_Get
2021-06-18 06:02:14 +00:00
{
get
{
if ( ! ADL2_Adapter_AdapterInfoX4_Get_Check & & null = = ADL2_Adapter_AdapterInfoX4_Get_ )
{
ADL2_Adapter_AdapterInfoX4_Get_Check = true ;
if ( ADLCheckLibrary . IsFunctionValid ( "ADL2_Adapter_AdapterInfoX4_Get" ) )
{
ADL2_Adapter_AdapterInfoX4_Get_ = ADLImport . ADL2_Adapter_AdapterInfoX4_Get ;
}
}
return ADL2_Adapter_AdapterInfoX4_Get_ ;
}
}
/// <summary> Private Delegate</summary>
private static ADL2_Adapter_AdapterInfoX4_Get ADL2_Adapter_AdapterInfoX4_Get_ = null ;
/// <summary> check flag to indicate the delegate has been checked</summary>
private static bool ADL2_Adapter_AdapterInfoX4_Get_Check = false ;
#endregion ADL2_Adapter_AdapterInfoX4_Get
2021-06-18 00:33:46 +00:00
#region ADL2_Display_DDCInfo2_Get
/// <summary> ADL2_Display_DDCInfo2_Get Delegates</summary>
2021-06-27 01:53:00 +00:00
public static ADL2_Display_DDCInfo2_Get ADL2_Display_DDCInfo2_Get
2021-06-18 00:33:46 +00:00
{
get
{
if ( ! ADL2_Display_DDCInfo2_Get_Check & & null = = ADL2_Display_DDCInfo2_Get_ )
{
ADL2_Display_DDCInfo2_Get_Check = true ;
if ( ADLCheckLibrary . IsFunctionValid ( "ADL2_Display_DDCInfo2_Get" ) )
{
ADL2_Display_DDCInfo2_Get_ = ADLImport . ADL2_Display_DDCInfo2_Get ;
}
}
return ADL2_Display_DDCInfo2_Get_ ;
}
}
/// <summary> Private Delegate</summary>
private static ADL2_Display_DDCInfo2_Get ADL2_Display_DDCInfo2_Get_ = null ;
/// <summary> check flag to indicate the delegate has been checked</summary>
private static bool ADL2_Display_DDCInfo2_Get_Check = false ;
#endregion ADL2_Display_DDCInfo2_Get
2021-06-18 09:31:55 +00:00
#region ADL2_Display_DisplayInfo_Get
/// <summary> ADL2_Display_DisplayInfo_Get Delegates</summary>
2021-06-27 01:53:00 +00:00
public static ADL2_Display_DisplayInfo_Get ADL2_Display_DisplayInfo_Get
2021-06-18 09:31:55 +00:00
{
get
{
if ( ! ADL2_Display_DisplayInfo_Get_Check & & null = = ADL2_Display_DisplayInfo_Get_ )
{
ADL2_Display_DisplayInfo_Get_Check = true ;
if ( ADLCheckLibrary . IsFunctionValid ( "ADL2_Display_DisplayInfo_Get" ) )
{
ADL2_Display_DisplayInfo_Get_ = ADLImport . ADL2_Display_DisplayInfo_Get ;
}
}
return ADL2_Display_DisplayInfo_Get_ ;
}
}
/// <summary> Private Delegate</summary>
private static ADL2_Display_DisplayInfo_Get ADL2_Display_DisplayInfo_Get_ = null ;
/// <summary> check flag to indicate the delegate has been checked</summary>
private static bool ADL2_Display_DisplayInfo_Get_Check = false ;
#endregion ADL2_Display_DisplayInfo_Get
#region ADL2_Display_DeviceConfig_Get
/// <summary> ADL2_Display_DeviceConfig_Get Delegates</summary>
2021-06-27 01:53:00 +00:00
public static ADL2_Display_DeviceConfig_Get ADL2_Display_DeviceConfig_Get
2021-06-18 09:31:55 +00:00
{
get
{
if ( ! ADL2_Display_DeviceConfig_Get_Check & & null = = ADL2_Display_DeviceConfig_Get_ )
{
ADL2_Display_DeviceConfig_Get_Check = true ;
if ( ADLCheckLibrary . IsFunctionValid ( "ADL2_Display_DeviceConfig_Get" ) )
{
ADL2_Display_DeviceConfig_Get_ = ADLImport . ADL2_Display_DeviceConfig_Get ;
}
}
return ADL2_Display_DeviceConfig_Get_ ;
}
}
/// <summary> Private Delegate</summary>
private static ADL2_Display_DeviceConfig_Get ADL2_Display_DeviceConfig_Get_ = null ;
/// <summary> check flag to indicate the delegate has been checked</summary>
private static bool ADL2_Display_DeviceConfig_Get_Check = false ;
#endregion ADL2_Display_DeviceConfig_Get
2021-06-18 00:33:46 +00:00
2021-06-18 21:48:47 +00:00
#region ADL2_Display_HDRState_Get
/// <summary> ADL2_Display_HDRState_Get Delegates</summary>
2021-06-27 01:53:00 +00:00
public static ADL2_Display_HDRState_Get ADL2_Display_HDRState_Get
2021-06-18 21:48:47 +00:00
{
get
{
if ( ! ADL2_Display_HDRState_Get_Check & & null = = ADL2_Display_HDRState_Get_ )
{
ADL2_Display_HDRState_Get_Check = true ;
if ( ADLCheckLibrary . IsFunctionValid ( "ADL2_Display_HDRState_Get" ) )
{
ADL2_Display_HDRState_Get_ = ADLImport . ADL2_Display_HDRState_Get ;
}
}
return ADL2_Display_HDRState_Get_ ;
}
}
/// <summary> Private Delegate</summary>
private static ADL2_Display_HDRState_Get ADL2_Display_HDRState_Get_ = null ;
/// <summary> check flag to indicate the delegate has been checked</summary>
private static bool ADL2_Display_HDRState_Get_Check = false ;
#endregion ADL2_Display_HDRState_Get
2021-06-20 03:20:43 +00:00
#region ADL2_Display_Modes_Get
/// <summary> ADL2_Display_Modes_Get Delegates</summary>
2021-06-27 01:53:00 +00:00
public static ADL2_Display_Modes_Get ADL2_Display_Modes_Get
2021-06-20 03:20:43 +00:00
{
get
{
if ( ! ADL2_Display_Modes_Get_Check & & null = = ADL2_Display_Modes_Get_ )
{
ADL2_Display_Modes_Get_Check = true ;
if ( ADLCheckLibrary . IsFunctionValid ( "ADL2_Display_Modes_Get" ) )
{
ADL2_Display_Modes_Get_ = ADLImport . ADL2_Display_Modes_Get ;
}
}
return ADL2_Display_Modes_Get_ ;
}
}
/// <summary> Private Delegate</summary>
private static ADL2_Display_Modes_Get ADL2_Display_Modes_Get_ = null ;
/// <summary> check flag to indicate the delegate has been checked</summary>
private static bool ADL2_Display_Modes_Get_Check = false ;
#endregion ADL2_Display_Modes_Get
2021-06-18 21:48:47 +00:00
// ================================
2021-06-13 10:54:19 +00:00
#region ADL_Main_Control_Create
/// <summary> ADL_Main_Control_Create Delegates</summary>
2021-06-27 01:53:00 +00:00
public static ADL_Main_Control_Create ADL_Main_Control_Create
2021-06-07 05:55:44 +00:00
{
get
{
2021-06-13 10:54:19 +00:00
if ( ! ADL_Main_Control_Create_Check & & null = = ADL_Main_Control_Create_ )
2021-06-07 05:55:44 +00:00
{
2021-06-13 10:54:19 +00:00
ADL_Main_Control_Create_Check = true ;
if ( ADLCheckLibrary . IsFunctionValid ( "ADL_Main_Control_Create" ) )
2021-06-07 05:55:44 +00:00
{
2021-06-13 10:54:19 +00:00
ADL_Main_Control_Create_ = ADLImport . ADL_Main_Control_Create ;
2021-06-07 05:55:44 +00:00
}
}
2021-06-13 10:54:19 +00:00
return ADL_Main_Control_Create_ ;
2021-06-07 05:55:44 +00:00
}
}
/// <summary> Private Delegate</summary>
2021-06-13 10:54:19 +00:00
private static ADL_Main_Control_Create ADL_Main_Control_Create_ = null ;
2021-06-07 05:55:44 +00:00
/// <summary> check flag to indicate the delegate has been checked</summary>
2021-06-13 10:54:19 +00:00
private static bool ADL_Main_Control_Create_Check = false ;
#endregion ADL_Main_Control_Create
2021-06-07 05:55:44 +00:00
2021-06-13 10:54:19 +00:00
#region ADL_Main_Control_Destroy
/// <summary> ADL_Main_Control_Destroy Delegates</summary>
2021-06-27 01:53:00 +00:00
public static ADL_Main_Control_Destroy ADL_Main_Control_Destroy
2021-06-07 05:55:44 +00:00
{
get
{
2021-06-13 10:54:19 +00:00
if ( ! ADL_Main_Control_Destroy_Check & & null = = ADL_Main_Control_Destroy_ )
2021-06-07 05:55:44 +00:00
{
2021-06-13 10:54:19 +00:00
ADL_Main_Control_Destroy_Check = true ;
if ( ADLCheckLibrary . IsFunctionValid ( "ADL_Main_Control_Destroy" ) )
2021-06-07 05:55:44 +00:00
{
2021-06-13 10:54:19 +00:00
ADL_Main_Control_Destroy_ = ADLImport . ADL_Main_Control_Destroy ;
2021-06-07 05:55:44 +00:00
}
}
2021-06-13 10:54:19 +00:00
return ADL_Main_Control_Destroy_ ;
2021-06-07 05:55:44 +00:00
}
}
/// <summary> Private Delegate</summary>
2021-06-13 10:54:19 +00:00
private static ADL_Main_Control_Destroy ADL_Main_Control_Destroy_ = null ;
2021-06-07 05:55:44 +00:00
/// <summary> check flag to indicate the delegate has been checked</summary>
2021-06-13 10:54:19 +00:00
private static bool ADL_Main_Control_Destroy_Check = false ;
#endregion ADL_Main_Control_Destroy
2021-06-07 05:55:44 +00:00
2021-06-13 10:54:19 +00:00
#region ADL_Adapter_NumberOfAdapters_Get
/// <summary> ADL_Adapter_NumberOfAdapters_Get Delegates</summary>
2021-06-27 01:53:00 +00:00
public static ADL_Adapter_NumberOfAdapters_Get ADL_Adapter_NumberOfAdapters_Get
2021-06-07 05:55:44 +00:00
{
get
{
2021-06-13 10:54:19 +00:00
if ( ! ADL_Adapter_NumberOfAdapters_Get_Check & & null = = ADL_Adapter_NumberOfAdapters_Get_ )
2021-06-07 05:55:44 +00:00
{
2021-06-13 10:54:19 +00:00
ADL_Adapter_NumberOfAdapters_Get_Check = true ;
if ( ADLCheckLibrary . IsFunctionValid ( "ADL_Adapter_NumberOfAdapters_Get" ) )
2021-06-07 05:55:44 +00:00
{
2021-06-13 10:54:19 +00:00
ADL_Adapter_NumberOfAdapters_Get_ = ADLImport . ADL_Adapter_NumberOfAdapters_Get ;
2021-06-07 05:55:44 +00:00
}
}
2021-06-13 10:54:19 +00:00
return ADL_Adapter_NumberOfAdapters_Get_ ;
2021-06-07 05:55:44 +00:00
}
}
/// <summary> Private Delegate</summary>
2021-06-13 10:54:19 +00:00
private static ADL_Adapter_NumberOfAdapters_Get ADL_Adapter_NumberOfAdapters_Get_ = null ;
2021-06-07 05:55:44 +00:00
/// <summary> check flag to indicate the delegate has been checked</summary>
2021-06-13 10:54:19 +00:00
private static bool ADL_Adapter_NumberOfAdapters_Get_Check = false ;
#endregion ADL_Adapter_NumberOfAdapters_Get
2021-06-07 05:55:44 +00:00
2021-06-15 09:55:15 +00:00
#region ADL_Adapter_ID_Get
2021-06-18 06:02:14 +00:00
2021-06-15 09:55:15 +00:00
/// <summary> ADL_Adapter_Active_Get Delegates</summary>
2021-06-27 01:53:00 +00:00
public static ADL_Adapter_ID_Get ADL_Adapter_ID_Get
2021-06-15 09:55:15 +00:00
{
get
{
if ( ! ADL_Adapter_ID_Get_Check & & null = = ADL_Adapter_ID_Get_ )
{
ADL_Adapter_ID_Get_Check = true ;
if ( ADLCheckLibrary . IsFunctionValid ( "ADL_Adapter_ID_Get" ) )
{
ADL_Adapter_ID_Get_ = ADLImport . ADL_Adapter_ID_Get ;
}
}
return ADL_Adapter_ID_Get_ ;
}
}
/// <summary> Private Delegate</summary>
private static ADL_Adapter_ID_Get ADL_Adapter_ID_Get_ = null ;
/// <summary> check flag to indicate the delegate has been checked</summary>
private static bool ADL_Adapter_ID_Get_Check = false ;
2021-06-18 06:02:14 +00:00
#endregion ADL_Adapter_ID_Get
2021-06-15 09:55:15 +00:00
2021-06-16 10:15:15 +00:00
#region ADL_AdapterX2_Caps
/// <summary> ADL_AdapterX2_Caps Delegates</summary>
2021-06-27 01:53:00 +00:00
public static ADL_AdapterX2_Caps ADL_AdapterX2_Caps
2021-06-15 09:55:15 +00:00
{
get
{
2021-06-16 10:15:15 +00:00
if ( ! ADL_AdapterX2_Caps_Check & & null = = ADL_AdapterX2_Caps_ )
2021-06-15 09:55:15 +00:00
{
2021-06-16 10:15:15 +00:00
ADL_AdapterX2_Caps_Check = true ;
if ( ADLCheckLibrary . IsFunctionValid ( "ADL_AdapterX2_Caps" ) )
2021-06-15 09:55:15 +00:00
{
2021-06-16 10:15:15 +00:00
ADL_AdapterX2_Caps_ = ADLImport . ADL_AdapterX2_Caps ;
2021-06-15 09:55:15 +00:00
}
}
2021-06-16 10:15:15 +00:00
return ADL_AdapterX2_Caps_ ;
2021-06-15 09:55:15 +00:00
}
}
/// <summary> Private Delegate</summary>
2021-06-16 10:15:15 +00:00
private static ADL_AdapterX2_Caps ADL_AdapterX2_Caps_ = null ;
2021-06-15 09:55:15 +00:00
/// <summary> check flag to indicate the delegate has been checked</summary>
2021-06-16 10:15:15 +00:00
private static bool ADL_AdapterX2_Caps_Check = false ;
#endregion ADL_AdapterX2_Caps
2021-06-15 09:55:15 +00:00
2021-06-18 06:02:14 +00:00
#region ADL_Adapter_AdapterInfo_Get
/// <summary> ADL_Adapter_AdapterInfo_Get Delegates</summary>
2021-06-27 01:53:00 +00:00
public static ADL_Adapter_AdapterInfo_Get ADL_Adapter_AdapterInfo_Get
2021-06-18 06:02:14 +00:00
{
get
{
if ( ! ADL_Adapter_AdapterInfo_Get_Check & & null = = ADL_Adapter_AdapterInfo_Get_ )
{
ADL_Adapter_AdapterInfo_Get_Check = true ;
if ( ADLCheckLibrary . IsFunctionValid ( "ADL_Adapter_AdapterInfo_Get" ) )
{
ADL_Adapter_AdapterInfo_Get_ = ADLImport . ADL_Adapter_AdapterInfo_Get ;
}
}
return ADL_Adapter_AdapterInfo_Get_ ;
}
}
/// <summary> Private Delegate</summary>
private static ADL_Adapter_AdapterInfo_Get ADL_Adapter_AdapterInfo_Get_ = null ;
/// <summary> check flag to indicate the delegate has been checked</summary>
private static bool ADL_Adapter_AdapterInfo_Get_Check = false ;
#endregion ADL_Adapter_AdapterInfo_Get
2021-06-13 10:54:19 +00:00
#region ADL_Adapter_Active_Get
/// <summary> ADL_Adapter_Active_Get Delegates</summary>
2021-06-27 01:53:00 +00:00
public static ADL_Adapter_Active_Get ADL_Adapter_Active_Get
2021-06-07 05:55:44 +00:00
{
get
{
2021-06-13 10:54:19 +00:00
if ( ! ADL_Adapter_Active_Get_Check & & null = = ADL_Adapter_Active_Get_ )
2021-06-07 05:55:44 +00:00
{
2021-06-13 10:54:19 +00:00
ADL_Adapter_Active_Get_Check = true ;
if ( ADLCheckLibrary . IsFunctionValid ( "ADL_Adapter_Active_Get" ) )
2021-06-07 05:55:44 +00:00
{
2021-06-13 10:54:19 +00:00
ADL_Adapter_Active_Get_ = ADLImport . ADL_Adapter_Active_Get ;
2021-06-07 05:55:44 +00:00
}
}
2021-06-13 10:54:19 +00:00
return ADL_Adapter_Active_Get_ ;
2021-06-07 05:55:44 +00:00
}
}
/// <summary> Private Delegate</summary>
2021-06-13 10:54:19 +00:00
private static ADL_Adapter_Active_Get ADL_Adapter_Active_Get_ = null ;
2021-06-07 05:55:44 +00:00
/// <summary> check flag to indicate the delegate has been checked</summary>
2021-06-13 10:54:19 +00:00
private static bool ADL_Adapter_Active_Get_Check = false ;
#endregion ADL_Adapter_Active_Get
2021-06-07 05:55:44 +00:00
2021-06-16 10:15:15 +00:00
#region ADL_Display_DeviceConfig_Get
/// <summary> ADL_Display_DeviceConfig_Get Delegates</summary>
2021-06-27 01:53:00 +00:00
public static ADL_Display_DeviceConfig_Get ADL_Display_DeviceConfig_Get
2021-06-16 10:15:15 +00:00
{
get
{
if ( ! ADL_Display_DeviceConfig_Get_Check & & null = = ADL_Display_DeviceConfig_Get_ )
{
ADL_Display_DeviceConfig_Get_Check = true ;
if ( ADLCheckLibrary . IsFunctionValid ( "ADL_Display_DeviceConfig_Get" ) )
{
ADL_Display_DeviceConfig_Get_ = ADLImport . ADL_Display_DeviceConfig_Get ;
}
}
return ADL_Display_DeviceConfig_Get_ ;
}
}
/// <summary> Private Delegate</summary>
private static ADL_Display_DeviceConfig_Get ADL_Display_DeviceConfig_Get_ = null ;
/// <summary> check flag to indicate the delegate has been checked</summary>
private static bool ADL_Display_DeviceConfig_Get_Check = false ;
#endregion ADL_Display_DeviceConfig_Get
2021-06-17 09:40:10 +00:00
#region ADL_Display_DisplayMapConfig_Get
/// <summary> ADL_Display_DisplayMapConfig_Get Delegates</summary>
2021-06-27 01:53:00 +00:00
public static ADL_Display_DisplayMapConfig_Get ADL_Display_DisplayMapConfig_Get
2021-06-17 09:40:10 +00:00
{
get
{
if ( ! ADL_Display_DisplayMapConfig_Get_Check & & null = = ADL_Display_DisplayMapConfig_Get_ )
{
ADL_Display_DisplayMapConfig_Get_Check = true ;
if ( ADLCheckLibrary . IsFunctionValid ( "ADL_Display_DisplayMapConfig_Get" ) )
{
ADL_Display_DisplayMapConfig_Get_ = ADLImport . ADL_Display_DisplayMapConfig_Get ;
}
}
return ADL_Display_DisplayMapConfig_Get_ ;
}
}
/// <summary> Private Delegate</summary>
private static ADL_Display_DisplayMapConfig_Get ADL_Display_DisplayMapConfig_Get_ = null ;
/// <summary> check flag to indicate the delegate has been checked</summary>
private static bool ADL_Display_DisplayMapConfig_Get_Check = false ;
#endregion ADL_Display_DisplayMapConfig_Get
#region ADL_Display_DisplayMapConfig_PossibleAddAndRemove
/// <summary> ADL_Display_DisplayMapConfig_PossibleAddAndRemove Delegates</summary>
2021-06-27 01:53:00 +00:00
public static ADL_Display_DisplayMapConfig_PossibleAddAndRemove ADL_Display_DisplayMapConfig_PossibleAddAndRemove
2021-06-17 09:40:10 +00:00
{
get
{
if ( ! ADL_Display_DisplayMapConfig_PossibleAddAndRemove_Check & & null = = ADL_Display_DisplayMapConfig_PossibleAddAndRemove_ )
{
ADL_Display_DisplayMapConfig_PossibleAddAndRemove_Check = true ;
if ( ADLCheckLibrary . IsFunctionValid ( "ADL_Display_DisplayMapConfig_PossibleAddAndRemove" ) )
{
ADL_Display_DisplayMapConfig_PossibleAddAndRemove_ = ADLImport . ADL_Display_DisplayMapConfig_PossibleAddAndRemove ;
}
}
return ADL_Display_DisplayMapConfig_PossibleAddAndRemove_ ;
}
}
/// <summary> Private Delegate</summary>
private static ADL_Display_DisplayMapConfig_PossibleAddAndRemove ADL_Display_DisplayMapConfig_PossibleAddAndRemove_ = null ;
/// <summary> check flag to indicate the delegate has been checked</summary>
private static bool ADL_Display_DisplayMapConfig_PossibleAddAndRemove_Check = false ;
#endregion ADL_Display_DisplayMapConfig_PossibleAddAndRemove
2021-06-18 00:33:46 +00:00
#region ADL_Display_EdidData_Get
/// <summary> ADL_Display_EdidData_Get Delegates</summary>
2021-06-27 01:53:00 +00:00
public static ADL_Display_EdidData_Get ADL_Display_EdidData_Get
2021-06-18 00:33:46 +00:00
{
get
{
if ( ! ADL_Display_EdidData_Get_Check & & null = = ADL_Display_EdidData_Get_ )
{
ADL_Display_EdidData_Get_Check = true ;
if ( ADLCheckLibrary . IsFunctionValid ( "ADL_Display_EdidData_Get" ) )
{
ADL_Display_EdidData_Get_ = ADLImport . ADL_Display_EdidData_Get ;
}
}
return ADL_Display_EdidData_Get_ ;
}
}
/// <summary> Private Delegate</summary>
private static ADL_Display_EdidData_Get ADL_Display_EdidData_Get_ = null ;
/// <summary> check flag to indicate the delegate has been checked</summary>
private static bool ADL_Display_EdidData_Get_Check = false ;
#endregion ADL_Display_EdidData_Get
2021-06-13 10:54:19 +00:00
#region ADL_Display_DisplayInfo_Get
/// <summary> ADL_Display_DisplayInfo_Get Delegates</summary>
2021-06-27 01:53:00 +00:00
public static ADL_Display_DisplayInfo_Get ADL_Display_DisplayInfo_Get
2021-06-07 05:55:44 +00:00
{
get
{
2021-06-13 10:54:19 +00:00
if ( ! ADL_Display_DisplayInfo_Get_Check & & null = = ADL_Display_DisplayInfo_Get_ )
2021-06-07 05:55:44 +00:00
{
2021-06-13 10:54:19 +00:00
ADL_Display_DisplayInfo_Get_Check = true ;
if ( ADLCheckLibrary . IsFunctionValid ( "ADL_Display_DisplayInfo_Get" ) )
2021-06-07 05:55:44 +00:00
{
2021-06-13 10:54:19 +00:00
ADL_Display_DisplayInfo_Get_ = ADLImport . ADL_Display_DisplayInfo_Get ;
2021-06-07 05:55:44 +00:00
}
}
2021-06-13 10:54:19 +00:00
return ADL_Display_DisplayInfo_Get_ ;
2021-06-07 05:55:44 +00:00
}
}
/// <summary> Private Delegate</summary>
2021-06-13 10:54:19 +00:00
private static ADL_Display_DisplayInfo_Get ADL_Display_DisplayInfo_Get_ = null ;
2021-06-07 05:55:44 +00:00
/// <summary> check flag to indicate the delegate has been checked</summary>
2021-06-13 10:54:19 +00:00
private static bool ADL_Display_DisplayInfo_Get_Check = false ;
#endregion ADL_Display_DisplayInfo_Get
2021-06-07 09:41:48 +00:00
2021-06-17 09:40:10 +00:00
2021-06-13 10:54:19 +00:00
#region ADL_Display_SLSMapConfig_Get
/// <summary> ADL_Display_SLSMapConfig_Get Delegates</summary>
2021-06-27 01:53:00 +00:00
public static ADL_Display_SLSMapConfig_Get ADL_Display_SLSMapConfig_Get
2021-06-07 09:41:48 +00:00
{
get
{
2021-06-13 10:54:19 +00:00
if ( ! ADL_Display_SLSMapConfig_Get_Check & & null = = ADL_Display_SLSMapConfig_Get_ )
2021-06-07 09:41:48 +00:00
{
2021-06-13 10:54:19 +00:00
ADL_Display_SLSMapConfig_Get_Check = true ;
if ( ADLCheckLibrary . IsFunctionValid ( "ADL_Display_SLSMapConfig_Get" ) )
2021-06-07 09:41:48 +00:00
{
2021-06-13 10:54:19 +00:00
ADL_Display_SLSMapConfig_Get_ = ADLImport . ADL_Display_SLSMapConfig_Get ;
2021-06-07 09:41:48 +00:00
}
}
2021-06-13 10:54:19 +00:00
return ADL_Display_SLSMapConfig_Get_ ;
2021-06-07 09:41:48 +00:00
}
}
/// <summary> Private Delegate</summary>
2021-06-13 10:54:19 +00:00
private static ADL_Display_SLSMapConfig_Get ADL_Display_SLSMapConfig_Get_ = null ;
2021-06-07 09:41:48 +00:00
/// <summary> check flag to indicate the delegate has been checked</summary>
2021-06-13 10:54:19 +00:00
private static bool ADL_Display_SLSMapConfig_Get_Check = false ;
#endregion ADL_Display_SLSMapConfig_Get
2021-06-18 00:33:46 +00:00
2021-06-07 05:55:44 +00:00
#endregion Export Functions
2021-06-18 00:33:46 +00:00
#region ADL Helper Functions
2021-06-27 01:53:00 +00:00
public static ConvertedDDCInfoFlag ConvertDDCInfoFlag ( int DDCInfoValue )
2021-06-18 21:48:47 +00:00
{
ConvertedDDCInfoFlag expandedDDCInfoValue = new ConvertedDDCInfoFlag ( ) ;
// Indicates the display is a digital device
if ( ( DDCInfoValue & ADL . ADL_DISPLAYDDCINFOEX_FLAG_DIGITALDEVICE ) = = ADL . ADL_DISPLAYDDCINFOEX_FLAG_DIGITALDEVICE )
expandedDDCInfoValue . DIGITALDEVICE = true ;
// Indicates the display supports EDID queries
if ( ( DDCInfoValue & ADL . ADL_DISPLAYDDCINFOEX_FLAG_EDIDEXTENSION ) = = ADL . ADL_DISPLAYDDCINFOEX_FLAG_EDIDEXTENSION )
expandedDDCInfoValue . EDIDEXTENSION = true ;
// Indicates the display suports HDMI Audio
if ( ( DDCInfoValue & ADL . ADL_DISPLAYDDCINFOEX_FLAG_HDMIAUDIODEVICE ) = = ADL . ADL_DISPLAYDDCINFOEX_FLAG_HDMIAUDIODEVICE )
expandedDDCInfoValue . HDMIAUDIODEVICE = true ;
// Indicates the display is a projector
if ( ( DDCInfoValue & ADL . ADL_DISPLAYDDCINFOEX_FLAG_PROJECTORDEVICE ) = = ADL . ADL_DISPLAYDDCINFOEX_FLAG_PROJECTORDEVICE )
expandedDDCInfoValue . PROJECTORDEVICE = true ;
// Indicates the display supports AI
if ( ( DDCInfoValue & ADL . ADL_DISPLAYDDCINFOEX_FLAG_SUPPORTS_AI ) = = ADL . ADL_DISPLAYDDCINFOEX_FLAG_SUPPORTS_AI )
expandedDDCInfoValue . SUPPORTS_AI = true ;
// Indicates the display supports YCC601
if ( ( DDCInfoValue & ADL . ADL_DISPLAYDDCINFOEX_FLAG_SUPPORT_xvYCC601 ) = = ADL . ADL_DISPLAYDDCINFOEX_FLAG_SUPPORT_xvYCC601 )
expandedDDCInfoValue . SUPPORT_xvYCC601 = true ;
// Indicates the display supports YCC709
if ( ( DDCInfoValue & ADL . ADL_DISPLAYDDCINFOEX_FLAG_SUPPORT_xvYCC709 ) = = ADL . ADL_DISPLAYDDCINFOEX_FLAG_SUPPORT_xvYCC709 )
expandedDDCInfoValue . SUPPORT_xvYCC709 = true ;
return expandedDDCInfoValue ;
}
2021-06-27 01:53:00 +00:00
public static ConvertedSupportedHDR ConvertSupportedHDR ( int supportedHDR )
2021-06-18 21:48:47 +00:00
{
ConvertedSupportedHDR expandedSupportedHDR = new ConvertedSupportedHDR ( ) ;
// Indicates the display is a digital device
if ( ( supportedHDR & ADL . ADL_HDR_CEA861_3 ) = = ADL . ADL_HDR_CEA861_3 )
expandedSupportedHDR . CEA861_3 = true ;
// Indicates the display supports EDID queries
if ( ( supportedHDR & ADL . ADL_HDR_DOLBYVISION ) = = ADL . ADL_HDR_DOLBYVISION )
expandedSupportedHDR . DOLBYVISION = true ;
// Indicates the display suports HDMI Audio
if ( ( supportedHDR & ADL . ADL_HDR_FREESYNC_HDR ) = = ADL . ADL_HDR_FREESYNC_HDR )
expandedSupportedHDR . FREESYNC_HDR = true ;
return expandedSupportedHDR ;
}
2021-06-27 01:53:00 +00:00
public static ConvertedDisplayInfoValue ConvertDisplayInfoValue ( int displayInfoValue )
2021-06-18 00:33:46 +00:00
{
ConvertedDisplayInfoValue expandedDisplayInfoValue = new ConvertedDisplayInfoValue ( ) ;
// Indicates the display is connected
if ( ( displayInfoValue & ADL . ADL_DISPLAY_DISPLAYINFO_DISPLAYCONNECTED ) = = ADL . ADL_DISPLAY_DISPLAYINFO_DISPLAYCONNECTED )
expandedDisplayInfoValue . DISPLAYCONNECTED = true ;
// Indicates the display is mapped within OS
if ( ( displayInfoValue & ADL . ADL_DISPLAY_DISPLAYINFO_DISPLAYMAPPED ) = = ADL . ADL_DISPLAY_DISPLAYINFO_DISPLAYMAPPED )
expandedDisplayInfoValue . DISPLAYMAPPED = true ;
// Indicates the display can be forced
if ( ( displayInfoValue & ADL . ADL_DISPLAY_DISPLAYINFO_FORCIBLESUPPORTED ) = = ADL . ADL_DISPLAY_DISPLAYINFO_FORCIBLESUPPORTED )
expandedDisplayInfoValue . FORCIBLESUPPORTED = true ;
// Indicates the display supports genlock
if ( ( displayInfoValue & ADL . ADL_DISPLAY_DISPLAYINFO_GENLOCKSUPPORTED ) = = ADL . ADL_DISPLAY_DISPLAYINFO_GENLOCKSUPPORTED )
expandedDisplayInfoValue . GENLOCKSUPPORTED = true ;
// Indicates the display is an LDA display.
if ( ( displayInfoValue & ADL . ADL_DISPLAY_DISPLAYINFO_LDA_DISPLAY ) = = ADL . ADL_DISPLAY_DISPLAYINFO_LDA_DISPLAY )
expandedDisplayInfoValue . LDA_DISPLAY = true ;
// Indicates the display supports 2x Horizontal stretch
if ( ( displayInfoValue & ADL . ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_2HSTRETCH ) = = ADL . ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_2HSTRETCH )
expandedDisplayInfoValue . MANNER_SUPPORTED_2HSTRETCH = true ;
// Indicates the display supports 2x Vertical stretch
if ( ( displayInfoValue & ADL . ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_2VSTRETCH ) = = ADL . ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_2VSTRETCH )
expandedDisplayInfoValue . MANNER_SUPPORTED_2VSTRETCH = true ;
// Indicates the display supports cloned desktops
if ( ( displayInfoValue & ADL . ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_CLONE ) = = ADL . ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_CLONE )
expandedDisplayInfoValue . MANNER_SUPPORTED_CLONE = true ;
// Indicates the display supports extended desktops
if ( ( displayInfoValue & ADL . ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_EXTENDED ) = = ADL . ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_EXTENDED )
expandedDisplayInfoValue . MANNER_SUPPORTED_EXTENDED = true ;
// Indicates the display supports N Stretched on 1 GPU
if ( ( displayInfoValue & ADL . ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_NSTRETCH1GPU ) = = ADL . ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_NSTRETCH1GPU )
expandedDisplayInfoValue . MANNER_SUPPORTED_NSTRETCH1GPU = true ;
// Indicates the display supports N Stretched on N GPUs
if ( ( displayInfoValue & ADL . ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_NSTRETCHNGPU ) = = ADL . ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_NSTRETCHNGPU )
expandedDisplayInfoValue . MANNER_SUPPORTED_NSTRETCHNGPU = true ;
// Reserved display info flag #2
if ( ( displayInfoValue & ADL . ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_RESERVED2 ) = = ADL . ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_RESERVED2 )
expandedDisplayInfoValue . MANNER_SUPPORTED_RESERVED2 = true ;
// Reserved display info flag #3
if ( ( displayInfoValue & ADL . ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_RESERVED3 ) = = ADL . ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_RESERVED3 )
expandedDisplayInfoValue . MANNER_SUPPORTED_RESERVED3 = true ;
// Indicates the display supports single desktop
if ( ( displayInfoValue & ADL . ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_SINGLE ) = = ADL . ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_SINGLE )
expandedDisplayInfoValue . MANNER_SUPPORTED_SINGLE = true ;
// Indicates the display supports overriding the mode timing
if ( ( displayInfoValue & ADL . ADL_DISPLAY_DISPLAYINFO_MODETIMING_OVERRIDESSUPPORTED ) = = ADL . ADL_DISPLAY_DISPLAYINFO_MODETIMING_OVERRIDESSUPPORTED )
expandedDisplayInfoValue . MODETIMING_OVERRIDESSUPPORTED = true ;
// Indicates the display supports multi-vpu
if ( ( displayInfoValue & ADL . ADL_DISPLAY_DISPLAYINFO_MULTIVPU_SUPPORTED ) = = ADL . ADL_DISPLAY_DISPLAYINFO_MULTIVPU_SUPPORTED )
expandedDisplayInfoValue . MULTIVPU_SUPPORTED = true ;
// Indicates the display is non-local to this machine
if ( ( displayInfoValue & ADL . ADL_DISPLAY_DISPLAYINFO_NONLOCAL ) = = ADL . ADL_DISPLAY_DISPLAYINFO_NONLOCAL )
expandedDisplayInfoValue . NONLOCAL = true ;
// Indicates the display is a projector
if ( ( displayInfoValue & ADL . ADL_DISPLAY_DISPLAYINFO_SHOWTYPE_PROJECTOR ) = = ADL . ADL_DISPLAY_DISPLAYINFO_SHOWTYPE_PROJECTOR )
expandedDisplayInfoValue . SHOWTYPE_PROJECTOR = true ;
return expandedDisplayInfoValue ;
}
2021-06-27 01:53:00 +00:00
public static ConvertedDisplayModeFlags ConvertDisplayModeFlags ( int displayModeFlag )
2021-06-20 04:37:00 +00:00
{
ConvertedDisplayModeFlags expandedDisplayModeFlags = new ConvertedDisplayModeFlags ( ) ;
// Indicates the display is a digital device
if ( ( displayModeFlag & ADL . ADL_DISPLAY_MODE_COLOURFORMAT_565 ) = = ADL . ADL_DISPLAY_MODE_COLOURFORMAT_565 )
expandedDisplayModeFlags . COLOURFORMAT_565 = true ;
// Indicates the display supports EDID queries
if ( ( displayModeFlag & ADL . ADL_DISPLAY_MODE_COLOURFORMAT_8888 ) = = ADL . ADL_DISPLAY_MODE_COLOURFORMAT_8888 )
expandedDisplayModeFlags . COLOURFORMAT_8888 = true ;
// Indicates the display supports normal vertical orientation
if ( ( displayModeFlag & ADL . ADL_DISPLAY_MODE_ORIENTATION_SUPPORTED_000 ) = = ADL . ADL_DISPLAY_MODE_ORIENTATION_SUPPORTED_000 )
expandedDisplayModeFlags . ORIENTATION_SUPPORTED_000 = true ;
// Indicates the display supports normal vertical orientation
if ( ( displayModeFlag & ADL . ADL_DISPLAY_MODE_ORIENTATION_SUPPORTED_090 ) = = ADL . ADL_DISPLAY_MODE_ORIENTATION_SUPPORTED_090 )
expandedDisplayModeFlags . ORIENTATION_SUPPORTED_090 = true ;
// Indicates the display supports normal vertical orientation
if ( ( displayModeFlag & ADL . ADL_DISPLAY_MODE_ORIENTATION_SUPPORTED_180 ) = = ADL . ADL_DISPLAY_MODE_ORIENTATION_SUPPORTED_180 )
expandedDisplayModeFlags . ORIENTATION_SUPPORTED_180 = true ;
// Indicates the display supports normal vertical orientation
if ( ( displayModeFlag & ADL . ADL_DISPLAY_MODE_ORIENTATION_SUPPORTED_270 ) = = ADL . ADL_DISPLAY_MODE_ORIENTATION_SUPPORTED_270 )
expandedDisplayModeFlags . ORIENTATION_SUPPORTED_270 = true ;
// Indicates the display supports normal vertical orientation
if ( ( displayModeFlag & ADL . ADL_DISPLAY_MODE_REFRESHRATE_ROUNDED ) = = ADL . ADL_DISPLAY_MODE_REFRESHRATE_ROUNDED )
expandedDisplayModeFlags . REFRESHRATE_ROUNDED = true ;
// Indicates the display supports normal vertical orientation
if ( ( displayModeFlag & ADL . ADL_DISPLAY_MODE_REFRESHRATE_ONLY ) = = ADL . ADL_DISPLAY_MODE_REFRESHRATE_ONLY )
expandedDisplayModeFlags . REFRESHRATE_ONLY = true ;
return expandedDisplayModeFlags ;
}
2021-06-27 01:53:00 +00:00
public static string ConvertADLReturnValueIntoWords ( int adlReturnValue )
2021-06-18 00:33:46 +00:00
{
if ( adlReturnValue = = ADL . ADL_OK )
return "Success. Function worked as intended." ;
if ( adlReturnValue = = ADL . ADL_ERR )
return "Generic Error.Most likely one or more of the Escape calls to the driver failed!" ;
if ( adlReturnValue = = ADL . ADL_ERR_DISABLED_ADAPTER )
return "Call can't be made due to disabled adapter." ;
if ( adlReturnValue = = ADL . ADL_ERR_INVALID_ADL_IDX )
return "Invalid ADL index passed." ;
if ( adlReturnValue = = ADL . ADL_ERR_INVALID_CALLBACK )
return "Invalid Callback passed." ;
if ( adlReturnValue = = ADL . ADL_ERR_INVALID_CONTROLLER_IDX )
return "Invalid controller index passed." ;
if ( adlReturnValue = = ADL . ADL_ERR_INVALID_DISPLAY_IDX )
return "Invalid display index passed." ;
if ( adlReturnValue = = ADL . ADL_ERR_INVALID_PARAM )
return "One of the parameter passed is invalid." ;
if ( adlReturnValue = = ADL . ADL_ERR_INVALID_PARAM_SIZE )
return "One of the parameter size is invalid." ;
if ( adlReturnValue = = ADL . ADL_ERR_NO_XDISPLAY )
return "There's no Linux XDisplay in Linux Console environment." ;
if ( adlReturnValue = = ADL . ADL_ERR_NOT_INIT )
return "ADL not initialized. You need to run ADL_Main_Control_Create." ;
if ( adlReturnValue = = ADL . ADL_ERR_NOT_SUPPORTED )
return "Function not supported by the driver." ;
if ( adlReturnValue = = ADL . ADL_ERR_NULL_POINTER )
return "Null Pointer error." ;
if ( adlReturnValue = = ADL . ADL_ERR_RESOURCE_CONFLICT )
return "Display Resource conflict." ;
if ( adlReturnValue = = ADL . ADL_ERR_SET_INCOMPLETE )
return "Err Set incomplete" ;
if ( adlReturnValue = = ADL . ADL_OK_MODE_CHANGE )
return "All OK but need mode change." ;
if ( adlReturnValue = = ADL . ADL_OK_RESTART )
return "All OK, but need to restart." ;
if ( adlReturnValue = = ADL . ADL_OK_WAIT )
return "All OK, but need to wait." ;
if ( adlReturnValue = = ADL . ADL_OK_WARNING )
return "All OK, but with warning.." ;
// If we get here, then we've got an ADL Return value that we don't understand!
return "ADL Return value not recognised. Your driver is likely newer than this code can understand." ;
}
#endregion ADL Helper Functions
2021-06-07 05:55:44 +00:00
}
#endregion ADL Class
}
#endregion ATI . ADL