For some reason, whether I used the NV_BOARD_INFO or NV_BOARD_INFO_V1 structure for the NvAPI_GPU_GetBoardInfo method, I keep getting the NVAPI_INCOMPATIBLE_STRUCT_VERSION API error. Any ideas on what I am doing wrong. Is it because I did not fully instantiate the NV_BOARD_INFO struct? Below is a quick code snippet of what I am doing. Code is written in C++/CLI:
NV_BOARD_INFO boardInfo; // variable to store the graphics card info
// get the graphics card information for the selected GPU
m_apiStatus = NvAPI_GPU_GetBoardInfo(m_ptrPhysicalHandlers[physHandlerNum], &boardInfo);
// check if the API successfully obtained information for the graphics card
if (m_apiStatus == NVAPI_OK)
{
// the API was successful
// store the board serial number
return gcnew String((const char*)boardInfo.BoardNum);
}
else
{
// let the user know an error occurred with the API
throw gcnew Exception(GetApiErrMsg(m_apiStatus));
}