WinExec

此頁沒有內(nèi)容條目
內(nèi)容

WinExec

VB聲明

Declare Function WinExec Lib "kernel32" Alias "WinExec" (ByVal lpCmdLine As String, ByVal nCmdShow As Long) As Long

說明

運行指定的程序

返回值

Long,大于32表示成功,請參考FindExecutable函數(shù)

參數(shù)表

參數(shù)

類型及說明

lpCmdLine

String,包含要執(zhí)行的命令行

nCmdShow

Long,定義了以怎樣的形式啟動程序的常數(shù)值。參考ShowWindow函數(shù)的nCmdShow參數(shù)

注解

請參考對CreateProcess函數(shù)的說明,了解在目錄中查找指定文件的順序

Top