Re: [firebreath-dev] Issue with raw input api in Chrome and IE

59 views
Skip to first unread message

Neil Griffiths

unread,
May 9, 2013, 2:53:07 PM5/9/13
to firebre...@googlegroups.com
Hi Michael,

I'm sorry, I don't have time to fully respond to you right now - but I can point you in the right path. It sounds like you're having issues with process integrity levels (http://msdn.microsoft.com/en-us/library/bb625960.aspx).

You can spawn a separate process that runs at a different integrity level and that should solve your problem.

But, from your email, it's not clear why you're using a plugin to send those messages to a client application that could catch those messages itself.

Good luck!

Neil


On Thu, May 9, 2013 at 1:45 PM, Michael Toffolon <miket...@gmail.com> wrote:
Hi,
first of all sorry for my english.

I need your help because I've created a very simple plugin that works very well in Firefox but not in IE or Chrome.
This plugin should detect any barcode scanner connected to the PC and it should also notify the client application for every 'shot' of the gun (with characters).

 I've created my own WINPROC and I've used the raw input api to get the WM_INPUT message (with 'RegisterRawInputDevices'...). 
If I use Firefox then my WINPROC is correctly called but with IE and Chrome it doesn't work (I receive other messages but not the WM_INPUT...)

I've used also the WinMessageWindow class but without result (it works the same in firefox..).
I'm not a C++ developer, so I will appreciate any suggestion... 

Thank you very much for your help,
Michael

--
 
---
You received this message because you are subscribed to the Google Groups "firebreath-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebreath-de...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Michael Toffolon

unread,
May 10, 2013, 3:18:30 PM5/10/13
to firebre...@googlegroups.com
Hi Neil,

thank you for your reply. I'll give it a try but I've checked the integrity levels for all the browser with Process Explorer and all of them have a 'Medium Integrity Level', the same of my current user ... I've tested the plugin with Safari and Opera but it still doesn't work. The only browser that works correctly is Firefox...

Thank you again for your help.

Michael

PS: I'm writing this plugin because I need a way to distinguish the characters coming from the keyboard from those coming from the barcode reader and with simple javascript I can't do that. 

Neil Griffiths

unread,
May 10, 2013, 3:51:55 PM5/10/13
to firebre...@googlegroups.com
It could well be that I was wrong and it's just that the window the browser created for your plugin is actually handling those events and not passing them on to you.

You could try creating your own window with your own winproc message handling function and see whether that works out to be any better for you?

Michael Toffolon

unread,
May 10, 2013, 6:00:33 PM5/10/13
to firebre...@googlegroups.com
The WinMessageWindow already does somethig similar because it creates a new hidden window and I can set a custom winproc to handle the messages.

However, in the mean time, I was able to (partially) resolve my problem. I've enabled the RIDEV_INPUTSINK when I register for raw input and now my custom winproc is called for WM_INPUT messages. The method is called also if the window isn't active but it doesn't matter.

Thank you again for your help.

Michael
Reply all
Reply to author
Forward
0 new messages