All pastes #436304 Raw Edit

Mine

public c v1 · immutable
·published 2007-04-12 12:46 UTC
rendered paste body
#include <windows.h>#include <stdio.h>int main( int argc, char *argv[] ){    HWND Window      ;    static int found ;        if( argc < 2 )    {        return 1;    }        printf("[!] Going to find %d Window(s)\n", --argc);    printf("[!] Starting ..\n");    while( *(++argv) )    {        printf("[?] Searching (%s): ", *argv);                Window = FindWindowEx(0, 0, 0, (LPSTR)*argv); // ist eigentlich das selbe, naja, ..                if(Window != NULL)        {            printf("Window found: %d\n", (int)Window);            found += 1;        }        else        {            printf("Window not found!\n");        }    }        printf("[!] Finished\n");    printf("[!] Found %d from %d Window(s)\n", found, argc--);    return 0;}/** * C:\Dokumente und Einstellungen\Zera\Desktop>C:\MinGW\bin\gcc test.c * * C:\Dokumente und Einstellungen\Zera\Desktop>a.exe "test.c - Editor" * [!] Going to find 1 Window(s) * [!] Starting .. * [?] Searching (test.c - Editor): Window found: 2490846 * [!] Finished * [!] Found 1 from 1 Window(s)**/