I just updated to Windows 10 April 2019 build 18362.53 and I found an issue when calling the GetDeviceGammaRamp() API. If I call this API in the following way then the API will hang and never return. This used to work in all previous versions of Windows:
WORD lpRamp[3 * 256] = { NULL };
HDC hDC = GetDC(nullptr);
GetDeviceGammaRamp(hDC, lpRamp);