views:

33

answers:

1

How can I create a rectangle on the screen that is invisible to any sort of screen capture(printscreen or aplications) ?

By create a rectangle on screen I mean something like this:

#include <Windows.h>
#include <iostream>

void drawRect(){
HDC screenDC = ::GetDC(0);
::Rectangle(screenDC, 200, 200, 300, 300);
::ReleaseDC(0, screenDC);
}
int main(void){
char c;
std::cin >> c;
if (c == 'd') drawRect();
std::cin >> c;
return 0;
}

I'm using Visual Studio 2010 on Windows XP

+1  A: 

you can not. screen captures will capture the screen as presented.

Randy