I use it to get all the displays' information like this:
int displayCount = 0;
LPADLDisplayInfo displaysInfo = NULL;
int ret = ADL_Display_DisplayInfo_Get(-1, &displayCount, &displaysInfo, 0);
But it failed and return -5. I checked it in the ADL_SDK_4.0, it should mean "Invalid ADL index passed".
And the API's detail description told me the first parameter could be -1 in order to retrieve all displays' information.
The text reads as follows:
[in] iAdapterIndex The ADL index handle of the desired adapter. A value of -1 returns all displays in the system across multiple GPUs.
How could I use this API to retrieve all displays' information?