|
Sunshine master
Self-hosted game stream host for Moonlight.
|
Definitions for the NVAPI wrapper. More...
#include <map>#include "driver_settings.h"#include "nvprefs_common.h"#include <nvapi_interface.h>Macros | |
| #define | NVAPI_INTERFACE NvAPI_Status __cdecl |
| Macro for NVAPI INTERFACE. | |
Functions | |
| NvAPI_Status __cdecl | NvAPI_DRS_CreateApplication (NvDRSSessionHandle hSession, NvDRSProfileHandle hProfile, NVDRS_APPLICATION *pApplication) |
| Forward NvAPI_DRS_CreateApplication to the loaded NVAPI DLL. | |
| NvAPI_Status __cdecl | NvAPI_DRS_CreateProfile (NvDRSSessionHandle hSession, NVDRS_PROFILE *pProfileInfo, NvDRSProfileHandle *phProfile) |
| Forward NvAPI_DRS_CreateProfile to the loaded NVAPI DLL. | |
| NvAPI_Status __cdecl | NvAPI_DRS_CreateSession (NvDRSSessionHandle *phSession) |
| Forward NvAPI_DRS_CreateSession to the loaded NVAPI DLL. | |
| NvAPI_Status __cdecl | NvAPI_DRS_DeleteProfileSetting (NvDRSSessionHandle hSession, NvDRSProfileHandle hProfile, NvU32 settingId) |
| Forward NvAPI_DRS_DeleteProfileSetting to the loaded NVAPI DLL. | |
| NvAPI_Status __cdecl | NvAPI_DRS_DestroySession (NvDRSSessionHandle hSession) |
| Forward NvAPI_DRS_DestroySession to the loaded NVAPI DLL. | |
| NvAPI_Status __cdecl | NvAPI_DRS_FindProfileByName (NvDRSSessionHandle hSession, NvAPI_UnicodeString profileName, NvDRSProfileHandle *phProfile) |
| Forward NvAPI_DRS_FindProfileByName to the loaded NVAPI DLL. | |
| NvAPI_Status __cdecl | NvAPI_DRS_GetApplicationInfo (NvDRSSessionHandle hSession, NvDRSProfileHandle hProfile, NvAPI_UnicodeString appName, NVDRS_APPLICATION *pApplication) |
| Forward NvAPI_DRS_GetApplicationInfo to the loaded NVAPI DLL. | |
| NvAPI_Status __cdecl | NvAPI_DRS_GetBaseProfile (NvDRSSessionHandle hSession, NvDRSProfileHandle *phProfile) |
| Forward NvAPI_DRS_GetBaseProfile to the loaded NVAPI DLL. | |
| NvAPI_Status __cdecl | NvAPI_DRS_GetSetting (NvDRSSessionHandle hSession, NvDRSProfileHandle hProfile, NvU32 settingId, NVDRS_SETTING *pSetting) |
| Forward NvAPI_DRS_GetSetting to the loaded NVAPI DLL. | |
| NvAPI_Status __cdecl | NvAPI_DRS_LoadSettings (NvDRSSessionHandle hSession) |
| Forward NvAPI_DRS_LoadSettings to the loaded NVAPI DLL. | |
| NvAPI_Status __cdecl | NvAPI_DRS_SaveSettings (NvDRSSessionHandle hSession) |
| Forward NvAPI_DRS_SaveSettings to the loaded NVAPI DLL. | |
| NvAPI_Status __cdecl | NvAPI_DRS_SetSetting (NvDRSSessionHandle hSession, NvDRSProfileHandle hProfile, NVDRS_SETTING *pSetting) |
| Forward NvAPI_DRS_SetSetting to the loaded NVAPI DLL. | |
| NvAPI_Status __cdecl | NvAPI_GetErrorMessage (NvAPI_Status nr, NvAPI_ShortString szDesc) |
| Forward NvAPI_GetErrorMessage to the loaded NVAPI DLL. | |
| NvAPI_Status __cdecl | NvAPI_Initialize () |
| Load NVAPI and resolve the subset of interfaces used by Sunshine. | |
| void *__cdecl | nvapi_QueryInterface (NvU32 id) |
| NVAPI export used to resolve function pointers by interface ID. | |
| NvAPI_Status __cdecl | NvAPI_Unload () |
| Unload NVAPI and clear all resolved interface pointers. | |
Definitions for the NVAPI wrapper.
| NvAPI_Status __cdecl NvAPI_DRS_CreateApplication | ( | NvDRSSessionHandle | hSession, |
| NvDRSProfileHandle | hProfile, | ||
| NVDRS_APPLICATION * | pApplication ) |
Forward NvAPI_DRS_CreateApplication to the loaded NVAPI DLL.
| hSession | DRS session that owns the profile. |
| hProfile | Profile receiving the application entry. |
| pApplication | Application entry to create. |
| NvAPI_Status __cdecl NvAPI_DRS_CreateProfile | ( | NvDRSSessionHandle | hSession, |
| NVDRS_PROFILE * | pProfileInfo, | ||
| NvDRSProfileHandle * | phProfile ) |
Forward NvAPI_DRS_CreateProfile to the loaded NVAPI DLL.
| hSession | DRS session that owns the profile. |
| pProfileInfo | Profile definition to create. |
| phProfile | Output handle for the created profile. |
| NvAPI_Status __cdecl NvAPI_DRS_CreateSession | ( | NvDRSSessionHandle * | phSession | ) |
Forward NvAPI_DRS_CreateSession to the loaded NVAPI DLL.
| phSession | Output handle for the created DRS session. |
| NvAPI_Status __cdecl NvAPI_DRS_DeleteProfileSetting | ( | NvDRSSessionHandle | hSession, |
| NvDRSProfileHandle | hProfile, | ||
| NvU32 | settingId ) |
Forward NvAPI_DRS_DeleteProfileSetting to the loaded NVAPI DLL.
| hSession | DRS session that owns the profile. |
| hProfile | Profile containing the setting. |
| settingId | Setting ID. |
| NvAPI_Status __cdecl NvAPI_DRS_DestroySession | ( | NvDRSSessionHandle | hSession | ) |
Forward NvAPI_DRS_DestroySession to the loaded NVAPI DLL.
| hSession | DRS session handle to destroy. |
| NvAPI_Status __cdecl NvAPI_DRS_FindProfileByName | ( | NvDRSSessionHandle | hSession, |
| NvAPI_UnicodeString | profileName, | ||
| NvDRSProfileHandle * | phProfile ) |
Forward NvAPI_DRS_FindProfileByName to the loaded NVAPI DLL.
| hSession | DRS session to search. |
| profileName | Profile name. |
| phProfile | Output handle for the matched profile. |
| NvAPI_Status __cdecl NvAPI_DRS_GetApplicationInfo | ( | NvDRSSessionHandle | hSession, |
| NvDRSProfileHandle | hProfile, | ||
| NvAPI_UnicodeString | appName, | ||
| NVDRS_APPLICATION * | pApplication ) |
Forward NvAPI_DRS_GetApplicationInfo to the loaded NVAPI DLL.
| hSession | DRS session that owns the profile. |
| hProfile | Profile containing the application entry. |
| appName | App name. |
| pApplication | Output application information. |
| NvAPI_Status __cdecl NvAPI_DRS_GetBaseProfile | ( | NvDRSSessionHandle | hSession, |
| NvDRSProfileHandle * | phProfile ) |
Forward NvAPI_DRS_GetBaseProfile to the loaded NVAPI DLL.
| hSession | DRS session to query. |
| phProfile | Output handle for the base profile. |
| NvAPI_Status __cdecl NvAPI_DRS_GetSetting | ( | NvDRSSessionHandle | hSession, |
| NvDRSProfileHandle | hProfile, | ||
| NvU32 | settingId, | ||
| NVDRS_SETTING * | pSetting ) |
Forward NvAPI_DRS_GetSetting to the loaded NVAPI DLL.
| hSession | DRS session that owns the profile. |
| hProfile | Profile containing the setting. |
| settingId | Setting ID. |
| pSetting | Output setting value. |
| NvAPI_Status __cdecl NvAPI_DRS_LoadSettings | ( | NvDRSSessionHandle | hSession | ) |
Forward NvAPI_DRS_LoadSettings to the loaded NVAPI DLL.
| hSession | DRS session whose settings are loaded. |
| NvAPI_Status __cdecl NvAPI_DRS_SaveSettings | ( | NvDRSSessionHandle | hSession | ) |
Forward NvAPI_DRS_SaveSettings to the loaded NVAPI DLL.
| hSession | DRS session whose settings are saved. |
| NvAPI_Status __cdecl NvAPI_DRS_SetSetting | ( | NvDRSSessionHandle | hSession, |
| NvDRSProfileHandle | hProfile, | ||
| NVDRS_SETTING * | pSetting ) |
Forward NvAPI_DRS_SetSetting to the loaded NVAPI DLL.
| hSession | DRS session that owns the profile. |
| hProfile | Profile receiving the setting. |
| pSetting | Setting value to apply. |
| NvAPI_Status __cdecl NvAPI_GetErrorMessage | ( | NvAPI_Status | nr, |
| NvAPI_ShortString | szDesc ) |
Forward NvAPI_GetErrorMessage to the loaded NVAPI DLL.
| nr | Controller index assigned by the client. |
| szDesc | Output buffer receiving the human-readable error string. |
| NvAPI_Status __cdecl NvAPI_Initialize | ( | ) |
Load NVAPI and resolve the subset of interfaces used by Sunshine.
|
extern |
NVAPI export used to resolve function pointers by interface ID.
| id | NVAPI interface ID from the generated interface table. |
| NvAPI_Status __cdecl NvAPI_Unload | ( | ) |
Unload NVAPI and clear all resolved interface pointers.