|
-
Nov 22nd, 2002, 12:46 PM
#1
Thread Starter
Lively Member
How to Close Executable Programs with API Calls
I am calling executable program through shell API call with a VB6 Program . I can run any executable programs, but I do not know how to close them through API call. Do I have to have a different API call to close the applications?
Please see API call function.
Public Declare Function ShellExecute Lib "shell32.dll" Alias _
"ShellExecuteA" (ByVal hwnd As Long, ByVal lpszOp As _
String, ByVal lpszFile As String, ByVal lpszParams As String, _
ByVal lpszDir As String, ByVal FsShowCmd As Long) As Long
ShellExecLaunchFile = ShellExecute(Scr_hDC, "Open", strPathFile, "", strOpenInPath, SW_SHOWNORMAL)
Thanks,
Naci
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|