Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
NativeMethods.cs
Go to the documentation of this file.
1using System;
3
5
6internal class NativeMethods
7{
8 public const string DLL_NAME = "CUESDK.x64_2019.dll";
9
10 [DllImport("CUESDK.x64_2019.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode)]
11 [return: MarshalAs(UnmanagedType.I1)]
12 public static extern bool CorsairSetLedsColors(int size, [In][Out] CorsairLedColor[] ledsColors);
13
14 [DllImport("CUESDK.x64_2019.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode)]
15 [return: MarshalAs(UnmanagedType.I1)]
16 public static extern bool CorsairSetLedsColorsAsync(int size, [In][Out] CorsairLedColor[] ledsColors, IntPtr callback, IntPtr context);
17
18 [DllImport("CUESDK.x64_2019.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode)]
19 public static extern int CorsairGetDeviceCount();
20
21 [DllImport("CUESDK.x64_2019.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode)]
22 public static extern IntPtr CorsairGetDeviceInfo(int deviceIndex);
23
24 [DllImport("CUESDK.x64_2019.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode)]
25 public static extern IntPtr CorsairGetLedPositions();
26
27 [DllImport("CUESDK.x64_2019.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode)]
28 public static extern IntPtr CorsairGetLedPositionsByDeviceIndex(int deviceIndex);
29
30 [DllImport("CUESDK.x64_2019.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode)]
31 public static extern bool CorsairRequestControl(CorsairAccessMode accessMode);
32
33 [DllImport("CUESDK.x64_2019.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode)]
35
36 [DllImport("CUESDK.x64_2019.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode)]
37 public static extern CorsairError CorsairGetLastError();
38
39 [DllImport("CUESDK.x64_2019.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode)]
40 public static extern bool CorsairReleaseControl(CorsairAccessMode accessMode);
41}
static bool CorsairSetLedsColors(int size, [In][Out] CorsairLedColor[] ledsColors)
static IntPtr CorsairGetLedPositionsByDeviceIndex(int deviceIndex)
static bool CorsairSetLedsColorsAsync(int size, [In][Out] CorsairLedColor[] ledsColors, IntPtr callback, IntPtr context)
static CorsairProtocolDetails CorsairPerformProtocolHandshake()
static bool CorsairRequestControl(CorsairAccessMode accessMode)
static bool CorsairReleaseControl(CorsairAccessMode accessMode)
static IntPtr CorsairGetDeviceInfo(int deviceIndex)