Answer the question
In order to leave comments, you need to log in
How to determine the process initiator?
The task consists in the following:
We have electronic document management. It is necessary to keep track of whether its window is active and, in case of inactivity, give the user N time before closing it. I catch the active window by handle, which I get from the GetForegroundWindow function, but when the user opens a certain document, for example, WORD becomes the active window and the timer starts, although in fact the user still works in EDF. Is it possible to determine that the initiator of the launch of the WORD process was the EDI process?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question