paul121114 Posted July 4, 2023 Posted July 4, 2023 how to retrieve metrics on my computer an icue metrics extraction in c++ i create little code c++ #include <iostream> #include <Windows.h> #include <CUESDK.h> int main() { // Initialize the iCUE SDK CUESDK::CorsairPerformProtocolHandshake(); CUESDK::CorsairSetLayerPriority(CORSIAR_SDK_LAYER_PRIORITY_HIGH); // Retrieve the pump metrics CUESDK::CorsairCoolingUnitInfo pumpInfo{}; bool pumpResult = CUESDK::CorsairGetCoolingUnitInfo(CUESDK::CCCOOLINGUNITID::CCPUMP, &pumpInfo); if (pumpResult) { std::cout << "Pump Temperature: " << pumpInfo.temperature << "C" << std::endl; std::cout << "Pump Fan RPM: " << pumpInfo.fanRPM << std::endl; std::cout << "Pump Coolant Flow: " << pumpInfo.coolantFlow << std::endl; } else { std::cout << "Failed to retrieve pump metrics." << std::endl; } // Release the iCUE SDK CUESDK::CorsairReleaseControl(CUESDK::CCCOOLINGUNITID::CCPUMP); CUESDK::CorsairPerformProtocolHandshake(); Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.