Patrick P
Patrick P

Reputation: 67

JNA Win32 examples

I'm trying to compile in Eclipse the example code from McDowell here JNA Keyboard Hook in Windows

I downloaded jna.jar from http://java.net/projects/jna/sources/svn/show/trunk/jnalib/dist?rev=1182

Imported into my project, added to the build path, but "com.sun.jna.examples.win32" is empty (white folder package). Therefore User32.HHOOK is not of known type... or is McDowell combining with temp's example?

Please enlighten me

Upvotes: 1

Views: 3347

Answers (1)

josefx
josefx

Reputation: 15656

It is in the platform.jar on the same page as part of the win32 types package. Full class com.sun.jna.platform.win32.WinUser.HHOOK.

Upvotes: 2

Related Questions