Click here to Skip to main content
16,008,750 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Function reference Pin
Joaquín M López Muñoz27-Jan-04 10:21
Joaquín M López Muñoz27-Jan-04 10:21 
GeneralRe: Function reference Pin
Maxwell Chen27-Jan-04 15:32
Maxwell Chen27-Jan-04 15:32 
QuestionHow to prevent "Screen Capture" ? Pin
jajamal27-Jan-04 8:03
jajamal27-Jan-04 8:03 
AnswerRe: How to prevent "Screen Capture" ? Pin
Ivor S. Sargoytchev27-Jan-04 11:52
Ivor S. Sargoytchev27-Jan-04 11:52 
GeneralRe: How to prevent "Screen Capture" ? Pin
jajamal28-Jan-04 0:55
jajamal28-Jan-04 0:55 
GeneralRe: How to prevent "Screen Capture" ? Pin
Diddy28-Jan-04 22:51
Diddy28-Jan-04 22:51 
GeneralRe: How to prevent "Screen Capture" ? Pin
jajamal29-Jan-04 5:07
jajamal29-Jan-04 5:07 
GeneralRe: How to prevent "Screen Capture" ? Pin
Diddy29-Jan-04 7:49
Diddy29-Jan-04 7:49 
Sorry, I'm struggeling to understand your English Blush | :O )

Are you saying you want to prevent ANY app capturing the screen, either by the "print screen" method or programmtically via something like GetDC(NULL)?

The preventing "print screen" method is easy - use a hook.

Preventing someone doing it programmtically (unless they do it programmtically by simulating a print screen key, which most don't) is MUCH more challengling. You are talking here about intercepting internal API calls and for the functions that capture the screen (killing off GetDC() will work for most of them, just make sure you only kill the call if the parameter is NULL Blush | :O ) ). For this, you'll need a driver - certianally on Win 9x.

For a start, go to www.sysinternals.com and download the code for RegMon - this intercepts the calls to Reg... functions and logs them - you need to do the same for functions that capture the screen and see if you can prevent the call from going any further.

Good luck, you'll need it.
GeneralRe: How to prevent "Screen Capture" ? Pin
jajamal31-Jan-04 1:29
jajamal31-Jan-04 1:29 
GeneralRe: How to prevent "Screen Capture" ? Pin
Diddy31-Jan-04 9:37
Diddy31-Jan-04 9:37 
GeneralCString question Pin
mr200327-Jan-04 7:43
mr200327-Jan-04 7:43 
GeneralRe: CString question Pin
Mukkie27-Jan-04 7:48
Mukkie27-Jan-04 7:48 
GeneralRe: CString question Pin
Antti Keskinen27-Jan-04 7:52
Antti Keskinen27-Jan-04 7:52 
GeneralRe: CString question Pin
Carlos Antollini27-Jan-04 8:06
Carlos Antollini27-Jan-04 8:06 
GeneralRe: CString question Pin
Antti Keskinen27-Jan-04 9:19
Antti Keskinen27-Jan-04 9:19 
Generalwhile loop problem Pin
CarteBlanche27-Jan-04 7:28
CarteBlanche27-Jan-04 7:28 
GeneralRe: while loop problem Pin
b_girl27-Jan-04 7:34
b_girl27-Jan-04 7:34 
GeneralRe: while loop problem Pin
CarteBlanche27-Jan-04 7:37
CarteBlanche27-Jan-04 7:37 
GeneralRe: while loop problem Pin
Antti Keskinen27-Jan-04 7:43
Antti Keskinen27-Jan-04 7:43 
GeneralRe: while loop problem Pin
CarteBlanche27-Jan-04 7:56
CarteBlanche27-Jan-04 7:56 
GeneralCount the number of characters in a CString Pin
mr200327-Jan-04 7:13
mr200327-Jan-04 7:13 
GeneralRe: Count the number of characters in a CString Pin
monrobot1327-Jan-04 7:23
monrobot1327-Jan-04 7:23 
GeneralRe: Count the number of characters in a CString Pin
Mukkie27-Jan-04 7:36
Mukkie27-Jan-04 7:36 
GeneralRe: Count the number of characters in a CString Pin
toxcct27-Jan-04 8:51
toxcct27-Jan-04 8:51 
GeneralRe: Count the number of characters in a CString Pin
mr200327-Jan-04 9:18
mr200327-Jan-04 9:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.