All pastes #430823 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-04-09 09:14 UTC
rendered paste body
HWND hwndWinamp = FindWindow("Winamp v1.x",NULL); //Finding window
char title[3024],*rTitle; 



void Title()
{ 
    GetWindowText(hwndWinamp, title, 3024);
    rTitle = title+strlen(title)-8;
    while (rTitle >= title)
    {
        
        if (!strnicmp(rTitle,"- Winamp",8)) break;
        rTitle--;
    }
    if (rTitle >= title) rTitle--;
    while (rTitle >= title && *rTitle == ' ') rTitle--;
    *++rTitle=0;
}