📄 winexec.htm
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style><!--
body,table {font-family:"宋体"; font-size: 9pt; line-height:11pt;}
a {text-decoration:none} a:hover {color:red;text-decoration:underline}
--></style>
<title>WinExec</title>
</head>
<body background="../../../images/gray_weave.gif" link="#FF0000" vlink="#FF0000" alink="#FF0000" bgcolor="#FFC8C8">
<div align="center"><center>
<table border="0" width="100%" height="22" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" height="16">WinExec</td>
</tr>
</table>
</center></div><div align="center"><center>
<table border="1" width="100%" bordercolorlight="#808080" cellspacing="0"
bordercolordark="#FFFFFF">
<tr>
<td width="100%" colspan="2">VB声明</td>
</tr>
<tr>
<td width="100%" colspan="2">Declare Function WinExec Lib "kernel32" Alias
"WinExec" (ByVal lpCmdLine As String, ByVal nCmdShow As Long) As Long</td>
</tr>
<tr>
<td width="100%" colspan="2">说明</td>
</tr>
<tr>
<td width="100%" colspan="2">运行指定的程序</td>
</tr>
<tr>
<td width="100%" colspan="2">返回值</td>
</tr>
<tr>
<td width="100%" colspan="2">Long,大于32表示成功;请参考<a
href="FindExecutable.htm">FindExecutable</a>函数,那里总结了一系列错误代码</td>
</tr>
<tr>
<td width="100%" colspan="2">参数表</td>
</tr>
<tr>
<td width="25%">参数</td>
<td width="75%">类型及说明</td>
</tr>
<tr>
<td width="25%">lpCmdLine</td>
<td width="75%">String,包含了要执行的命令行</td>
</tr>
<tr>
<td width="25%">nCmdShow</td>
<td width="75%">Long,定义了以什么形式启动程序的常数值。它与 <a
href="ShowWindow.htm">ShowWindow</a> API函数的 nCmdShow 参数总结的设置相同</td>
</tr>
<tr>
<td width="100%" colspan="2">在VB里使用</td>
</tr>
<tr>
<td width="100%" colspan="2">这个函数在本质上与VB的Shell命令完全相同。请参考对<a
href="CreateProcess.htm">CreateProcess</a>,<a href="LoadModule.htm">LoadModule</a>
以及 <a href="ShellExecute.htm">ShellExecute</a>
函数的说明,了解启动应用程序的另一些方法</td>
</tr>
<tr>
<td width="100%" colspan="2">注解</td>
</tr>
<tr>
<td width="100%" colspan="2"><p align="left">请参考对<a href="CreateProcess.htm">CreateProcess</a>函数的说明,了解在目录中查找指定程序文件的顺序。除非启动的程序开始处理消息,或规定的超时时间溢出,否则这个函数不会返回</td>
</tr>
</table>
</center></div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -