[Gtk-sharp-list] Disabling getting screenshots of a window
Christopher David Howie
me at chrishowie.com
Sun Jun 13 08:27:16 EDT 2010
On 06/13/2010 08:06 AM, hack006 wrote:
> Hi there, now I am starting to do my final school work. I want to
> program app for testing students knowledge. This app should have
> protection against taking screenshots (PrintScreen and programs like
> SnapIt). Are there any posibilities to do it? Thank you very much for
> any suggestion
Unless you can manage to get complete control of the windowing system,
whether that be X or the Windows GUI subsystem, this is an impossible
task. Screenshot programs typically just attempt to grab the contents
of the display framebuffer, which is outside the control of your program.
The only conceivable way to accomplish this would be to monitor the
running processes for applications that can take screenshots and blank
out your window if any are running. And this is, of course, a terrible
hack, and would be incredibly easy to get around.
--
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers
If you correspond with me on a regular basis, please read this document:
http://www.chrishowie.com/email-preferences/
PGP fingerprint: 2B7A B280 8B12 21CC 260A DF65 6FCE 505A CF83 38F5
------------------------------------------------------------------------
IMPORTANT INFORMATION/DISCLAIMER
This document should be read only by those persons to whom it is
addressed. If you have received this message it was obviously addressed
to you and therefore you can read it.
Additionally, by sending an email to ANY of my addresses you are
agreeing that I am, by definition, "the intended recipient," and that I
may do whatever I wish with the contents of any message you send me,
unless a pre-existing agreement prohibits me from so doing.
This overrides any disclaimer or statement of confidentiality that may
be included on your message.
More information about the Gtk-sharp-list
mailing list