Delphi - by calling system tools directly WinAPI WinExec

Look at the following code:

. 1      WinExec ( ' Mspaint.exe ' , SW_SHOWNORMAL); // SW_SHOWNORMAL system drawing. 1 = 
2  
. 3      WinExec ( ' Write.exe ' , SW_SHOWNORMAL); // SW_SHOWNORMAL = tablet. 1 
. 4  
. 5      WinExec ( ' the mstsc.exe ' , SW_SHOWNORMAL ); // SW_SHOWNORMAL = remote Desktop. 1 
. 6  
. 7      WinExec ( ' Calc.exe ' , SW_SHOWNORMAL); // SW_SHOWNORMAL calculator. 1 = 
. 8  
. 9      WinExec ( ' Notepad.exe ', SW_SHOWNORMAL); // SW_SHOWNORMAL Notepad. 1 = 
10  
. 11      WinExec ( ' cmd.exe ' , SW_SHOWNORMAL); // SW_SHOWNORMAL command prompt. 1 =

 

Guess you like

Origin www.cnblogs.com/jeremywucnblog/p/11433019.html