Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Windows API Calls?

So I remember how easy it was to do Windows API calls in VB but now I can't figure out how to do the equivalent in Java.
I've heard alot about JNI but that requires programming in C. Does anyone have a solution for me?
[237 byte] By [x-tech] at [2007-11-11 7:18:51]
# 1 Re: Windows API Calls?
Part of the whole idea of Java is to have the language independent of the operating system. The only way you do that is to not make calls to the operating system's API. It is the role of the implementers of the JVM for Windows to interpret your calls as calls to the Windows (or other OS) API. So what you're asking for runs against the very existence of the language.

Is there a particular API function you want to call? Most API functions have been implemented in Java libraries which will make your call for you.
nspils at 2007-11-11 22:38:45 >
# 2 Re: Windows API Calls?
Haha, that would explain why I've found nothing about it. Thank you.

I was looking to send keyboard input. I guess I'll just have a look at javadocs and see what I can find.

Once again, thanks.
x-tech at 2007-11-11 22:39:45 >
# 3 Re: Windows API Calls?
This might help http://www.microsoft.com/mind/0198/jdirect.asp
Wizard1988 at 2007-11-11 22:40:48 >