小疑点,高手帮下


小问题,高手帮下
shell   一个程序,并且获得它的HWND.

VisualBasic程序开发环境 程序开发 VisualBasic

b-tou 12 years, 5 months ago


Private Declare Function ShellExecute Lib "shell32.dll " Alias "ShellExecuteA " (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Const SWSHOWNORMAL = 1

Private Sub Form
Load()
Dim hwdApp As Long

hwdApp = ShellExecute(0, vbNullString, "Notepad.exe ", vbNullString, "C:\ ", SW_SHOWNORMAL)
MsgBox hwdApp
End Sub

肉嘎嘎思密达 answered 12 years, 5 months ago

Your Answer