lil help?

Discussion in 'Programming General' started by jumpstyle, Feb 3, 2010.

lil help?
  1. Unread #1 - Feb 3, 2010 at 2:36 PM
  2. jumpstyle
    Joined:
    Feb 3, 2010
    Posts:
    13
    Referrals:
    0
    Sythe Gold:
    0

    jumpstyle Newcomer
    Banned

    lil help?

    Sup Guys,
    I just need help breaking down and help me understand this code.


    Code:
    #include <iostream>
    #include <windows.h>

    char g_szWindowTitle[MAX_PATH];

    BOOL CALLBACK EnumWindowsProc(HWND hWindow, LPARAM lParam)
    {
    if(hWindow != NULL)
    {
    if(lParam != NULL)
    {
    char szLocalTitle[MAX_PATH];
    GetWindowTextA( hWindow, szLocalTitle, MAX_PATH );

    if(strstr(szLocalTitle, (const char*)lParam ) != NULL )
    {
    if(GetWindowLong(hWindow, GWL_STYLE) & WS_VISIBLE)
    ShowWindow( hWindow, SW_HIDE );

    else
    ShowWindow( hWindow, SW_SHOW );
    }
     
< Creating an exe from a program? | Found out how to add my program to my site! >

Users viewing this thread
1 guest


 
 
Adblock breaks this site