884_____________________________________________ 14

  ,    Labell    ,  
  .doc, :

:\MSOFFICE\WINWORD\WINWORD.

14.14.3.4 WinExec  

  



UINT WinExec(

LPCSTR IpCmdLine, //   

UINT uCmdShow     //   
);



 WinExec    . 
IpCmdLine         , -
    ,  ,   .

    ,  Windows     
:

1. ,    .

2.  .

3.   Windows,   GetSystemDirectory.

4.  Windows,   GetWindowsDirectory.

5.      PATH.

 uCmdShow     
 Windows.     .  
14.14.3.2.    Windows,   PIF  ..  
  .

      WinExec -
 ,  31.    ,  
 .       14.14.3.1.

  WinExec      -
 Windows.        WIN32,   Win32
   CreateProcess (   . -
  C+4-Builder ).

   Win32  WinExec  ,   -
   GetMessage    
.  ,   ,   , -
   WinExec,      GetMessage.





WinExec("file.exe",SW_RESTORE) ;

  file.exe. 

WinExec("nc",SW_RESTORE) ;

 Norton Commander. 

WinExec("COMMAND.",SW_RESTORE);

   MS-DOS.