请教DllCall调用nvcpl.dll显卡温度返回0度问题
DllCall调用nvcpl.dll显卡温度返回0度问题,请教大侠指点!!用的是Win10 64位系统
$dll = DllOpen("nvcpl.dll")
$result = DllCall($dll,"int:cdecl", "NvCplGetThermalSettings", "INT",0, "DWORD*", "pdwCoreTemp", "DWORD*", "pdwAmbientTemp", "DWORD*", "pdwUpperLimit")
If @error then msgbox(0,"","ERROR")
MsgBox(4096, "Test", $result)
DllClose($dll)
英伟达文档中API函数是这样的.
Function BOOL CDECL NvCplGetThermalSettings(IN UINT nWindowsMonitorNumber,
Prototype OUT DWORD* pdwCoreTemp,
OUT DWORD* pdwAmbientTemp,
OUT DWORD* pdwUpperLimit);
Parameters In UINT nWindowsMonitorNumber -- The display number shown on
the Windows Display Properties->Settings page.
A value of 0 indicates the current primary Windows display device.
DWORD* must be a valid pointer --
pdwCoreTemp -- GPU temperature in degrees Celsius.
pdwAmbientTemp -- Ambient temperature in degrees Celsius.
pdwUpperLimit -- Upper limit of the GPU temperature specification.
Return Values True on success.
False on failure. http://stackoverflow.com/questions/25376080/nvcplgetthermalsettings-call-to-nvcpl-dll-returns-false-c $result = DllCall($dll, "int:cdecl", "NvCplGetThermalSettings", "int", 0, "long*", '', "long*", "", "long*", "")
MsgBox(4096, "Test", $result)
这样还是返回0{:face (460):}
怎么也不行,希望大侠能指点!感激不尽。 回复 2# ceoguang
非常感谢!!!
不知道能不能AU3直接调NVCPL.DLL文件得到显卡温度! 回复 4# mgj8721
我上面发的那个就可以获取.nvcpl的话总是返回false 回复 5# ceoguang
ceoguang :
帮忙指点,不知道如何转成AU3,非常感谢了!
页:
[1]