Jump to content
Corsair Community

Creating our own plugin


Guibi1

Recommended Posts

Im currently coding my own plugin to control my GPU via iCue.

If you have experience on reverse engineer, pls dm or post. Here is what i have for now if you want to take a look :

 

#include <iostream>

#include <Windows.h>

 

 

typedef int (*CorsairPluginGetAPIVersion)(void);

typedef void* (*CorsairPluginGetInstance)(void);

typedef int (*CorsairPluginGetFeatures)(void);

typedef void (__cdecl *CorsairPluginFreeInstance)(void* _Memory);

 

int main()

{

CorsairPluginGetAPIVersion ProcAdd;

 

SetDllDirectory(L"D:\\Programmes\\Corsair\\CORSAIR iCUE Software");

HMODULE hmod = LoadLibrary(L"asus_motherboard_plugin.dll");

 

if (hmod != NULL)

{

CorsairPluginGetAPIVersion GetAPIVersion = (CorsairPluginGetAPIVersion)GetProcAddress(hmod, "CorsairPluginGetAPIVersion");

CorsairPluginGetInstance GetInstance = (CorsairPluginGetInstance)GetProcAddress(hmod, "CorsairPluginGetInstance");

CorsairPluginGetFeatures GetFeatures = (CorsairPluginGetFeatures)GetProcAddress(hmod, "CorsairPluginGetFeatures");

CorsairPluginFreeInstance FreeInstance = (CorsairPluginFreeInstance)GetProcAddress(hmod, "CorsairPluginFreeInstance");

void* instance = GetInstance();

 

std::cout << "Corsair Plugin Get API Version : " << GetAPIVersion() << std::endl;

std::cout << "Corsair Plugin Get Instance : " << instance << std::endl;

std::cout << "Corsair Plugin Get Features : " << GetFeatures() << std::endl;

FreeInstance(instance);

 

FreeLibrary(hmod);

}

 

else

std::cout << "Error : " << GetLastError();

 

return 0;

}

 

I will post update on my code later on.

Edited by Guibi1
clarifing
Link to comment
Share on other sites

  • 2 months later...
  • 2 months later...
Im currently coding my own plugin to control my GPU via iCue.

 

Have you ever tryed JackNet RGB? They even have a stick post somewhere here in the forums. I use it to control all my aura stuff (motherboard, AIO, LED stripes and 7 (yes, seven) RGB fans). All, except for the motherboard, are 5v adressable RGB and it works pretty much flawlessly.

Link to comment
Share on other sites

×
×
  • Create New...