Click here to Skip to main content
15,895,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questioncompletely restrict mouse movement (including raw data) Pin
3Dizard19-Jul-10 2:23
3Dizard19-Jul-10 2:23 
AnswerRe: completely restrict mouse movement (including raw data) Pin
elchupathingy19-Jul-10 3:37
elchupathingy19-Jul-10 3:37 
QuestionRe: completely restrict mouse movement (including raw data) Pin
3Dizard20-Jul-10 5:45
3Dizard20-Jul-10 5:45 
AnswerRe: completely restrict mouse movement (including raw data) Pin
elchupathingy20-Jul-10 9:44
elchupathingy20-Jul-10 9:44 
AnswerRe: completely restrict mouse movement (including raw data) Pin
Code-o-mat19-Jul-10 4:02
Code-o-mat19-Jul-10 4:02 
GeneralRe: completely restrict mouse movement (including raw data) Pin
elchupathingy19-Jul-10 4:35
elchupathingy19-Jul-10 4:35 
GeneralRe: completely restrict mouse movement (including raw data) Pin
Code-o-mat19-Jul-10 4:42
Code-o-mat19-Jul-10 4:42 
GeneralRe: completely restrict mouse movement (including raw data) Pin
elchupathingy19-Jul-10 4:55
elchupathingy19-Jul-10 4:55 
He could hook the actual function it self by using a DLL, messy but could work well and to make this global you can keep an array of processes and check for new ones and inject into the new ones.

Or, looking back at what you have said another way to do it would be to use SetWindowHookEx and pass the thread ID of the process that is to be injected into. [^]

I just feel that this particular program could cause problems in other programs if it were a global hook, and that it only needs to be applied to specific processes rather than all running processes. From the example of the op with mspaint.

Also the call chain for GetCursorPos is:
GetCursorPos -> NtUserCallOneParam( DWORD dwParam, DWORD routine )

So, a hook on NtUserCallOneParam could be used to modify the mouse position that is returned.
Questiontry-catch exception Pin
Pryabu18-Jul-10 22:59
Pryabu18-Jul-10 22:59 
AnswerRe: try-catch exception Pin
ShilpiP18-Jul-10 23:07
ShilpiP18-Jul-10 23:07 
GeneralRe: try-catch exception Pin
Pryabu18-Jul-10 23:21
Pryabu18-Jul-10 23:21 
GeneralRe: try-catch exception Pin
ShilpiP18-Jul-10 23:49
ShilpiP18-Jul-10 23:49 
AnswerRe: try-catch exception Pin
Niklas L18-Jul-10 23:21
Niklas L18-Jul-10 23:21 
GeneralRe: try-catch exception Pin
Aescleal19-Jul-10 0:01
Aescleal19-Jul-10 0:01 
QuestionImage GDI+ Pin
john563218-Jul-10 22:52
john563218-Jul-10 22:52 
AnswerRe: Image GDI+ Pin
E.F. Nijboer19-Jul-10 4:51
E.F. Nijboer19-Jul-10 4:51 
QuestionReading Windows Registry data in 64 bit operating system Pin
msr_codeproject18-Jul-10 21:26
msr_codeproject18-Jul-10 21:26 
AnswerRe: Reading Windows Registry data in 64 bit operating system Pin
Richard MacCutchan18-Jul-10 22:28
mveRichard MacCutchan18-Jul-10 22:28 
GeneralRe: Reading Windows Registry data in 64 bit operating system Pin
Mattias G19-Jul-10 2:11
Mattias G19-Jul-10 2:11 
GeneralRe: Reading Windows Registry data in 64 bit operating system [modified] Pin
Richard MacCutchan19-Jul-10 3:29
mveRichard MacCutchan19-Jul-10 3:29 
GeneralRe: Reading Windows Registry data in 64 bit operating system Pin
Mattias G19-Jul-10 3:55
Mattias G19-Jul-10 3:55 
GeneralRe: Reading Windows Registry data in 64 bit operating system Pin
Richard MacCutchan19-Jul-10 4:06
mveRichard MacCutchan19-Jul-10 4:06 
GeneralRe: Reading Windows Registry data in 64 bit operating system Pin
msr_codeproject19-Jul-10 6:33
msr_codeproject19-Jul-10 6:33 
GeneralRe: Reading Windows Registry data in 64 bit operating system Pin
David Crow19-Jul-10 10:18
David Crow19-Jul-10 10:18 
GeneralRe: Reading Windows Registry data in 64 bit operating system Pin
Richard MacCutchan19-Jul-10 23:02
mveRichard MacCutchan19-Jul-10 23:02 

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.