
@luizimloko , did you really used classes? I found the function, now I'm trying to change the color.
#define ADDR_GLOWCOLOR //Find it yourself ...
#define ADDR_FORCEGLOW //Find it yourself ...
#define OFFSET_GLOW //Find it yourself ...
#define OFFSET_COLOR //Find it yourself ...
void getGlowTargetByIndex( __int32 iIndex, DWORD *dwTargetBuffer )
{
__asm
{
mov esi, iIndex
mov edx, ADDR_FORCEGLOW
mov ecx, [ esi + edx + OFFSET_GLOW ]
mov eax, [ dwTargetBuffer ]
mov [ eax ], ecx
}
}
__declspec( noinline ) int setGlowColor( DWORD dwTarget, BYTE bActive, BYTE r, BYTE g, BYTE b )
{
__asm
{
movzx eax, b
push eax
movzx eax, g
push eax
movzx eax, r
push eax
movzx eax, bActive
push eax
mov esi, dwTarget
mov eax, [ esi + OFFSET_COLOR ]
push eax
call ADDR_GLOWCOLOR
}
}
void forceGlow( void )
{
DWORD dwGlowTarget = 0;
for( int i = 0; i < 16; i++ )
{
getGlowTargetByIndex( i, &dwGlowTarget );
if( dwGlowTarget != 0 )
setGlowColor( dwGlowTarget, 1, 255, 000, 000 );
}
}
