Click here to Skip to main content
15,889,462 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralApplication is crashing when trying to display messagebox Pin
RamaraoPV2-Apr-08 0:11
RamaraoPV2-Apr-08 0:11 
QuestionRe: Application is crashing when trying to display messagebox Pin
CPallini2-Apr-08 1:51
mveCPallini2-Apr-08 1:51 
QuestionRe: Application is crashing when trying to display messagebox Pin
RamaraoPV2-Apr-08 2:10
RamaraoPV2-Apr-08 2:10 
GeneralRe: Application is crashing when trying to display messagebox Pin
Cedric Moonen2-Apr-08 2:21
Cedric Moonen2-Apr-08 2:21 
GeneralRe: Application is crashing when trying to display messagebox Pin
Maximilien2-Apr-08 2:55
Maximilien2-Apr-08 2:55 
QuestionRe: Application is crashing when trying to display messagebox Pin
David Crow2-Apr-08 3:40
David Crow2-Apr-08 3:40 
GeneralHooking Raw Input - Detect HID mice Pin
maszup2-Apr-08 0:03
maszup2-Apr-08 0:03 
GeneralRe: Hooking Raw Input - Detect HID mice Pin
Randor 2-Apr-08 5:04
professional Randor 2-Apr-08 5:04 
I do not believe you can reliably detect which mouse has produced the input from usermode... ring-3. RegisterRawInputDevices does not work like you are suggesting. You will need to write a filter driver. You need to create a mouse filter driver which is connected to \\Device\\PointerClass0 and \\Device\\PointerClass1 all other pointerclass input devices on the device chain.

You would need to implement some shared memory protected by KeAcquireSpinLock/KeReleaseSemaphore and each time the mouse moves, the filter driver would set this information in the shared memory each time it recieves input. You would need to also write a windows service which polls the driver IOCTL interface at regular intervals and retrieves the mouse currently/last in use. When multiple pointing devices are moving at the same time the resolution will be equal to your polling rate.

Its not a simple task.

Good luck,
-David Delaune
GeneralSwitch Pin
john56321-Apr-08 23:43
john56321-Apr-08 23:43 
GeneralRe: Switch Pin
Cedric Moonen1-Apr-08 23:47
Cedric Moonen1-Apr-08 23:47 
GeneralRe: Switch Pin
Mark Salsbery2-Apr-08 6:18
Mark Salsbery2-Apr-08 6:18 
GeneralRe: Switch Pin
Hamid_RT7-Apr-08 3:52
Hamid_RT7-Apr-08 3:52 
QuestionThread Pin
Member 34205091-Apr-08 23:37
Member 34205091-Apr-08 23:37 
GeneralRe: Thread Pin
Cedric Moonen1-Apr-08 23:41
Cedric Moonen1-Apr-08 23:41 
GeneralRe: Thread Pin
Maxwell Chen1-Apr-08 23:50
Maxwell Chen1-Apr-08 23:50 
GeneralRe: Thread Pin
Cedric Moonen1-Apr-08 23:59
Cedric Moonen1-Apr-08 23:59 
GeneralRe: Thread Pin
toxcct2-Apr-08 0:05
toxcct2-Apr-08 0:05 
QuestionRe: Thread Pin
Member 34205092-Apr-08 2:21
Member 34205092-Apr-08 2:21 
GeneralRe: Thread Pin
Maximilien2-Apr-08 3:00
Maximilien2-Apr-08 3:00 
GeneralRe: Thread Pin
Member 34205092-Apr-08 23:01
Member 34205092-Apr-08 23:01 
GeneralRe: Thread Pin
Hamid_RT7-Apr-08 3:51
Hamid_RT7-Apr-08 3:51 
QuestionMessgeBoxIndirect ( ) is causing a crash? Pin
RamaraoPV1-Apr-08 23:15
RamaraoPV1-Apr-08 23:15 
GeneralRe: MessgeBoxIndirect ( ) is causing a crash? Pin
Cedric Moonen1-Apr-08 23:27
Cedric Moonen1-Apr-08 23:27 
QuestionRe: MessgeBoxIndirect ( ) is causing a crash? Pin
RamaraoPV2-Apr-08 0:07
RamaraoPV2-Apr-08 0:07 
GeneralListbox and files Pin
Chandrasekharan P1-Apr-08 22:36
Chandrasekharan P1-Apr-08 22:36 

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.