![]() |
NVAPI Reference Documentation
|
Release 560
|
Data Structures | |
struct | tagNV_TIMINGEXT |
struct | _NV_TIMING |
struct | NV_VIEW_TARGET_INFO |
struct | NV_DISPLAY_PATH |
struct | NV_DISPLAY_PATH_INFO_V3 |
struct | NV_DISPLAY_PATH_INFO |
struct | _NV_POSITION |
struct | _NV_RESOLUTION |
struct | _NV_DISPLAYCONFIG_PATH_ADVANCED_TARGET_INFO_V1 |
struct | _NV_DISPLAYCONFIG_PATH_TARGET_INFO_V1 |
struct | _NV_DISPLAYCONFIG_PATH_TARGET_INFO_V2 |
struct | _NV_DISPLAYCONFIG_SOURCE_MODE_INFO_V1 |
struct | _NV_DISPLAYCONFIG_PATH_INFO_V1 |
struct | _NV_DISPLAYCONFIG_PATH_INFO_V2 |
struct | _NV_DISPLAY_PORT_INFO_V1 |
struct | NV_DISPLAY_PORT_CONFIG |
struct | _NV_HDMI_SUPPORT_INFO_V1 |
struct | NV_TIMING_FLAG |
struct | _NV_TIMING_INPUT |
struct | _NV_MONITOR_COLOR_DATA |
struct | NV_CUSTOM_DISPLAY |
struct | _NV_EDID_DATA_V1 |
struct | NV_SET_PREFERRED_STEREO_DISPLAY_V1 |
struct | NV_GET_PREFERRED_STEREO_DISPLAY_V1 |
struct | _NV_GET_VRR_INFO_V1 |
Timing-related constants
Macro for constructing the version fields of NV_DISPLAY_PATH_INFO
Macro for constructing the version field of NV_DISPLAY_PORT_CONFIG
#define _NV_DISPLAYCONFIG_PATH_INFO_V2 _NV_DISPLAYCONFIG_PATH_INFO |
This define is temporary and must be removed once DVS failure is fixed.
#define _NV_TARGET_VIEW_MODE_ |
Used in NvAPI_SetView().
#define NV_CUSTOM_DISPLAY_VER MAKE_NVAPI_VERSION(NV_CUSTOM_DISPLAY,1) |
Used in NV_CUSTOM_DISPLAY.
#define NV_DISPLAY_PATH_INFO_VER NV_DISPLAY_PATH_INFO_VER4 |
#define NV_DISPLAY_PATH_INFO_VER1 MAKE_NVAPI_VERSION(NV_DISPLAY_PATH_INFO,1) |
#define NV_DISPLAY_PATH_INFO_VER2 MAKE_NVAPI_VERSION(NV_DISPLAY_PATH_INFO,2) |
#define NV_DISPLAY_PATH_INFO_VER3 MAKE_NVAPI_VERSION(NV_DISPLAY_PATH_INFO,3) |
#define NV_DISPLAY_PATH_INFO_VER4 MAKE_NVAPI_VERSION(NV_DISPLAY_PATH_INFO,4) |
#define NV_DISPLAY_PORT_CONFIG_VER MAKE_NVAPI_VERSION(NV_DISPLAY_PORT_CONFIG,2) |
#define NV_DISPLAY_PORT_CONFIG_VER_1 MAKE_NVAPI_VERSION(NV_DISPLAY_PORT_CONFIG,1) |
Macro for constructing the version field of NV_DISPLAY_PORT_CONFIG.
#define NV_DISPLAY_PORT_CONFIG_VER_2 MAKE_NVAPI_VERSION(NV_DISPLAY_PORT_CONFIG,2) |
Macro for constructing the version field of NV_DISPLAY_PORT_CONFIG.
#define NV_DISPLAYCONFIG_PATH_ADVANCED_TARGET_INFO_VER NV_DISPLAYCONFIG_PATH_ADVANCED_TARGET_INFO_VER1 |
#define NV_DISPLAYCONFIG_PATH_ADVANCED_TARGET_INFO_VER1 MAKE_NVAPI_VERSION(NV_DISPLAYCONFIG_PATH_ADVANCED_TARGET_INFO_V1,1) |
#define NV_DISPLAYCONFIG_PATH_INFO_VER1 MAKE_NVAPI_VERSION(NV_DISPLAYCONFIG_PATH_INFO_V1,1) |
#define NV_DISPLAYCONFIG_PATH_INFO_VER2 MAKE_NVAPI_VERSION(NV_DISPLAYCONFIG_PATH_INFO_V2,2) |
#define NV_GET_PREFERRED_STEREO_DISPLAY_VER NV_GET_PREFERRED_STEREO_DISPLAY_VER1 |
#define NV_GET_PREFERRED_STEREO_DISPLAY_VER1 MAKE_NVAPI_VERSION(NV_GET_PREFERRED_STEREO_DISPLAY_V1,1) |
#define NV_MONITOR_COLOR_CAPS_VER1 MAKE_NVAPI_VERSION(NV_MONITOR_COLOR_CAPS_V1,1) |
#define NV_SET_PREFERRED_STEREO_DISPLAY_VER NV_SET_PREFERRED_STEREO_DISPLAY_VER1 |
#define NV_SET_PREFERRED_STEREO_DISPLAY_VER1 MAKE_NVAPI_VERSION(NV_SET_PREFERRED_STEREO_DISPLAY_V1,1) |
#define NV_TIMING_H_SYNC_DEFAULT NV_TIMING_H_SYNC_NEGATIVE |
#define NV_TIMING_H_SYNC_NEGATIVE 1 |
#define NV_TIMING_H_SYNC_POSITIVE 0 |
#define NV_TIMING_INTERLACED 1 |
#define NV_TIMING_INTERLACED_EXTRA_VBLANK_ON_FIELD2 1 |
#define NV_TIMING_INTERLACED_NO_EXTRA_VBLANK_ON_FIELD2 2 |
#define NV_TIMING_PROGRESSIVE 0 |
#define NV_TIMING_V_SYNC_DEFAULT NV_TIMING_V_SYNC_POSITIVE |
#define NV_TIMING_V_SYNC_NEGATIVE 1 |
#define NV_TIMING_V_SYNC_POSITIVE 0 |
#define NV_VIEW_TARGET_INFO_VER MAKE_NVAPI_VERSION(NV_VIEW_TARGET_INFO,2) |
#define NVAPI_ADVANCED_MAX_DISPLAY_PATH NVAPI_ADVANCED_MAX_VIEW_TARGET |
#define NVAPI_ADVANCED_MAX_VIEW_TARGET 4 |
Used in NvAPI_SetView().
#define NVAPI_MAX_DISPLAY_PATH NVAPI_MAX_VIEW_TARGET |
#define NVAPI_MAX_VIEW_TARGET 2 |
Used in NvAPI_SetView().
#define NVFORMAT_MAKEFOURCC | ( | ch0, | |
ch1, | |||
ch2, | |||
ch3 | |||
) |
typedef struct _NV_DISPLAY_PORT_INFO_V1 NV_DISPLAY_PORT_INFO_V1 |
Used in NvAPI_GetDisplayPortInfo().
typedef enum _NV_DISPLAYCONFIG_FLAGS NV_DISPLAYCONFIG_FLAGS |
typedef struct _NV_DISPLAYCONFIG_PATH_ADVANCED_TARGET_INFO_V1 NV_DISPLAYCONFIG_PATH_ADVANCED_TARGET_INFO_V1 |
typedef struct _NV_DISPLAYCONFIG_PATH_INFO_V1 NV_DISPLAYCONFIG_PATH_INFO_V1 |
typedef struct _NV_DISPLAYCONFIG_PATH_INFO_V2 NV_DISPLAYCONFIG_PATH_INFO_V2 |
As version is not defined for this structure, we will be using version of NV_DISPLAYCONFIG_PATH_INFO
typedef enum _NV_DP_BPC NV_DP_BPC |
Used in NV_DISPLAY_PORT_INFO.
typedef enum _NV_DP_COLOR_FORMAT NV_DP_COLOR_FORMAT |
Used in NV_DISPLAY_PORT_INFO.
typedef enum _NV_DP_COLORIMETRY NV_DP_COLORIMETRY |
Used in NV_DISPLAY_PORT_INFO.
typedef enum _NV_DP_DYNAMIC_RANGE NV_DP_DYNAMIC_RANGE |
Used in NV_DISPLAY_PORT_INFO.
typedef enum _NV_DP_LANE_COUNT NV_DP_LANE_COUNT |
Used in NV_DISPLAY_PORT_INFO.
typedef enum _NV_DP_LINK_RATE NV_DP_LINK_RATE |
Used in NV_DISPLAY_PORT_INFO.
typedef struct _NV_EDID_DATA_V1 NV_EDID_DATA_V1 |
typedef enum _NV_FORMAT NV_FORMAT |
Color formats- used in NvAPI_SetViewEx().
typedef struct _NV_GET_VRR_INFO_V1 NV_GET_VRR_INFO_V1 |
typedef struct _NV_HDMI_SUPPORT_INFO_V1 NV_HDMI_SUPPORT_INFO_V1 |
Used in NvAPI_GetHDMISupportInfo().
typedef struct _NV_MONITOR_COLOR_DATA NV_MONITOR_COLOR_CAPS_V1 |
typedef struct _NV_POSITION NV_POSITION |
typedef struct _NV_RESOLUTION NV_RESOLUTION |
typedef enum _NV_ROTATE NV_ROTATE |
Rotate modes- used in NvAPI_SetViewEx().
typedef enum _NV_SCALING NV_SCALING |
Scaling modes - used in NvAPI_SetViewEx().
typedef enum _NV_TARGET_VIEW_MODE NV_TARGET_VIEW_MODE |
Used in NvAPI_SetView().
typedef struct _NV_TIMING NV_TIMING |
The very basic timing structure based on the VESA standard:
typedef struct _NV_TIMING_INPUT NV_TIMING_INPUT |
Used in NvAPI_DISP_GetTiming().
typedef enum _NV_TIMING_OVERRIDE NV_TIMING_OVERRIDE |
The timing override is not supported yet; must be set to _AUTO.
typedef struct tagNV_TIMINGEXT NV_TIMINGEXT |
NVIDIA-specific timing extras
Used in NV_TIMING.
enum _NV_DP_BPC |
enum _NV_DP_COLOR_FORMAT |
enum _NV_DP_COLORIMETRY |
enum _NV_DP_DYNAMIC_RANGE |
enum _NV_DP_LANE_COUNT |
enum _NV_DP_LINK_RATE |
enum _NV_FORMAT |
enum _NV_ROTATE |
enum _NV_SCALING |
Scaling modes - used in NvAPI_SetViewEx().
enum _NV_TARGET_VIEW_MODE |
enum _NV_TIMING_OVERRIDE |
The timing override is not supported yet; must be set to _AUTO.
enum NV_INFOFRAME_CMD |
enum NV_MONITOR_CAPS_TYPE |
__nvapi_deprecated_function | ( | "Do not use this function - it is deprecated in release 290. | Instead, |
use NvAPI_DISP_GetDisplayConfig." | |||
) |
This API lets caller retrieve the target display arrangement for selected source display handle.
[in] | hNvDisplay | NVIDIA Display selection. It can be NVAPI_DEFAULT_HANDLE or a handle enumerated from NvAPI_EnumNVidiaDisplayHandle(). |
[out] | pTargets | User allocated storage to retrieve an array of NV_VIEW_TARGET_INFO. Can be NULL to retrieve the targetCount. |
[in,out] | targetMaskCount | Count of target device mask specified in pTargetMask. |
[out] | targetView | Target view selected from NV_TARGET_VIEW_MODE. |
NVAPI_OK | Completed request |
NVAPI_ERROR | Miscellaneous error occurred |
NVAPI_INVALID_ARGUMENT | Invalid input parameter. |
DESCRIPTION: This API lets caller retrieve the target display arrangement for selected source display handle.
[in] | hNvDisplay | NVIDIA Display selection. NVAPI_DEFAULT_HANDLE is not allowed, it has to be a handle enumerated with NvAPI_EnumNVidiaDisplayHandle(). |
[in,out] | pPathInfo | Count field should be set to NVAPI_MAX_DISPLAY_PATH. Can be NULL to retrieve just the pathCount. |
[in,out] | pPathCount | Number of elements in array pPathInfo->path. |
[out] | pTargetViewMode | Display view selected from NV_TARGET_VIEW_MODE. |
NVAPI_OK | Completed request |
NVAPI_API_NOT_INTIALIZED | NVAPI not initialized |
NVAPI_ERROR | Miscellaneous error occurred |
NVAPI_INVALID_ARGUMENT | Invalid input parameter. |
NVAPI_EXPECTED_DISPLAY_HANDLE | hNvDisplay is not a valid display handle. |
__nvapi_deprecated_function | ( | "Do not use this function - it is deprecated in release 290. | Instead, |
use NvAPI_DISP_SetDisplayConfig." | |||
) |
NVAPI_INTERFACE NvAPI_CreateDisplayFromUnAttachedDisplay | ( | NvUnAttachedDisplayHandle | hNvUnAttachedDisp, |
NvDisplayHandle * | pNvDisplay | ||
) |
This function converts the unattached display handle to an active attached display handle.
At least one GPU must be present in the system and running an NVIDIA display driver.
SUPPORTED OS: Windows 7 and higher
NVAPI_INVALID_ARGUMENT | hNvUnAttachedDisp is not valid or pNvDisplay is NULL. |
NVAPI_OK | One or more handles were returned |
NVAPI_NVIDIA_DEVICE_NOT_FOUND | No NVIDIA GPU driving a display was found |
NVAPI_INTERFACE NvAPI_DisableHWCursor | ( | NvDisplayHandle | hNvDisplay | ) |
This function disables hardware cursor support
SUPPORTED OS: Windows XP
NVAPI_INTERFACE NvAPI_DISP_AcquireDedicatedDisplay | ( | __in NvU32 | displayId, |
__inout NvU64 * | pDisplaySourceHandle | ||
) |
SUPPORTED OS: Windows 10 and higher DESCRIPTION: This API requests exclusive access to the specified dedicated display managed by the Nvidia driver. If the call succeeds, a handle is returned which could be opened as a DisplaySource. The call fails if the display is not managed by the Nvidia driver. The call fails if the display has already been acquired by another process.
[in] | displayId | Display ID of the dedicated display to be acquired. |
[in/out] | pDisplaySourceHandle Pointer to memory that receives the shared handle to a DisplaySource. |
NVAPI_OK | The call succeeded. |
NVAPI_ERROR | The call failed. |
NVAPI_NO_IMPLEMENTATION | The API not implemented. |
NVAPI_INVALID_POINTER | An invalid pointer was passed as an argument. |
NVAPI_API_NOT_INITIALIZED | NvAPI not initialized. |
NVAPI_INVALID_DISPLAY_ID | An invalid displayId was passed as an argument. |
NVAPI_UNREGISTERED_RESOURCE | The display is not managed by the Nvidia driver. |
NVAPI_RESOURCE_IN_USE | The display has already been acquired by another process. |
NvAPI_Disp_ColorControl | ( | NvU32 | displayId, |
NV_COLOR_DATA * | pColorData | ||
) |
DESCRIPTION: This API controls the Color values.
SUPPORTED OS: Windows 7 and higher
[in] | displayId | Monitor Identifier |
[in,out] | pColorData | Contains data corresponding to color information |
NVAPI_INTERFACE NvAPI_DISP_DeleteCustomDisplay | ( | __in_ecount(count) NvU32 * | pDisplayIds, |
__in NvU32 | count, | ||
__in NV_CUSTOM_DISPLAY * | pCustDisp | ||
) |
DESCRIPTION: This function deletes the custom display configuration, specified from the registry for all the displays whose display IDs are passed.
SUPPORTED OS: Windows 7 and higher
[in] | pDisplayIds | Array of Dispaly IDs on which custom display configuration is to be saved. |
[in] | count | Total number of the incoming Dispaly IDs. This is for the multi-head support. |
[in] | pCustDisp | Pointer to the NV_CUSTOM_DISPLAY structure |
NVAPI_INVALID_DISPLAY_ID | Custom Timing is not supported on the Display, whose display id is passed |
NVAPI_INTERFACE NvAPI_DISP_EnumCustomDisplay | ( | __in NvU32 | displayId, |
__in NvU32 | index, | ||
__inout NV_CUSTOM_DISPLAY * | pCustDisp | ||
) |
DESCRIPTION: This API enumerates the custom timing specified by the enum index. The client should keep enumerating until it returns NVAPI_END_ENUMERATION.
SUPPORTED OS: Windows 7 and higher
[in] | displayId | Dispaly ID of the display. |
[in] | index | Enum index |
[in,out] | pCustDisp | Pointer to the NV_CUSTOM_DISPLAY structure |
NVAPI_INVALID_DISPLAY_ID | Custom Timing is not supported on the Display, whose display id is passed |
NvAPI_DISP_GetAdaptiveSyncData | ( | __in NvU32 | displayId, |
__inout NV_GET_ADAPTIVE_SYNC_DATA * | pAdaptiveSyncData | ||
) |
NVAPI_INTERFACE NvAPI_DISP_GetDisplayConfig | ( | __inout NvU32 * | pathInfoCount, |
__out_ecount_full_opt *pathInfoCount NV_DISPLAYCONFIG_PATH_INFO * | pathInfo | ||
) |
DESCRIPTION: This API lets caller retrieve the current global display configuration. USAGE: The caller might have to call this three times to fetch all the required configuration details as follows: First Pass: Caller should Call NvAPI_DISP_GetDisplayConfig() with pathInfo set to NULL to fetch pathInfoCount. Second Pass: Allocate memory for pathInfo with respect to the number of pathInfoCount(from First Pass) to fetch targetInfoCount. If sourceModeInfo is needed allocate memory or it can be initialized to NULL. Third Pass(Optional, only required if target information is required): Allocate memory for targetInfo with respect to number of targetInfoCount(from Second Pass). SUPPORTED OS: Windows 7 and higher
[in,out] | pathInfoCount | Number of elements in pathInfo array, returns number of valid topologies, this cannot be null. |
[in,out] | pathInfo | Array of path information |
NVAPI_INVALID_ARGUMENT | - Invalid input parameter. Following can be the reason for this return value:
|
NVAPI_DEVICE_BUSY | - ModeSet has not yet completed. Please wait and call it again. |
NVAPI_INTERFACE NvAPI_DISP_GetDisplayIdByDisplayName | ( | const char * | displayName, |
NvU32 * | displayId | ||
) |
SUPPORTED OS: Windows 7 and higher DESCRIPTION: This API retrieves the Display Id of a given display by display name. The display must be active to retrieve the displayId. In the case of clone mode or Surround gaming, the primary or top-left display will be returned.
[in] | displayName | Name of display (Eg: "\\DISPLAY1" to retrieve the displayId for. |
[out] | displayId | Display ID of the requested display. |
retval NVAPI_OK: Capabilties have been returned. retval NVAPI_INVALID_ARGUMENT: One or more args passed in are invalid. retval NVAPI_API_NOT_INTIALIZED: The NvAPI API needs to be initialized first retval NVAPI_NO_IMPLEMENTATION: This entrypoint not available retval NVAPI_ERROR: Miscellaneous error occurred
NVAPI_INTERFACE NvAPI_DISP_GetEdidData | ( | __in NvU32 | displayId, |
__inout NV_EDID_DATA * | pEdidParams, | ||
__inout NV_EDID_FLAG * | pFlag | ||
) |
NVAPI_INTERFACE NvAPI_DISP_GetGDIPrimaryDisplayId | ( | NvU32 * | displayId | ) |
SUPPORTED OS: Windows 7 and higher DESCRIPTION: This API returns the Display ID of the GDI Primary.
[out] | displayId | Display ID of the GDI Primary display. |
NVAPI_OK | Capabilties have been returned. |
NVAPI_NVIDIA_DEVICE_NOT_FOUND | GDI Primary not on an NVIDIA GPU. |
NVAPI_INVALID_ARGUMENT | One or more args passed in are invalid. |
NVAPI_API_NOT_INTIALIZED | The NvAPI API needs to be initialized first |
NVAPI_NO_IMPLEMENTATION | This entrypoint not available |
NVAPI_ERROR | Miscellaneous error occurred |
NVAPI_INTERFACE NvAPI_DISP_GetMonitorCapabilities | ( | __in NvU32 | displayId, |
__inout NV_MONITOR_CAPABILITIES * | pMonitorCapabilities | ||
) |
SUPPORTED OS: Windows 7 and higher
NVAPI_INTERFACE NvAPI_DISP_GetMonitorColorCapabilities | ( | __in NvU32 | displayId, |
__inout_ecount_part_opt *, *pColorCapsCount NV_MONITOR_COLOR_CAPS * | pMonitorColorCapabilities, | ||
__inout NvU32 * | pColorCapsCount | ||
) |
DESCRIPTION: This API returns all the color formats and bit depth values supported by a given DP monitor.
USAGE: Sequence of calls which caller should make to get the information.
Note :
SUPPORTED OS: Windows 7 and higher
[in] | displayId | Monitor Identifier |
[in,out] | pMonitorColorCapabilities | The monitor color capabilities information |
[in,out] | pColorCapsCount | - During input, the number of elements allocated for the pMonitorColorCapabilities pointer
|
NVAPI_INSUFFICIENT_BUFFER | The input buffer size is not sufficient to hold the total contents. In this case *pColorCapsCount will hold the required amount of elements. |
NVAPI_INVALID_DISPLAY_ID | The input monitor is either not connected or is not a DP panel. |
NVAPI_INTERFACE NvAPI_DISP_GetPreferredStereoDisplay | ( | __inout NV_GET_PREFERRED_STEREO_DISPLAY * | pPreferredStereoDisplay | ) |
DESCRIPTION: Queries the displayId of the display output driving the 3pin DIN stereo signal, if any. SUPPORTED OS: Windows 10 and higher
[in,out] | pPreferredStereoDisplay | Pointer to a NV_GET_PREFERRED_STEREO_DISPLAY structure |
NVAPI_OK | completed request |
NVAPI_ERROR | miscellaneous error occurred |
NVAPI_INVALID_ARGUMENT | Invalid input parameter. |
NVAPI_INVALID_POINTER | An invalid pointer was passed as an argument (probably NULL). |
NVAPI_INTERFACE NvAPI_DISP_GetTiming | ( | __in NvU32 | displayId, |
__in NV_TIMING_INPUT * | timingInput, | ||
__out NV_TIMING * | pTiming | ||
) |
DESCRIPTION: This function calculates the timing from the visible width/height/refresh-rate and timing type info.
SUPPORTED OS: Windows 7 and higher
[in] | displayId | Display ID of the display. |
[in] | timingInput | Inputs used for calculating the timing. |
[out] | pTiming | Pointer to the NV_TIMING structure. |
NvAPI_DISP_GetVirtualRefreshRateData | ( | __in NvU32 | displayId, |
__inout NV_GET_VIRTUAL_REFRESH_RATE_DATA * | pVirtualRefreshRateData | ||
) |
NVAPI_INTERFACE NvAPI_Disp_GetVRRInfo | ( | __in NvU32 | displayId, |
__inout NV_GET_VRR_INFO * | pVrrInfo | ||
) |
DESCRIPTION: This API returns Variable Refresh Rate(VRR) information for the given display ID.
SUPPORTED OS: Windows 10 and higher
[in,out] | pVrrInfo | Pointer to the NV_GET_VRR_INFO structure. |
NVAPI_INTERFACE NvAPI_Disp_InfoFrameControl | ( | __in NvU32 | displayId, |
__inout NV_INFOFRAME_DATA * | pInfoframeData | ||
) |
DESCRIPTION: This API controls the InfoFrame values.
SUPPORTED OS: Windows 7 and higher
[in] | displayId | Monitor Identifier |
[in,out] | pInfoframeData | Contains data corresponding to InfoFrame |
NVAPI_INTERFACE NvAPI_DISP_ReleaseDedicatedDisplay | ( | __in NvU32 | displayId | ) |
SUPPORTED OS: Windows 10 and higher DESCRIPTION: This API releases the exclusive ownership of a specific dedicated display previously acquired by the process.
[in] | displayId | Display ID of the dedicated display to be released. |
NVAPI_OK | The call succeeded. |
NVAPI_ERROR | The call failed. |
NVAPI_NO_IMPLEMENTATION | The API not implemented. |
NVAPI_API_NOT_INITIALIZED | NvAPI not initialized. |
NVAPI_UNREGISTERED_RESOURCE | The display is not managed by the Nvidia driver. |
::NVAPI_DDISPLAY_NOT_ACQUIRED | The display is not acquired by the process. |
NVAPI_INTERFACE NvAPI_DISP_RevertCustomDisplayTrial | ( | __in_ecount(count) NvU32 * | pDisplayIds, |
__in NvU32 | count | ||
) |
DESCRIPTION: This API is used to restore the display configuration, that was changed by calling NvAPI_DISP_TryCustomDisplay(). This function must be called only after a custom display configuration is tested on the hardware, using NvAPI_DISP_TryCustomDisplay(), otherwise no action is taken. On Vista, NvAPI_DISP_RevertCustomDisplayTrial should be called with an active display that was affected during the NvAPI_DISP_TryCustomDisplay() call, per GPU.
SUPPORTED OS: Windows 7 and higher
[in] | pDisplayIds | Pointer to display Id, of an active display. |
[in] | count | Total number of incoming Display IDs. For future use only. Currently it is expected to be passed as 1. |
NVAPI_INTERFACE NvAPI_DISP_SaveCustomDisplay | ( | __in_ecount(count) NvU32 * | pDisplayIds, |
__in NvU32 | count, | ||
__in NvU32 | isThisOutputIdOnly, | ||
__in NvU32 | isThisMonitorIdOnly | ||
) |
DESCRIPTION: This function saves the current hardware display configuration on the specified Display IDs as a custom display configuration. This function should be called right after NvAPI_DISP_TryCustomDisplay() to save the custom display from the current hardware context. This function will not do anything if the custom display configuration is not tested on the hardware.
SUPPORTED OS: Windows 7 and higher
[in] | pDisplayIds | Array of Dispaly IDs on which custom display configuration is to be saved. |
[in] | count | Total number of the incoming Dispaly IDs. This is for the multi-head support. |
[in] | isThisOutputIdOnly | If set, the saved custom display will only be applied on the monitor with the same outputId (see NvAPI Handles). |
[in] | isThisMonitorIdOnly | If set, the saved custom display will only be applied on the monitor with the same EDID ID or the same TV connector in case of analog TV. |
NVAPI_INVALID_DISPLAY_ID | Custom Timing is not supported on the Display, whose display id is passed |
NvAPI_DISP_SetAdaptiveSyncData | ( | __in NvU32 | displayId, |
__in NV_SET_ADAPTIVE_SYNC_DATA * | pAdaptiveSyncData | ||
) |
NVAPI_INTERFACE NvAPI_DISP_SetDisplayConfig | ( | __in NvU32 | pathInfoCount, |
__in_ecount(pathInfoCount) NV_DISPLAYCONFIG_PATH_INFO * | pathInfo, | ||
__in NvU32 | flags | ||
) |
DESCRIPTION: This API lets caller apply a global display configuration across multiple GPUs.
If all sourceIds are zero, then NvAPI will pick up sourceId's based on the following criteria :
SUPPORTED OS: Windows 7 and higher
[in] | pathInfoCount | Number of supplied elements in pathInfo |
[in] | pathInfo | Array of path information |
[in] | flags | A bitwise OR of supported flags from NV_DISPLAYCONFIG_FLAGS. |
NVAPI_OK | - completed request |
NVAPI_API_NOT_INTIALIZED | - NVAPI not initialized |
NVAPI_ERROR | - miscellaneous error occurred |
NVAPI_INVALID_ARGUMENT | - Invalid input parameter. |
NVAPI_INTERFACE NvAPI_DISP_SetPreferredStereoDisplay | ( | __in NV_SET_PREFERRED_STEREO_DISPLAY * | pPreferredStereoDisplay | ) |
DESCRIPTION: Specifies a display output that drives the 3pin DIN output signal in a workstation stereo system environment. If display output is specified as a displayId of 0, the preferred stereo display target is reset to the driver default selection.
SUPPORTED OS: Windows 10 and higher
[in] | pPreferredStereoDisplay | Pointer to a NV_SET_PREFERRED_STEREO_DISPLAY structure |
NVAPI_OK | completed request |
NVAPI_ERROR | miscellaneous error occurred |
NVAPI_INVALID_ARGUMENT | Invalid input parameter. |
NVAPI_INVALID_USER_PRIVILEGE | - The application will require Administrator privileges to access this API. The application can be elevated to a higher permission level by selecting "Run as Administrator". |
NvAPI_DISP_SetVirtualRefreshRateData | ( | __in NvU32 | displayId, |
__in NV_SET_VIRTUAL_REFRESH_RATE_DATA * | pVirtualRefreshRateData | ||
) |
NVAPI_INTERFACE NvAPI_DISP_TryCustomDisplay | ( | __in_ecount(count) NvU32 * | pDisplayIds, |
__in NvU32 | count, | ||
__in_ecount(count) NV_CUSTOM_DISPLAY * | pCustDisp | ||
) |
DESCRIPTION: This API is used to set up a custom display without saving the configuration on multiple displays.
SUPPORTED OS: Windows 7 and higher
[in] | pDisplayIds | Array of the target display Dispaly IDs - See NvAPI Handles. |
[in] | count | Total number of the incoming Display IDs and corresponding NV_CUSTOM_DISPLAY structure. This is for the multi-head support. |
[in] | pCustDisp | Pointer to the NV_CUSTOM_DISPLAY structure array. |
NVAPI_INVALID_DISPLAY_ID | Custom Timing is not supported on the Display, whose display id is passed |
NVAPI_INTERFACE NvAPI_EnableHWCursor | ( | NvDisplayHandle | hNvDisplay | ) |
This function enables hardware cursor support
SUPPORTED OS: Windows XP
NVAPI_INTERFACE NvAPI_GetAssociatedDisplayOutputId | ( | NvDisplayHandle | hNvDisplay, |
NvU32 * | pOutputId | ||
) |
This function gets the active outputId associated with the display handle.
SUPPORTED OS: Windows 7 and higher
[in] | hNvDisplay | NVIDIA Display selection. It can be NVAPI_DEFAULT_HANDLE or a handle enumerated from NvAPI_EnumNVidiaDisplayHandle(). |
[out] | outputId | The active display output ID associated with the selected display handle hNvDisplay. The outputid will have only one bit set. In the case of Clone or Span mode, this will indicate the display outputId of the primary display that the GPU is driving. See NvAPI Handles. |
NVAPI_OK | Call successful. |
NVAPI_NVIDIA_DEVICE_NOT_FOUND | No NVIDIA GPU driving a display was found. |
NVAPI_EXPECTED_DISPLAY_HANDLE | hNvDisplay is not a valid display handle. |
NVAPI_INTERFACE NvAPI_GetAssociatedNvidiaDisplayName | ( | NvDisplayHandle | NvDispHandle, |
NvAPI_ShortString | szDisplayName | ||
) |
For a given NVIDIA display handle, this function returns a string (such as "\\.\DISPLAY1") to identify the display.
SUPPORTED OS: Windows 7 and higher
NVAPI_INVALID_ARGUMENT | Either argument is NULL |
NVAPI_OK | *pNvDispHandle is now valid |
NVAPI_NVIDIA_DEVICE_NOT_FOUND | No NVIDIA device maps to that display name |
NVAPI_INTERFACE NvAPI_GetDisplayPortInfo | ( | __in_opt NvDisplayHandle | hNvDisplay, |
__in NvU32 | outputId, | ||
__inout NV_DISPLAY_PORT_INFO * | pInfo | ||
) |
NVAPI_INTERFACE NvAPI_GetHDMISupportInfo | ( | __in_opt NvDisplayHandle | hNvDisplay, |
__in NvU32 | outputId, | ||
__inout NV_HDMI_SUPPORT_INFO * | pInfo | ||
) |
NVAPI_INTERFACE NvAPI_GetSupportedViews | ( | NvDisplayHandle | hNvDisplay, |
NV_TARGET_VIEW_MODE * | pTargetViews, | ||
NvU32 * | pViewCount | ||
) |
This API lets caller enumerate all the supported NVIDIA display views - nView and Dualview modes.
SUPPORTED OS: Windows 7 and higher
[in] | hNvDisplay | NVIDIA Display selection. It can be NVAPI_DEFAULT_HANDLE or a handle enumerated from NvAPI_EnumNVidiaDisplayHandle(). |
[out] | pTargetViews | Array of supported views. Can be NULL to retrieve the pViewCount first. |
[in,out] | pViewCount | Count of supported views. |
NVAPI_OK | Completed request |
NVAPI_ERROR | Miscellaneous error occurred |
NVAPI_INVALID_ARGUMENT | Invalid input parameter. |
NVAPI_INTERFACE NvAPI_GetUnAttachedAssociatedDisplayName | ( | NvUnAttachedDisplayHandle | hNvUnAttachedDisp, |
NvAPI_ShortString | szDisplayName | ||
) |
This function returns the display name given, for example, "\\DISPLAY1", using the unattached NVIDIA display handle
SUPPORTED OS: Windows 7 and higher
NVAPI_INVALID_ARGUMENT | Either argument is NULL |
NVAPI_OK | *pNvDispHandle is now valid |
NVAPI_NVIDIA_DEVICE_NOT_FOUND | No NVIDIA device maps to that display name |
NVAPI_INTERFACE NvAPI_GetVBlankCounter | ( | NvDisplayHandle | hNvDisplay, |
NvU32 * | pCounter | ||
) |
This function gets the V-blank counter
SUPPORTED OS: Windows 7 and higher
NVAPI_INTERFACE NvAPI_SetDisplayPort | ( | NvDisplayHandle | hNvDisplay, |
NvU32 | outputId, | ||
NV_DISPLAY_PORT_CONFIG * | pCfg | ||
) |
NVAPI_INTERFACE NvAPI_SetRefreshRateOverride | ( | NvDisplayHandle | hNvDisplay, |
NvU32 | outputsMask, | ||
float | refreshRate, | ||
NvU32 | bSetDeferred | ||
) |
This function overrides the refresh rate on the given display/outputsMask. The new refresh rate can be applied right away in this API call or deferred to be applied with the next OS modeset. The override is good for only one modeset (regardless whether it's deferred or immediate).
SUPPORTED OS: Windows XP
[in] | hNvDisplay | The NVIDIA display handle. It can be NVAPI_DEFAULT_HANDLE or a handle enumerated from NvAPI_EnumNVidiaDisplayHandle(). |
[in] | outputsMask | A set of bits that identify all target outputs which are associated with the NVIDIA display handle to apply the refresh rate override. When SLI is enabled, the outputsMask only applies to the GPU that is driving the display output. |
[in] | refreshRate | The override value. "0.0" means cancel the override. |
[in] | bSetDeferred |
|
NVAPI_INVALID_ARGUMENT | hNvDisplay or outputsMask is invalid |
NVAPI_OK | The refresh rate override is correct set |
NVAPI_ERROR | The operation failed |