Jump to content
vladiii

Title & Class Finder

Recommended Posts

Posted

Un mic programel scris in c care afiseaza titlurile si clasa ferestrelor care ruleaza in momentul de fata. De ce sa utilizati acest tool ? Pt. ca nu mananca memorie. Dezavantaje: nu afiseaza clasa copiilor, doar la "main window" sa zic asa.

Print screen:

ps.JPG

Codul [compilat in Dev-C++]:


//by vladiii
#include <windows.h>
#include <stdio.h>
#include <conio.h>
using namespace std;

BOOL CALLBACK callbackz(HWND hWnd, LPARAM lParam)
{
//Declaram variabilele
char title[500];
char classe[500];

//Preluam titlul + clasa ferestrei dupa handle (hWnd)
GetWindowText(hWnd, title, 256);
GetClassName(hWnd, classe, 256);

//Comparam titlul cu ""
if(strcmp(title, "") != 0) {
//Afisam titlul ferestrei si clasa !
printf("Numele ferestrei este: %s", title);
printf(" ; Clasa este : %s\n\n", classe);
}
return TRUE;
}

int main() {
//Apelam functia callback
EnumWindows(callbackz, 0);
getch();
return 0;
}

Bafta !

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...