2023-09-05 21:46:18 +02:00
|
|
|
|
using System.Runtime.InteropServices;
|
2022-11-15 23:40:54 +01:00
|
|
|
|
|
|
|
|
|
|
namespace CommonHelpers
|
|
|
|
|
|
{
|
|
|
|
|
|
public enum FanMode : uint
|
|
|
|
|
|
{
|
|
|
|
|
|
Default = 17374,
|
2023-09-02 11:29:32 +02:00
|
|
|
|
Silent,
|
2022-11-15 23:40:54 +01:00
|
|
|
|
SteamOS,
|
|
|
|
|
|
Max
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2022-11-26 20:09:30 +01:00
|
|
|
|
public enum KernelDriversLoaded : uint
|
|
|
|
|
|
{
|
|
|
|
|
|
Yes = 4363232,
|
|
|
|
|
|
No
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2022-11-15 23:40:54 +01:00
|
|
|
|
public enum OverlayMode : uint
|
|
|
|
|
|
{
|
|
|
|
|
|
FPS = 10032,
|
2022-11-16 20:39:21 +01:00
|
|
|
|
FPSWithBattery,
|
2025-06-10 17:47:58 +02:00
|
|
|
|
Battery,
|
2022-11-15 23:40:54 +01:00
|
|
|
|
Minimal,
|
|
|
|
|
|
Detail,
|
|
|
|
|
|
Full
|
|
|
|
|
|
}
|
2022-11-16 00:33:23 +01:00
|
|
|
|
|
|
|
|
|
|
public enum OverlayEnabled : uint
|
|
|
|
|
|
{
|
|
|
|
|
|
Yes = 378313,
|
|
|
|
|
|
No
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2022-11-20 15:42:21 +01:00
|
|
|
|
public enum PowerControlVisible : uint
|
|
|
|
|
|
{
|
|
|
|
|
|
Yes = 371313,
|
|
|
|
|
|
No
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2022-11-16 00:33:23 +01:00
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
|
|
|
|
public struct FanModeSetting
|
|
|
|
|
|
{
|
|
|
|
|
|
public FanMode Current, Desired;
|
2022-11-26 20:09:30 +01:00
|
|
|
|
public KernelDriversLoaded KernelDriversLoaded;
|
2022-11-16 00:33:23 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
|
|
|
|
public struct OverlayModeSetting
|
|
|
|
|
|
{
|
|
|
|
|
|
public OverlayMode Current, Desired;
|
|
|
|
|
|
public OverlayEnabled CurrentEnabled, DesiredEnabled;
|
2022-11-26 20:09:30 +01:00
|
|
|
|
public KernelDriversLoaded KernelDriversLoaded;
|
|
|
|
|
|
public KernelDriversLoaded DesiredKernelDriversLoaded;
|
2022-11-16 00:33:23 +01:00
|
|
|
|
}
|
2022-11-20 15:42:21 +01:00
|
|
|
|
|
|
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
|
|
|
|
public struct PowerControlSetting
|
|
|
|
|
|
{
|
|
|
|
|
|
public PowerControlVisible Current;
|
|
|
|
|
|
}
|
2022-11-25 21:28:43 +01:00
|
|
|
|
|
|
|
|
|
|
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
|
|
|
|
|
|
public struct SteamControllerSetting
|
|
|
|
|
|
{
|
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)]
|
|
|
|
|
|
public String CurrentProfile;
|
|
|
|
|
|
|
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 2048)]
|
|
|
|
|
|
public String SelectableProfiles;
|
|
|
|
|
|
|
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)]
|
|
|
|
|
|
public String DesiredProfile;
|
|
|
|
|
|
}
|
2022-11-15 23:40:54 +01:00
|
|
|
|
}
|