In classic VB you will first need to use OpenProcess() and specify a process id. This returns a process handle that you can use with GetProcessTimes() API.
The quick example I wrote will get the (start time) of the process and simply show how you can get the difference from that time to current time using DateDiff() function.
Main Topics
Browse All Topics





by: ProtuhjPosted on 2009-09-24 at 04:43:28ID: 25412205
You can modify this code, but it has all the basics you need
Select allOpen in new window