WinExec

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

WinExec

VB聲明

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

說明

運(yùn)行指定的程序

返回值

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

參數(shù)表

參數(shù)

類型及說明

lpCmdLine

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

nCmdShow

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

注解

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

Top