mirror of
https://github.com/Maassoft/ColorControl.git
synced 2026-10-21 16:12:18 -05:00
add Nvidia overclocking options, integrate NvAPIWrapper/NvidiaML to enable and extend overclocking (curve), some other fixes
This commit is contained in:
1 parent
1c5095777c
commit
7fcf154601
352 files changed
+37643
-144
No files matched your search
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using NvAPIWrapper.Native.General;
|
||||
|
||||
namespace NvAPIWrapper.Native.Exceptions
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents errors that raised by NVIDIA Api
|
||||
/// </summary>
|
||||
public class NVIDIAApiException : Exception
|
||||
{
|
||||
internal NVIDIAApiException(Status status)
|
||||
{
|
||||
Status = status;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override string Message
|
||||
{
|
||||
get => GeneralApi.GetErrorMessage(Status) ?? Status.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets NVIDIA Api exception status code
|
||||
/// </summary>
|
||||
public Status Status { get; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
|
||||
namespace NvAPIWrapper.Native.Exceptions
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents errors that raised by NvAPIWrapper
|
||||
/// </summary>
|
||||
public class NVIDIANotSupportedException : NotSupportedException
|
||||
{
|
||||
internal NVIDIANotSupportedException(string message) : base(message)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user