Link to home
Start Free TrialLog in
Avatar of AmigoJack
AmigoJack

asked on

Window or Handle creation time?

Hi,

I particurlarly need to know when a window was created or displayed. This is essential for various "MessageBox"es that popup from random programs with a text in it but without any timecode saying when this message popped up. This is especially annoying on long-time tasks where nobody is in front of the system.

So - is there any way to get the creation time of a window? I don't mean the creation time of a whole process (and to be clear: I don't mean the startup time of Windows itself, too). And sadly it seems that MessageBoxes also won't create a thread (which definitly has a creation time that can be read with ProcExp).

My problem would be indirectly solved if somebody can guarantee that the WinAPI (or else) was never meant to know the creation time of a handle. In this case it can't be helped of course.


Thanks for reading and thinking :-)
ASKER CERTIFIED SOLUTION
Avatar of Zoppo
Zoppo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AmigoJack
AmigoJack

ASKER

Hi ZOPPO,

yes it's obvious to write an own helper app which logs all window creations if nothing helpful exists. However - isn't there any other chance? Running hooks for this little purpose is like shooting sparrows with canons ;-)
Sorry, I don't know any other method. AFAIK handles in windows are just 32-bit values handled by the OS. I guess these handles are stored/used in a way that they can be created/accessed/destroyed with maximum performance since every system object is represanted by a handle. Storing a time-stamp or something similar with a handle would be a overhead.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for contributing :)