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