Hi All
I used the excellent code provided by Hypetia in thread222-837273 as part of an app which stops a running application and its support apps and switches folders then restarts it. All was well for sometime until forces outside my control changed one of the apps. No problem, I updated my code to suit but then I started getting bug reports. After much debugging I have found that the line
populates pe32.szExeFile with the value "RemoteControlEx.exe" as expected under WInXP but with the value "RemoteControlEx" under Win2k resulting in a processID of 0 (because it is not matched).
I have worked around by checking for both values and using the non-zero PID but can anyone explain why this happens?
Thanks in advance
Andy
I used the excellent code provided by Hypetia in thread222-837273 as part of an app which stops a running application and its support apps and switches folders then restarts it. All was well for sometime until forces outside my control changed one of the apps. No problem, I updated my code to suit but then I started getting bug reports. After much debugging I have found that the line
Code:
ProcessFirst hSnapShot, pe32
populates pe32.szExeFile with the value "RemoteControlEx.exe" as expected under WInXP but with the value "RemoteControlEx" under Win2k resulting in a processID of 0 (because it is not matched).
I have worked around by checking for both values and using the non-zero PID but can anyone explain why this happens?
Thanks in advance
Andy