NVAPI Reference Documentation
NVIDIA
Release 495: October 2
2021

Deprecation Warnings

All legacy APIs will be deprecated if a replacement is available. When an API is deprecated, it still remains in the code. However, any attempts to use it will result in a warning message recommending alternative APIs and stating that the API will be removed in the future - the API will not remain in the code indefinitely.

As the API is not removed immediately, this gives the client time to bring their code into compliance with the new APIs.

Example of Some Warnings

error C2220: warning treated as error - no 'object' file generated
warning C4996: 'NvAPI_GPU_GetConnectedOutputs': Do not use this function -
it is deprecated in release 290.

How to Avoid Warnings

There are two courses of action that clients should take to avoid being presented with the warnings. These include a short term phase and a long term phase:

Phase-I (short term):

Phase-II (long term): Clients need to avoid using the deprecated APIs and switch to the replacement APIs.

Global NvAPI_GetDisplayDriverVersion (NvDisplayHandle hNvDisplay, NV_DISPLAY_DRIVER_VERSION *pVersion)
Do not use this function - it is deprecated in release 290. Instead, use NvAPI_SYS_GetDriverAndBranchVersion. SUPPORTED OS: Windows 7 and higher
Global NvAPI_GetView (NvDisplayHandle hNvDisplay, NV_VIEW_TARGET_INFO *pTargets, NvU32 *pTargetMaskCount, NV_TARGET_VIEW_MODE *pTargetView)
Do not use this function - it is deprecated in release 290. Instead, use NvAPI_DISP_GetDisplayConfig. SUPPORTED OS: Windows 7 and higher
Global NvAPI_GetViewEx (NvDisplayHandle hNvDisplay, NV_DISPLAY_PATH_INFO *pPathInfo, NvU32 *pPathCount, NV_TARGET_VIEW_MODE *pTargetViewMode)
Do not use this function - it is deprecated in release 290. Instead, use NvAPI_DISP_GetDisplayConfig. SUPPORTED OS: Windows 7 and higher
Global NvAPI_GPU_GetAGPAperture (NvPhysicalGpuHandle hPhysicalGpu, NvU32 *pSize)
Do not use this function - it is deprecated in release 455. SUPPORTED OS: Windows 7 and higher
Global NvAPI_GPU_GetAllOutputs (NvPhysicalGpuHandle hPhysicalGpu, NvU32 *pOutputsMask)
Do not use this function - it is deprecated in release 290. Instead, use NvAPI_GPU_GetAllDisplayIds. SUPPORTED OS: Windows 7 and higher
Global NvAPI_GPU_GetConnectedOutputs (NvPhysicalGpuHandle hPhysicalGpu, NvU32 *pOutputsMask)
Do not use this function - it is deprecated in release 290. Instead, use NvAPI_GPU_GetConnectedDisplayIds. SUPPORTED OS: Windows 7 and higher
Global NvAPI_GPU_GetConnectedOutputsWithLidState (NvPhysicalGpuHandle hPhysicalGpu, NvU32 *pOutputsMask)
Do not use this function - it is deprecated in release 290. Instead, use NvAPI_GPU_GetConnectedDisplayIds. SUPPORTED OS: Windows 7 and higher
Global NvAPI_GPU_GetConnectedSLIOutputs (NvPhysicalGpuHandle hPhysicalGpu, NvU32 *pOutputsMask)
Do not use this function - it is deprecated in release 290. Instead, use NvAPI_GPU_GetConnectedDisplayIds. SUPPORTED OS: Windows 7 and higher
Global NvAPI_GPU_GetConnectedSLIOutputsWithLidState (NvPhysicalGpuHandle hPhysicalGpu, NvU32 *pOutputsMask)
Do not use this function - it is deprecated in release 290. Instead, use NvAPI_GPU_GetConnectedDisplayIds. SUPPORTED OS: Windows 7 and higher
Global NvAPI_GPU_GetCurrentAGPRate (NvPhysicalGpuHandle hPhysicalGpu, NvU32 *pRate)
Do not use this function - it is deprecated in release 455. SUPPORTED OS: Windows 7 and higher
Global NvAPI_GPU_GetPstatesInfoEx (NvPhysicalGpuHandle hPhysicalGpu, NV_GPU_PERF_PSTATES_INFO *pPerfPstatesInfo, NvU32 inputFlags)
Do not use this function - it is deprecated in release 304. Instead, use NvAPI_GPU_GetPstates20. SUPPORTED OS: Windows 7 and higher
Global NvAPI_GPU_GetQuadroStatus (NvPhysicalGpuHandle hPhysicalGpu, NvU32 *pStatus)
Do not use this function - it is deprecated in release 460. SUPPORTED OS: Windows 7 and higher
Global NvAPI_SetView (NvDisplayHandle hNvDisplay, NV_VIEW_TARGET_INFO *pTargetInfo, NV_TARGET_VIEW_MODE targetView)
Do not use this function - it is deprecated in release 290. Instead, use NvAPI_DISP_SetDisplayConfig. SUPPORTED OS: Windows 7 and higher
Global NvAPI_SetViewEx (NvDisplayHandle hNvDisplay, NV_DISPLAY_PATH_INFO *pPathInfo, NV_TARGET_VIEW_MODE displayView)

Do not use this function - it is deprecated in release 290. Instead, use NvAPI_DISP_SetDisplayConfig. SUPPORTED OS: Windows 7 and higher

Do not use this function - it is deprecated in release 290. Instead, use NvAPI_DISP_SetDisplayConfig. SUPPORTED OS: Windows 7 and higher

Global NvAPI_VIO_Close (NvVioHandle hVioHandle, NvU32 bRelease)
Do not use this function - it is deprecated in release 440. SUPPORTED OS: Windows 7 and higher
Global NvAPI_VIO_EnumDataFormats (NvVioHandle hVioHandle, NvU32 enumIndex, NVVIODATAFORMATDETAIL *pDataFormatDetail)
Do not use this function - it is deprecated in release 440. SUPPORTED OS: Windows 7 and higher
Global NvAPI_VIO_EnumDevices (NvVioHandle hVioHandle[NVAPI_MAX_VIO_DEVICES], NvU32 *vioDeviceCount)
Do not use this function - it is deprecated in release 440. SUPPORTED OS: Windows 7 and higher
Global NvAPI_VIO_EnumSignalFormats (NvVioHandle hVioHandle, NvU32 enumIndex, NVVIOSIGNALFORMATDETAIL *pSignalFormatDetail)
Do not use this function - it is deprecated in release 440. SUPPORTED OS: Windows 7 and higher
Global NvAPI_VIO_GetCapabilities (NvVioHandle hVioHandle, NVVIOCAPS *pAdapterCaps)
Do not use this function - it is deprecated in release 440. SUPPORTED OS: Windows 7 and higher
Global NvAPI_VIO_GetConfig (NvVioHandle hVioHandle, NVVIOCONFIG *pConfig)
Do not use this function - it is deprecated in release 440. SUPPORTED OS: Windows 7 and higher
Global NvAPI_VIO_GetCSC (NvVioHandle hVioHandle, NVVIOCOLORCONVERSION *pCSC)
Do not use this function - it is deprecated in release 290. Instead, use NvAPI_VIO_GetConfig. SUPPORTED OS: Windows 7 and higher
Global NvAPI_VIO_GetGamma (NvVioHandle hVioHandle, NVVIOGAMMACORRECTION *pGamma)
Do not use this function - it is deprecated in release 290. Instead, use NvAPI_VIO_GetConfig. SUPPORTED OS: Windows 7 and higher
Global NvAPI_VIO_GetPCIInfo (__in NvVioHandle hVioHandle, __inout NVVIOPCIINFO *pVioPCIInfo)
Do not use this function - it is deprecated in release 440. SUPPORTED OS: Windows 7 and higher
Global NvAPI_VIO_GetSyncDelay (NvVioHandle hVioHandle, NVVIOSYNCDELAY *pSyncDelay)
Do not use this function - it is deprecated in release 290. Instead, use NvAPI_VIO_GetConfig. SUPPORTED OS: Windows 7 and higher
Global NvAPI_VIO_IsFrameLockModeCompatible (NvVioHandle hVioHandle, NvU32 srcEnumIndex, NvU32 destEnumIndex, NvU32 *pbCompatible)
Do not use this function - it is deprecated in release 440. SUPPORTED OS: Windows 7 and higher
Global NvAPI_VIO_IsRunning (NvVioHandle hVioHandle)
Do not use this function - it is deprecated in release 440. SUPPORTED OS: Windows 7 and higher
Global NvAPI_VIO_Open (NvVioHandle hVioHandle, NvU32 vioClass, NVVIOOWNERTYPE ownerType)
Do not use this function - it is deprecated in release 440. SUPPORTED OS: Windows 7 and higher
Global NvAPI_VIO_QueryTopology (NV_VIO_TOPOLOGY *pNvVIOTopology)
Do not use this function - it is deprecated in release 440. SUPPORTED OS: Windows 7 and higher
Global NvAPI_VIO_SetConfig (NvVioHandle hVioHandle, const NVVIOCONFIG *pConfig)
Do not use this function - it is deprecated in release 440. SUPPORTED OS: Windows 7 and higher
Global NvAPI_VIO_SetCSC (NvVioHandle hVioHandle, NVVIOCOLORCONVERSION *pCSC)
Do not use this function - it is deprecated in release 290. Instead, use NvAPI_VIO_SetConfig. SUPPORTED OS: Windows 7 and higher
Global NvAPI_VIO_SetGamma (NvVioHandle hVioHandle, NVVIOGAMMACORRECTION *pGamma)
Do not use this function - it is deprecated in release 290. Instead, use NvAPI_VIO_SetConfig. SUPPORTED OS: Windows 7 and higher
Global NvAPI_VIO_SetSyncDelay (NvVioHandle hVioHandle, const NVVIOSYNCDELAY *pSyncDelay)
Do not use this function - it is deprecated in release 290. Instead, use NvAPI_VIO_SetConfig. SUPPORTED OS: Windows 7 and higher
Global NvAPI_VIO_Start (NvVioHandle hVioHandle)
Do not use this function - it is deprecated in release 440. SUPPORTED OS: Windows 7 and higher
Global NvAPI_VIO_Status (NvVioHandle hVioHandle, NVVIOSTATUS *pStatus)
Do not use this function - it is deprecated in release 440. SUPPORTED OS: Windows 7 and higher
Global NvAPI_VIO_Stop (NvVioHandle hVioHandle)
Do not use this function - it is deprecated in release 440. SUPPORTED OS: Windows 7 and higher
Global NvAPI_VIO_SyncFormatDetect (NvVioHandle hVioHandle, NvU32 *pWait)
Do not use this function - it is deprecated in release 440. SUPPORTED OS: Windows 7 and higher


Copyright (c) 2007-2021 NVIDIA Corporation. All rights reserved.

NVIDIA