Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
We have a requirement to check any customer is using the application or it is in idle state.

On the client system our application will run in full screen mode. Based on the user activity the display will be updated.But the problem is I dont have any access to the source code of the application. So I am thinking if I can get any display update events from windows when the screen is updated. If I get screen update event then I can consider that some customer is using the application

I am thinking of other approach is to get the screenshots in different intervals and compare. If both the images are matched then assuming it to be in idle mode or else some user activity is going on.

If I can get display update events then that will be easy for me to handle.Please let me know if you have any other approaches

What I have tried:

Searched online and microsoft website but could find information
Posted
Updated 12-Jul-20 17:18pm
Comments
Richard MacCutchan 13-Jul-20 4:02am    
What exactly are you trying to measure? And if it is your application why do you not have access to the source code? And finally, how are you going to capture information from a client's computer unless you have complete access to it?

1 solution

I'd start poking at things like this FreeRDP · GitHub[^] and see how they do it .. Obviously transmitting full screens could be problematic, so being able to identify differential areas could be a technique.

There used to be a lot of information and code for VNC as well, might be worth trawling the net for

You might end up writing the guts in C++ for instance, since iirc, it was easier to access the Win32 Screen/Desktop APIs, rather than using Interop/P-Invoke from C#
 
Share this answer
 
Comments
Coder969 13-Jul-20 1:02am    
I have checked the Windows API for screen but couldnt find any information for the display events. What do you mean by "transmitting full screen"?

For my case I dont need any screen data. I just need an event tell the screen is updated/refreshed

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900