Click here to Skip to main content
15,917,702 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Creating dynamic output in command prompt Pin
Cedric Moonen2-Apr-08 20:36
Cedric Moonen2-Apr-08 20:36 
GeneralRe: Creating dynamic output in command prompt Pin
Maximilien2-Apr-08 2:48
Maximilien2-Apr-08 2:48 
GeneralRe: Creating dynamic output in command prompt Pin
Auchioane2-Apr-08 16:00
Auchioane2-Apr-08 16:00 
QuestionCallStack checking? Pin
RamaraoPV2-Apr-08 0:35
RamaraoPV2-Apr-08 0:35 
GeneralRe: CallStack checking? Pin
Cedric Moonen2-Apr-08 0:57
Cedric Moonen2-Apr-08 0:57 
GeneralRe:Thanks still i have the question? Pin
RamaraoPV2-Apr-08 1:13
RamaraoPV2-Apr-08 1:13 
GeneralRe:Thanks still i have the question? Pin
Cedric Moonen2-Apr-08 2:14
Cedric Moonen2-Apr-08 2:14 
GeneralPrinter DC Pin
Developer6112-Apr-08 0:22
Developer6112-Apr-08 0:22 
GeneralRe: Printer DC Pin
_AnsHUMAN_ 2-Apr-08 1:14
_AnsHUMAN_ 2-Apr-08 1:14 
GeneralRe: Printer DC Pin
Developer6112-Apr-08 1:28
Developer6112-Apr-08 1:28 
GeneralRe: Printer DC Pin
Rajkumar R2-Apr-08 1:51
Rajkumar R2-Apr-08 1:51 
GeneralRe: Printer DC Pin
Rajkumar R2-Apr-08 1:19
Rajkumar R2-Apr-08 1:19 
GeneralRe: Printer DC Pin
Krishnakumartg3-Apr-08 21:37
Krishnakumartg3-Apr-08 21:37 
GeneralRe: Printer DC Pin
Hamid_RT7-Apr-08 3:54
Hamid_RT7-Apr-08 3:54 
QuestionHow to get focus to property sheet in windows programming(win32) Pin
Swty2-Apr-08 0:15
Swty2-Apr-08 0:15 
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 

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.