1,winexec (): WinExec mainly runs EXE files and cannot run other types of files. No special units are referenced. Prototype: UINT winexec (exepath,showcmd) example, I want to open "C:\HDC with Notepad. TXT ", run in Normal mode: WinExec (PChar (
Recently, with the students to write an interface, you need to call to the release of the. exe file, which requires the transmission of command-line arguments and get the return value , although not a very complicated thing, but still to find some
Go WinExec, ShellExecute and CreateProcess and how to determine the return valueHttp://www.cnblogs.com/ziwuge/archive/2012/03/12/2392472.htmlThere are three API functions that can run executable files winexec, ShellExecute, and CreateProcess.
There are three API functions that can run executable files winexec, ShellExecute, and CreateProcess. CreateProcess is less used because it is more complex to use. WinExec mainly run EXE files.⑴ function prototype: UINT Win Exec (LPCSTR lpcmdline,
Three SDK functions: WinExec, shellexecute,createprocess can implement the requirements of calling other programs, WinExec is the simplest, ShellExecute is more flexible than winexec, CreateProcess is the most complex.WinExec two parameters, the
ShellExecuteThe function of ShellExecute is to run an external program (or open a registered file, open a directory, print a file, etc.) and control the external program.
Several API functions can implement these functions, but in most cases,
Three Windows SDK functions: winexec, ShellExecute, and CreateProcess. You can call other programs.
WinexecThis function is the simplest and has only two parameters. The prototype is as follows:
Uint winexec (
Maid, // command path
Uint ucmdshow //
WinExec () is a WIN32 API. Its first parameter must contain an executable file name. System () is a C-library function and it accepts a DOS command. The difference between ShellExecute () and WinExec () is that there are too many zookeeper I think
What about winexec? Delphi/Windows SDK/API
Http://www.delphi2007.net/DelphiAPI/html/delphi_20061114224727232.html
Below is
Program Call program B. The logon page of program B is displayed. Enter the user name and password to log on to program B
Winexec (pchar ('strcommand'), sw_show );"Strcommand" indicates one of the following commands (do not enclose them with quotation marks when running in Windows ):"Rundll32 shell32, control_rundll"-Operation Control Panel"Rundll32 shell32,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.