mirror of
https://github.com/DarthAffe/CUE.NET.git
synced 2025-12-13 00:58:31 +00:00
Fixed DllImport
This commit is contained in:
parent
531a68fa06
commit
a4a81cf3c3
@ -8,72 +8,72 @@ namespace CUE.NET.Native
|
|||||||
internal static class _CUESDK
|
internal static class _CUESDK
|
||||||
{
|
{
|
||||||
#if WIN64
|
#if WIN64
|
||||||
[DllImport("CUESDK.x64_2013.dll")]
|
[DllImport("CUESDK.x64_2013.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||||
#else
|
#else
|
||||||
[DllImport("CUESDK_2013.dll")]
|
[DllImport("CUESDK_2013.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||||
#endif
|
#endif
|
||||||
// set specified leds to some colors. The color is retained until changed by successive calls. This function does not take logical layout into account
|
// set specified leds to some colors. The color is retained until changed by successive calls. This function does not take logical layout into account
|
||||||
public static extern bool CorsairSetLedsColors(int size, IntPtr ledsColors);
|
public static extern bool CorsairSetLedsColors(int size, IntPtr ledsColors);
|
||||||
|
|
||||||
//#if WIN64
|
//#if WIN64
|
||||||
// [DllImport("CUESDK.x64_2013.dll")]
|
// [DllImport("CUESDK.x64_2013.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||||
//#else
|
//#else
|
||||||
// [DllImport("CUESDK_2013.dll")]
|
// [DllImport("CUESDK_2013.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||||
//#endif
|
//#endif
|
||||||
//public static extern bool CorsairSetLedsColorsAsync(int size, CorsairLedColor* ledsColors, void(*CallbackType)(void*, bool, CorsairError), void* context);
|
//public static extern bool CorsairSetLedsColorsAsync(int size, CorsairLedColor* ledsColors, void(*CallbackType)(void*, bool, CorsairError), void* context);
|
||||||
|
|
||||||
#if WIN64
|
#if WIN64
|
||||||
[DllImport("CUESDK.x64_2013.dll")]
|
[DllImport("CUESDK.x64_2013.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||||
#else
|
#else
|
||||||
[DllImport("CUESDK_2013.dll")]
|
[DllImport("CUESDK_2013.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||||
#endif
|
#endif
|
||||||
// returns number of connected Corsair devices that support lighting control.
|
// returns number of connected Corsair devices that support lighting control.
|
||||||
public static extern int CorsairGetDeviceCount();
|
public static extern int CorsairGetDeviceCount();
|
||||||
|
|
||||||
#if WIN64
|
#if WIN64
|
||||||
[DllImport("CUESDK.x64_2013.dll")]
|
[DllImport("CUESDK.x64_2013.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||||
#else
|
#else
|
||||||
[DllImport("CUESDK_2013.dll")]
|
[DllImport("CUESDK_2013.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||||
#endif
|
#endif
|
||||||
// returns information about device at provided index
|
// returns information about device at provided index
|
||||||
public static extern IntPtr CorsairGetDeviceInfo(int deviceIndex);
|
public static extern IntPtr CorsairGetDeviceInfo(int deviceIndex);
|
||||||
|
|
||||||
#if WIN64
|
#if WIN64
|
||||||
[DllImport("CUESDK.x64_2013.dll")]
|
[DllImport("CUESDK.x64_2013.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||||
#else
|
#else
|
||||||
[DllImport("CUESDK_2013.dll")]
|
[DllImport("CUESDK_2013.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||||
#endif
|
#endif
|
||||||
// provides list of keyboard LEDs with their physical positions.
|
// provides list of keyboard LEDs with their physical positions.
|
||||||
public static extern IntPtr CorsairGetLedPositions();
|
public static extern IntPtr CorsairGetLedPositions();
|
||||||
|
|
||||||
#if WIN64
|
#if WIN64
|
||||||
[DllImport("CUESDK.x64_2013.dll")]
|
[DllImport("CUESDK.x64_2013.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||||
#else
|
#else
|
||||||
[DllImport("CUESDK_2013.dll")]
|
[DllImport("CUESDK_2013.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||||
#endif
|
#endif
|
||||||
// retrieves led id for key name taking logical layout into account.
|
// retrieves led id for key name taking logical layout into account.
|
||||||
public static extern CorsairLedId CorsairGetLedIdForKeyName(char keyName);
|
public static extern int CorsairGetLedIdForKeyName(char keyName);
|
||||||
|
|
||||||
#if WIN64
|
#if WIN64
|
||||||
[DllImport("CUESDK.x64_2013.dll")]
|
[DllImport("CUESDK.x64_2013.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||||
#else
|
#else
|
||||||
[DllImport("CUESDK_2013.dll")]
|
[DllImport("CUESDK_2013.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||||
#endif
|
#endif
|
||||||
// requestes control using specified access mode. By default client has shared control over lighting so there is no need to call CorsairRequestControl unless client requires exclusive control
|
// requestes control using specified access mode. By default client has shared control over lighting so there is no need to call CorsairRequestControl unless client requires exclusive control
|
||||||
public static extern bool CorsairRequestControl(CorsairAccessMode accessMode);
|
public static extern bool CorsairRequestControl(CorsairAccessMode accessMode);
|
||||||
|
|
||||||
#if WIN64
|
#if WIN64
|
||||||
[DllImport("CUESDK.x64_2013.dll")]
|
[DllImport("CUESDK.x64_2013.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||||
#else
|
#else
|
||||||
[DllImport("CUESDK_2013.dll")]
|
[DllImport("CUESDK_2013.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||||
#endif
|
#endif
|
||||||
// checks file and protocol version of CUE to understand which of SDK functions can be used with this version of CUE
|
// checks file and protocol version of CUE to understand which of SDK functions can be used with this version of CUE
|
||||||
public static extern _CorsairProtocolDetails CorsairPerformProtocolHandshake();
|
public static extern _CorsairProtocolDetails CorsairPerformProtocolHandshake();
|
||||||
|
|
||||||
#if WIN64
|
#if WIN64
|
||||||
[DllImport("CUESDK.x64_2013.dll")]
|
[DllImport("CUESDK.x64_2013.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||||
#else
|
#else
|
||||||
[DllImport("CUESDK_2013.dll")]
|
[DllImport("CUESDK_2013.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||||
#endif
|
#endif
|
||||||
// returns last error that occured while using any of Corsair* functions
|
// returns last error that occured while using any of Corsair* functions
|
||||||
public static extern CorsairError CorsairGetLastError();
|
public static extern CorsairError CorsairGetLastError();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user