MCPcopy Create free account
hub / github.com/3Shain/dxmt / NvAPI_GetDisplayDriverVersion

Function NvAPI_GetDisplayDriverVersion

src/nvapi/nvapi.cpp:52–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52NVAPI_INTERFACE
53NvAPI_GetDisplayDriverVersion(NvDisplayHandle hNvDisplay, NV_DISPLAY_DRIVER_VERSION *pVersion) {
54 std::string build_str = std::format("r{}_000", NVAPI_SDK_VERSION);
55 std::string adapter_str = "NVIDIA GeForce RTX";
56
57 if (!pVersion)
58 return NVAPI_INVALID_ARGUMENT;
59
60 if (pVersion->version != NV_DISPLAY_DRIVER_VERSION_VER)
61 return NVAPI_INCOMPATIBLE_STRUCT_VERSION;
62
63 pVersion->drvVersion = 99999;
64 pVersion->bldChangeListNum = 0;
65 memcpy(pVersion->szBuildBranchString, build_str.c_str(), build_str.size());
66 memcpy(pVersion->szAdapterString, adapter_str.c_str(), adapter_str.size());
67
68 return NVAPI_OK;
69}
70
71NVAPI_INTERFACE
72NvAPI_GetInterfaceVersionString(NvAPI_ShortString szDesc) {

Callers

nothing calls this directly

Calls 2

formatFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected