Click here to Skip to main content
15,888,113 members
Home / Discussions / C#
   

C#

 
QuestionHow to pass object array to unmanaged C++ Pin
Alan Balkany15-Apr-08 10:13
Alan Balkany15-Apr-08 10:13 
AnswerRe: How to pass object array to unmanaged C++ Pin
Alan Balkany15-Apr-08 11:10
Alan Balkany15-Apr-08 11:10 
GeneralRe: How to pass object array to unmanaged C++ Pin
Luc Pattyn15-Apr-08 13:29
sitebuilderLuc Pattyn15-Apr-08 13:29 
GeneralRe: How to pass object array to unmanaged C++ Pin
Alan Balkany16-Apr-08 3:49
Alan Balkany16-Apr-08 3:49 
Generalrdlc repoting - center image in picturebox Pin
AJ du Plessis15-Apr-08 8:38
AJ du Plessis15-Apr-08 8:38 
GeneralRe: rdlc repoting - center image in picturebox Pin
Alan N15-Apr-08 8:50
Alan N15-Apr-08 8:50 
GeneralRe: rdlc repoting - center image in picturebox Pin
AJ du Plessis15-Apr-08 9:01
AJ du Plessis15-Apr-08 9:01 
GeneralKeyboard hooks and sendinput.. Pin
Bakaneko15-Apr-08 6:26
Bakaneko15-Apr-08 6:26 
My question isn't exclusive to C# , it applies to any language that can use system api's..

here goes..

I'm writing a driver for a USB device a friend of mine pieced together..

All's well up to one point.. the thing registers certain events , and i have to send keystrokes accordingly so , to be system friendly (I'm quite a friendly person) I use the recommended SendInput function in User32.. still no problems here..

BUT , i have a software K(v)M switch running ( i use multiplicity but i used to use synergy , but thats not important) , the important thing is , it doesn't register the keys i press using the SendInput function...

So i was wondering ..

1 can someone say with absolute certainty how they do it...

2 i presume they use a SetWindowsHookEx with low level keyboard intercepts , and when I'm on the second screen , they probably return a dummy value on CallNextHookEx ... (still that doesnt explain why they aren't fooled by SendInput)

3 Can i also put in a hook in my program , bump it above the hook set by the kvm software(no idea if that's possible ), and use the callback function to simulate key presses...


If anyone has any suggestions about this please feel free to reply , any reply is welcome.

Thank you in advance.
GeneralRe: Keyboard hooks and sendinput.. Pin
Anthony Mushrow15-Apr-08 7:00
professionalAnthony Mushrow15-Apr-08 7:00 
GeneralRe: Keyboard hooks and sendinput.. [modified] Pin
Bakaneko15-Apr-08 7:10
Bakaneko15-Apr-08 7:10 
GeneralRe: Keyboard hooks and sendinput.. Pin
Bakaneko15-Apr-08 11:57
Bakaneko15-Apr-08 11:57 
GeneralRe: Keyboard hooks and sendinput.. Pin
Bakaneko15-Apr-08 12:55
Bakaneko15-Apr-08 12:55 
QuestionUpdate/Refresh Form Pin
Alessandra7715-Apr-08 5:41
Alessandra7715-Apr-08 5:41 
GeneralRe: Update/Refresh Form Pin
Waleed Eissa15-Apr-08 5:56
Waleed Eissa15-Apr-08 5:56 
GeneralRe: Update/Refresh Form Pin
Alessandra7715-Apr-08 6:04
Alessandra7715-Apr-08 6:04 
GeneralRe: Update/Refresh Form Pin
Waleed Eissa15-Apr-08 6:06
Waleed Eissa15-Apr-08 6:06 
GeneralRe: Update/Refresh Form Pin
Alessandra7715-Apr-08 6:24
Alessandra7715-Apr-08 6:24 
GeneralRe: Update/Refresh Form Pin
Anthony Mushrow15-Apr-08 7:07
professionalAnthony Mushrow15-Apr-08 7:07 
GeneralRe: Update/Refresh Form Pin
Waleed Eissa15-Apr-08 20:44
Waleed Eissa15-Apr-08 20:44 
GeneralShowDialog from seperate thread Pin
lgelliott15-Apr-08 5:06
lgelliott15-Apr-08 5:06 
GeneralRe: ShowDialog from seperate thread Pin
Judah Gabriel Himango15-Apr-08 6:19
sponsorJudah Gabriel Himango15-Apr-08 6:19 
GeneralRe: ShowDialog from seperate thread Pin
lgelliott15-Apr-08 7:44
lgelliott15-Apr-08 7:44 
GeneralRe: ShowDialog from seperate thread Pin
Judah Gabriel Himango15-Apr-08 10:02
sponsorJudah Gabriel Himango15-Apr-08 10:02 
GeneralRe: ShowDialog from seperate thread Pin
lgelliott15-Apr-08 10:34
lgelliott15-Apr-08 10:34 
GeneralRe: ShowDialog from seperate thread Pin
Judah Gabriel Himango15-Apr-08 11:37
sponsorJudah Gabriel Himango15-Apr-08 11: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.