How to use NvAPI_DISP_GetDisplayConfig?
问题 When using the NVAPI I'm having problems with NvAPI_DISP_GetDisplayConfig. I get an AppCrash on the second call to NvAPI_DISP_GetDisplayConfig. Can't seem to figure out why. NvU32 count = 0; status = NvAPI_DISP_GetDisplayConfig(&count, NULL); if (status != NVAPI_OK) PrintError(status); printf("Configs: %i\n", count); NV_DISPLAYCONFIG_PATH_INFO *configinfos = new NV_DISPLAYCONFIG_PATH_INFO[count]; configinfos[0].version = NV_DISPLAYCONFIG_PATH_INFO_VER; status = NvAPI_DISP_GetDisplayConfig(