Tsuyo's Blog - Home

Hi guys, for my G19 Applet, i also wanted to change the Aero Color. Some guys wanted to know, how it works. Even Google is very quiet in this question here.
Well, this is the code i tried out. Just play with the Values:


[DllImport("dwmapi.dll", EntryPoint = "#127", PreserveSig = false)]
public static extern void DwmGetColorizationParameters(out WDM_COLORIZATION_PARAMS parameters);

[DllImport("dwmapi.dll", EntryPoint = "#131", PreserveSig = false)]
public static extern void DwmSetColorizationParameters(ref WDM_COLORIZATION_PARAMS parameters, int uUnknown);

public struct WDM_COLORIZATION_PARAMS {
    public uint Color1;
    public uint Color2;
    public uint Brightness;
    public uint Saturation;
    public uint Transparency;
    public uint forget1;
    public uint forget2;
}

And here a small Function:


        public void SetColor(Color c, uint Saturation, uint Transparency, uint Brightness) {

            WDM_COLORIZATION_PARAMS a = new WDM_COLORIZATION_PARAMS();
            a.Color1 = (uint)c.ToArgb();
            a.Color2 = (uint)c.ToArgb();
            a.Saturation = Saturation;
            a.Transparency = Transparency;
            a.Brightness = Brightness;
            DwmSetColorizationParameters(ref a, 0);

        }

You can call it with:


SetColor(Color.Red, 155, 133, (uint)Color.Red.GetBrightness());

That’s it.

Have fun.


My fancy G19 :) 22.07.2010

I wrote an application to change the light of my G19. Now it flashes to the bass of winamp.


GLigth 05.07.2010

Yo, i got my G19 today.
I wrote a small C# Dll, to change the Light of the G19, G13 (Thanks to BoJan), and the G15.
Its very simple to use.
Written in C# .NET2.0
Thanks again to BoJan for his small example in his thread :)

If you use this Library, please leave a Comment in your Application and link to “Tsuyo.de” you are also allowed to “Compile in” the Library into your Application.
If you want to know how it works -> Decompile it.

[url]http://tsuyo.de/files/GLight.rar[/url]

Have fun :)


G19 \o/ 27.06.2010

Tomorrow i will get my G19. Stay ready for new Applets :D


Hurricane Festival! 16.06.2010

I bought a ticket today, Rock on!