H
hommer
Hi, evryone,
I am working on a solution that will terminate an exe app written in VB6
programatically. I am able to use the shell function in vb to start it, and
get an task ID for the thread(?). Now when I call the API listed below, it
failed to get a handle on the process.
I know this is more about windows API programing, and I could not find a
btter forum to ask for help. I am grateful if you can help, or point me to
the right resource.
Private Declare Function OpenProcess Lib "kernel32" _
(ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, _
ByVal dwProcessId As Long) As Long
I am working on a solution that will terminate an exe app written in VB6
programatically. I am able to use the shell function in vb to start it, and
get an task ID for the thread(?). Now when I call the API listed below, it
failed to get a handle on the process.
I know this is more about windows API programing, and I could not find a
btter forum to ask for help. I am grateful if you can help, or point me to
the right resource.
Private Declare Function OpenProcess Lib "kernel32" _
(ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, _
ByVal dwProcessId As Long) As Long