    Advanced Windows 
    Third Edition 
    Jeffrey Richter 
    Microsoft Press 
    
    
     681.3.06  32.973-018.2 
    558 
     . 
    558 Windows  :   Windows 95  Windows 
NT 4   Win32 API/.  .  .:    
  Channel Trading Ltd., 1997. - 712 .: . 
    ISBN 5-7502-0046-9 
      (,    )  
  Windows NT 4  Windows 95    Win32 
API.   , 18 ,     . 
   ,      
    16- Windows.    
      ,   
Windows NT 4,  ,   Windows 95,  
 ,   ,   /,  
  ,    UNIX-  Windows NT. 
          Win32 API,     
     32-  
 Windows NT 4  Windows 95.  -   
   (       Intel 
x86, MIPS, DEC Alpha  PowerPC),   ,  
 ,   Microsoft A. 0. 
        ,  , 1997  
, Microsoft Corporation, 1997 
            Channel 
Trading Ltd.     Microsoft Corporation, , 
, . 
    Microsoft, MS-DOS, Windows, Visual C++  Windows NT  
   Microsoft Corporation.   
     . 
    ISBN 1-57231-548-2 (.) ISBN 5-7502-0046-9 


     

       ,   .     
,         - . 
Windows 95  Windows NT      ,   
( !) ,  .      .   
   16- Windows,  ,    
Win32-  ,     , 
    .     , 
,     ,    
 ,   32-    
Windows 95  Windows NT. 
        Windows NT     (, 
UNIX),        ,   
  .        
Windows NT       ,   Windows NT.  
     .     
   Windows NT,      .    
     ,     
    Windows NT,  ,   
   ,   ,   
  . 
       Win32,        
   .        
.    ,     Win32   
: ,      ,    
 ,   Win32. 
      ,        Win32,   
 (    )   ,  
    Win32.  ,     
     ,    
 . 

       - 

    -      
Win32^yHKHH^ ,         
,     .     
,  Win32.        
 ,   ,  ,  
  \32-. 

    xxii ._____________________________Windows   


    ,    

           -,   
    C++.       C++,   
,   Windows,       ,  
           . 

        

       '\32-   C++    
  (, MFC),     
   (message cracker macros),    
 WINDOWSX.H.    ,    
.       ,     
 ;   ,          . 

       16- Windows 

                
     16- Windows, ,    
 ,   .    ,    
        .  
       GDI  . 
         16- Windows  Win32,  
 .    16- Windows,  ,  
    Win32. 

     -  Windows 95 

    Windows 95      4   . 
  , Microsoft    Windows 95  
- .      , 
  'Win52-     Windows 95.  
    -:      
     Windows NT. - ,  
Windows 95,      Windows NT: ALERTIO.EXE 
( 15), IOCMPPRT.EXE ( 15), TINJLIB.EXE ( 18)  COUNTER.EXE 
( ).    ,      . 

      

        -  ,    
   .  ,    
  Windows-. ,      
 Windows     ,    
 . 
     ,        , 
   Windows-. ,   
  -    , ,  ,   
    WinMain    ,   
  

     xxiii 

     DialogBox.      -  
  WNDCLASS      RegisterClass. 
 ,      FileChng ( 4)  Counter ( ) 
     (message loop). 

     - 

        -   . 
,  8,      (memory-mapped 
files),  ,    ,    
 .    - ,   
 ,    -     
,     . 
       ,      
   . ,  SEHExcpt ( 16),  
    (structured exception handling, SEH), 
      .      
    ,      
       .  ,  
      -,   
  5, 6  7. 
       -,         
    ,     :  TInjLib 
  18.    ,      
 ,  , , ,  , 
  ,     
Unicode.     :      TInjLib, 
,         Win32. 

     STRICT 

            STRICT, 
       . ,  
 STRICT        
   ,     .    
STRICT .  Programming Techniques  Win32 SDK. 

      

           .  , 
          
   .  -    
  ,           
 .       , 
      ,  ,    
 . 

        ? 

        ,      .  , 
  ,  ,      
    ,  -    . 
,          - 
.      ,       
 Internet  : v-jeffrr@microsoft.com. 

    xxiv ______________________________Windows   


      ,     

              
     Intel Pentium.  ,    
  -  MIPS  DEC Alpha,    
,       Visual C++ 4.0.  
   Windows 95  Windows NT. 
        ,   Windows NT 4. 
 Visual C++  4.    Windows NT 4,   
      ,   
   -.    , 
  ,   Visual C++,  ,    
 Win32 SDK. 
      -     , 
   .     
          
  . 
        -   
   : 
         : 

    #pragma data_seg (...) 

          : 

    __declspec(thread) 

           : 

    __try, __leave, __finally, except 

            
   , ,    - 
  ,    . 
          : 

    __declspec(dllimport)  __declspec(dllexport) 

       -  ,    
 Visual C++ 4.0,    ,     
,     . 

    Unicode 

        -   ,     
,   ANSI- . ,   
,  Unicode,        
      :      
 .          
 ,     .       4 
,         ANSI,    Unicode. 
    ,    :      
   ,    .    

    __________._______________________________  xxv 

     ,   ,       
   .       ,    
17.      .   ,    
  ,     ,    , 
        Unicode. 

     - 

    CD-ROM-,    ,     
.  ,    -  DLL-  xS6-, 
MIPS-, Alpha AXP-  PowerPC-  .     
  ,       ,  
     CD-ROM-. 
       CD-ROM-   , 
  CMNHDR.H (  .  )  -  
.     X86.BIN, MIPS.BIN, ALPHA.BIN  
POWERPC.BIN.      -  DLL-  
  .    Windows NT   
 (  86, MIPS, Alpha  PowerPC),     
     ,         
  ,     .  ,     
          
 . 
           -. 
     .    
 -. 
         (  ),  
-      .    
       
   .        , 
    (Windows 95  Windows NT).       . 

    CD-ROM-,    

     Windows 95  Windows NT 4  CD-ROM-    
  Welcome.     . 
          ,   : 

                

    Introduction          ,    . 
    Video demos        AVI-,    ,   
  -    . 
    Setup                    
      . 
    Explorer             Explorer    . 
      . 
    Credits              ,      
. Training               . 
     Windows NT 3.51 (   )    
  Welcome,   Welcome.bat    CD-ROM-. 

    xxvi _______________________________Windows   

    -,     ,  , 
     Microsoft  
Microsoft A. 0.: 
     Service Pack 3  Windows NT 4 (    ); 
     Internet Information Server 3; 
     Service Pack 1   OLE32  Windows 95 (   
 ); 
          Microsoft Word 95, Excel 95  
PowerPoint 95. 


      
     , ,       
    .       , 
  .     ,    . 
       ,  
      ,  ,      . 
     . -- . 
          ,       
     .          
(         );      
        .    
           .   . 
       (Susan Q Ramee)      , 
    .  ,     
      -.  , , 
  ,        ,   
. ,   ,         
,      .       
   ,    .      
   - ,     ,  . 
      (Jim Harkins)      .    
  ,        :      
  ? ,   ,     
     Guess What The Plant Said?   
       - Directory Walker, 
Alertable File I/O  File Change.      , 
   ,       
 InjectLib. 
      (Scott Ludwig)    (Valerie Horvath)   
 .     ,      
.          
 (  ,   !).    Microsoft 
    Windows NT, ,      
  ,    ,    . 
    ,      . 

    xviii _______________________________Windows   

      (Lucy Gooding)      (  
,   )     ,     
   . 
       (Jonathan Locke)      ,  
-  386/25     MIPS.   
     ,      
  .        ,   
.             . 
      (Keith Pleas)            
    .          
  -,         ,    
  ,     (Scent of a Woman). 
      (Jeff Cooperstein)        
         , ,   
,        .    
,    Windows NT (  3.5   ),  
 ,    VDK (Virus Development Kit).    
 :  ?    ,   
 ,         ! 
             Class A Travel: 
      (Norma Coote),   (Jenifer Harpster),  
 (Nouk Inthaxai)    (Jodi Small).       
 ,      .     ,  
   .         ,  
  .    . 
      (Lou Perazzoli),   (Steve Wood)    (Marc 
Lucovsky)     Windows NT    
           . 
      (Brian Smith),   (Jon Thomason)    
(Michael Toutonghi)     Windows 95    
 ,        Windows 95. 
      (Asmus Freytag) (   Unicode)  
   Unicode          
          . 
      (Dave Hart)     NTVDM  Windows NT  
  ,        ;   
    ,   16-  MS-DOS  
Windows  NTVDM- Windows NT.       ,  
        Windows NT. 
      (Chuck Mitchell),   (Steve Salisbury)   
 (Jonathan Mark)     Visual C++  Win32  
       ,   
,     . 
            (Mark Durley)  
  (Cezary Marcjan),      , 
           Win32. 
            
Visual C++,      :   (Byron 
Dazey),   (Eric Lang) (    ?),   
(Dan Spalding),   (Matthew Tebbs) (    !), 
  (Bruce Johnson),   (Jon Jorstad) (   
?),   (Dave Henderson)  ..  (.. Brackmen). 

    _________________________________________  xix 

     - (Bernie Mcllroy)   - 
    DEC Alpha. -  ,    
       ....     
:      . 
      (Sally Stickney)        
Microsoft Press.         
.   ,       -  
    . 
      (Jim Fuchs)         
Microsoft Press.          
 .    ,     . 
      (Rebecca Gleason)        
Microsoft Press.        ,     
  RC-   *.     ,   
       : 
    ,   .           , 
      Dixie's BBQ/Porter's Automovie. 
      (Nancy Siadek)       
   ,      . ,    
 ,     .   ,   ,  
       ,     . 
          Microsoft Press, 
    .     ,   
    .   :   (Eric 
Stroo),   (Philip Borgnes);    (Travis Beaven); 
   (Peggy Herman),   (Jeffrey Brendecke), 
  (Susan Prettyman),   (Linda Robinson),  
  (Elisabeth Thebaud Pong)    (Paul Vautier);  
  (Richard Carey),   (Ron Drummond),   
(Patrick Forgette),   (Teri Kieffer),  - (Roger 
LeBlanc),   (Patricia Masserman),   (Devon 
Musgrave),   (Cheryl Penner)    (Paula Thurman).  
 :   (Shawn Peck),  Car (John Sugg),   (Jim 
Kramer),   (Michael Victor),   (Kim Eggleston),  
 (David Holter),   (Penelope West),   (Richard 
Carter),    (Elisabeth Thebaud Pong),   (Peggy 
Herman)    (Barbara Remmele).     : 
 0' (Erin O'Connor),   (Laura Sackerman),   
(Deborah Long),   (Peggy Herman),   (Lisa Iversen)  
  (Barb Runyan). 
      : 
      (Dan Horn)  Borland International     
      ,    . 
      (Jim Lane),    (Torn Van Baak),   
(Rich Peterson)    (Bill Baxter)      DEC Alpha. 
      (Dean Holmes),     Microsoft 
Press.      ,     
       ,     . 
      (Gretchen Bilson)    Microsoft Systems 
Journal       . 
    * . :  ,        
RC-     ,    -, 
  . 

     _______________________________Windows   

      (Charles Petzold)      Microsoft Press. 
      (Carlos Richardson)      TJ-Net 
(  )       . 
      (Donna Murray)     ,   . 
      . 
         ,        
(Patrick Moraz).      ,    . ,   
          ,   
    . ,    ,   
       . 
       ,   ,     .    
  .           . 
