384______________________________________________

6.2   
6.2.1    

    .    -
  . API Windows   , -
   .      -
 .        
.

     FindWindow,   :

HWND FindWindow(const char *lpClassName, const char *lpWindowName);

 IpCIassName       ,
  .  IpWindowName     
  ,    (  Caption ,
    ).     NULL,  
,         .

   ,     , 
      .     NULL.

   ,       
,      ,   
,         .   
, ,   

HWND  = FindWindow("TFormI"," 2");

   ,    TFormI,  
  Caption    2.

  ,    ,   ,  
     ,  ,      
. , ,       Win
dows ,    -    
     ,  , , 
,   ..?

      -   
    C+4-Builder  WinSight 32 ( ...\
gram Files\Borland\CBuilder4\Bin\ws32.exe).    
,   WinSight 32,   Spy | Find Window   
   ,      Windows. 
            ,   
   .

 ,   ,       
      { }     :'.
     . ,  , BL:

   WinSight 32 ,       -
SciCalc. ,      
    :

HWND  = FindWindow("SciCalc","");

        GetNext-
Window API Windows.   :

HWND GetNextWindow(hWnd hWnd, unsigned int wCmd) ;

        Z-
.  hWnd   ,    