Using VB6 I am attempting to terminate a process which is running under a different user to the VB application.
I have got the process ID but when attempting to get a handle to the process using the following code I always get a return value of 0.
handle = OpenProcess(PROCESS_QUERY_INFORMATION Or PROCESS_VM_READ, 0, ProcessID)
Both PROCESS_QUERY_INFORMATION and PROCESS_VM_READ have been setup as constants with values 1024 and 16 respectivly.
Can anyone help?
Thanks,
-Ian
I have got the process ID but when attempting to get a handle to the process using the following code I always get a return value of 0.
handle = OpenProcess(PROCESS_QUERY_INFORMATION Or PROCESS_VM_READ, 0, ProcessID)
Both PROCESS_QUERY_INFORMATION and PROCESS_VM_READ have been setup as constants with values 1024 and 16 respectivly.
Can anyone help?
Thanks,
-Ian