2013年11月4日星期一

Java how to implement in C + + function hook function

Like QQ Music , as can intercept keyboard messages ( regardless QQMusic have not been the focus )
------ Solution --------------------- -----------------------
using C + + to write one , JAVA in tune

use such an approach , not as the direct use of C + + do
------ Solution ------------------------ --------------------
learning , mark down
------ Solution ------------- -------------------------------
know c + + can be achieved, I do not know how to do ...... java
------ Solution ---------------------------------------- ----
find the windows on the keyboard event listener DLL files,

According to this method provided by the interface DLL file to write a Java interface ,

In the Java program using jni technology to call this dll file method can be.
------ Solution ---------------------------------------- ----

not to Java call Windows API. was to Windows API calls Java.
I'm not familiar with Java , but I feel it is not enough. calling convention first to get it working, then how from native code to Java virtual machine is also a problem .
------ Solution ---------------------------------------- ----
this type of cross-language calls , you can try webservice.

function point made ​​the Java webservice interface to the outside world, the use of other languages ​​calls.
------ For reference only -------------------------------------- -


This Mody, with specific information on what
------ For reference only ------------------------ ---------------
learned ...... really good
------ For reference only -------------- -------------------------
this topic a bit mean ah
------ For reference only ----- ----------------------------------
I would like to ask the landlord to solve this problem yet ? How to solve ! Can specifically say about it ?

没有评论:

发表评论