Experimental GPU overclock

This commit is contained in:
Serge
2023-05-06 14:40:52 +02:00
parent 8e1099545a
commit c61f4d1608
497 changed files with 46937 additions and 232 deletions

View File

@@ -0,0 +1,29 @@
using System.Runtime.InteropServices;
using NvAPIWrapper.Native.Interfaces;
namespace NvAPIWrapper.Native.General.Structures
{
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
internal struct GenericString : IInitializable
{
public const int GenericStringLength = 4096;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = GenericStringLength)]
private readonly string _Value;
public string Value
{
get => _Value;
}
public GenericString(string value)
{
_Value = value ?? string.Empty;
}
public override string ToString()
{
return Value;
}
}
}