Fixed an EntryPointNotFoundException in the NVAPI wrapper:
System.EntryPointNotFoundException: Não é possível localizar um ponto de entrada denominado 'nvapi_QueryInterface' na DLL 'nvapi.dll'. em PInvokeDelegateFactoryInternalWrapperType38.nvapi_QueryInterface(UInt32 id) em OpenHardwareMonitor.Hardware.Nvidia.NVAPI.GetDelegate[T](UInt32 id, T& newDelegate) em OpenHardwareMonitor.Hardware.Nvidia.NVAPI..cctor()
This commit is contained in:
@@ -236,6 +236,7 @@ namespace OpenHardwareMonitor.Hardware.Nvidia {
|
||||
try {
|
||||
GetDelegate(0x0150E828, out NvAPI_Initialize);
|
||||
} catch (DllNotFoundException) { return; }
|
||||
catch (EntryPointNotFoundException) { return; }
|
||||
catch (ArgumentNullException) { return; }
|
||||
|
||||
if (NvAPI_Initialize() == NvStatus.OK) {
|
||||
|
||||
Reference in New Issue
Block a user