Click here to Skip to main content
15,905,323 members
Home / Discussions / Hardware & Devices
   

Hardware & Devices

 
GeneralRe: Suspect problem from power supply Pin
Matthew Butler3-Apr-08 3:09
Matthew Butler3-Apr-08 3:09 
GeneralRe: Suspect problem from power supply Pin
Luc Pattyn3-Apr-08 4:43
sitebuilderLuc Pattyn3-Apr-08 4:43 
GeneralHooking Raw Input - Detect HID mice Pin
maszup2-Apr-08 0:01
maszup2-Apr-08 0:01 
GeneralRe: Hooking Raw Input - Detect HID mice Pin
Dave Kreskowiak2-Apr-08 3:45
mveDave Kreskowiak2-Apr-08 3:45 
GeneralRe: Hooking Raw Input - Detect HID mice Pin
maszup2-Apr-08 5:05
maszup2-Apr-08 5:05 
GeneralRe: Hooking Raw Input - Detect HID mice Pin
Randor 2-Apr-08 5:10
professional Randor 2-Apr-08 5:10 
GeneralRe: Hooking Raw Input - Detect HID mice Pin
maszup2-Apr-08 5:33
maszup2-Apr-08 5:33 
GeneralRe: Hooking Raw Input - Detect HID mice Pin
Randor 2-Apr-08 6:31
professional Randor 2-Apr-08 6:31 
First it should be known that I have never used RegisterRawInputDevices and the corresponding raw input functions. They look very intriguing and perhaps worthy of some research. However with that being said I do have experience with HID device drivers and interacting with usermode.

maszup wrote:
I don't fully understand your answer about filter driver. Can you give me some link or examples about that?


There is a sample mouse filter driver included in the DDK at: C:\WINDDK\6001.18000\src\input\moufiltr which could be modified for the previously proposed behavior.

maszup wrote:
It should not be a service. The application should be DLL called from other programming language.


The service I was suggesting was for interacting with a filter driver. If you continue along the usermode path then a service would not be the optimal solution.

maszup wrote:
The problem is only: is it possible to init all mice and read somehow position from them?


RegisterRawInputDevices is designed for windows which mean it sends a WM_INPUT message to windows which have registered for notification. Are you suggesting that you would like to hook all window creation and override the WindowProc of each and every open window and register for this notification? It actually sounds like it may be possible although grossly inefficient.

If I were you I would research the AppInit type of DLL and hook CreateWindow and CreateWindowEx by way of IAT in each and every process. I have been reading the MSDN located here:

http://msdn2.microsoft.com/en-us/library/ms645543(VS.85).aspx[^]

All of the information there highly interests me as I have not used this type of input before. From what I am reading I do not see any reason why the method you have proposed would not be at least partially successful for well-behaved windows.

I stand by my prior statement that a filter driver would be the best way of achieving this. I am interested in a follow-up if you are successful with this hooking method. If you actially get this working please contact me and let me know.

Best Wishes,
-David Delaune
AnswerRe: Hooking Raw Input - Detect HID mice Pin
maszup2-Apr-08 9:27
maszup2-Apr-08 9:27 
GeneralRe: Hooking Raw Input - Detect HID mice Pin
maszup7-Apr-08 21:56
maszup7-Apr-08 21:56 
GeneralRe: Hooking Raw Input - Detect HID mice Pin
Randor 12-Apr-08 20:30
professional Randor 12-Apr-08 20:30 
GeneralRe: Hooking Raw Input - Detect HID mice Pin
Dave Kreskowiak2-Apr-08 6:48
mveDave Kreskowiak2-Apr-08 6:48 
QuestionBuilding c# pc remote control? Pin
Goalie3531-Mar-08 17:22
Goalie3531-Mar-08 17:22 
AnswerRe: Building c# pc remote control? Pin
Matthew Butler2-Apr-08 14:56
Matthew Butler2-Apr-08 14:56 
GeneralRe: Building c# pc remote control? Pin
Goalie352-Apr-08 19:11
Goalie352-Apr-08 19:11 
GeneralRe: Building c# pc remote control? Pin
Matthew Butler3-Apr-08 2:57
Matthew Butler3-Apr-08 2:57 
GeneralMonitor blur Pin
Mekong River31-Mar-08 17:19
Mekong River31-Mar-08 17:19 
GeneralRe: Monitor blur Pin
Sebastian Schneider2-Apr-08 5:00
Sebastian Schneider2-Apr-08 5:00 
GeneralRe: Monitor blur Pin
Mekong River3-Apr-08 0:11
Mekong River3-Apr-08 0:11 
GeneralRe: Monitor blur Pin
Dave Kreskowiak3-Apr-08 3:47
mveDave Kreskowiak3-Apr-08 3:47 
General_asm code Pin
ForNow31-Mar-08 14:33
ForNow31-Mar-08 14:33 
GeneralUsing and Preserving Registers in Inline Assembly Pin
Randor 1-Apr-08 16:42
professional Randor 1-Apr-08 16:42 
GeneralRe: Using and Preserving Registers in Inline Assembly Pin
ForNow1-Apr-08 19:41
ForNow1-Apr-08 19:41 
GeneralAnything special prlouge __fastcall with _asm Pin
ForNow3-Apr-08 6:16
ForNow3-Apr-08 6:16 
GeneralRe: Anything special prlouge __fastcall with _asm Pin
Randor 7-Apr-08 17:37
professional Randor 7-Apr-08 17:37 

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.