Hello,
I have a program that, ideally, should not be run concurrently with EXCEL. I have been able to determine whether or not a session of EXCEL is running using the FindWindow function but now I need to know how to close the session programmically. I have been able to get the ThreadId using the GetWindowThreadProcessId and tried terminating the session with TerminateProcess and TerminateThread with no luck. Does anyone have any suggestions?
Thanks
ERM
I have a program that, ideally, should not be run concurrently with EXCEL. I have been able to determine whether or not a session of EXCEL is running using the FindWindow function but now I need to know how to close the session programmically. I have been able to get the ThreadId using the GetWindowThreadProcessId and tried terminating the session with TerminateProcess and TerminateThread with no luck. Does anyone have any suggestions?
Thanks
ERM