03-21-2005, 10:46 PM
Probably the window is closed. Use IsWindow to test whether hwnd is still valid. Or use err.
This code shows error description:
a=GetProcessCpuUsage(hwnd)
err out _s.dllerror
This code shows error description:
a=GetProcessCpuUsage(hwnd)
err out _s.dllerror