
Signature
[ don't email me support questions or followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
> Why is this so important? Why can't the Java code open the necessary
> file itself?
File pointer is just a example.
I want to use this to control special handle that is no Java API to
control.(not file handle nor window one)
> If you're just trying to learn how to use the invocation API, have a
> look at the sample launcher included with your JDK.
Yes, I need Invocation API's example.
But is there more simple and effective sample?
Gordon Beaton - 23 Oct 2006 11:30 GMT
> I want to use this to control special handle that is no Java API to
> control.(not file handle nor window one)
If there is no Java API for the handle in question, then *every*
operation involving the handle must be done in native code, not just
creating and destroying it as your example suggests.
However this issue is completely unrelated to invocation; you don't
need your own custom launcher if this is the only problem you are
trying to solve.
> Yes, I need Invocation API's example.
> But is there more simple and effective sample?
Have a look at chapter 7:
http://java.sun.com/docs/books/jni/html/titlepage.html
/gordon

Signature
[ don't email me support questions or followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e