The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
October 2001



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


Programming To The Windows API

Posted by Matt Gerrans on October 17, 2001 at 4:14 PM

You would have to write C/C++ code to make a DLL that you can call from Java with native methods.

As far as writing the C/C++ code, you can find all the Windows API documented on microsoft's msdn website at If you've not programmed Windows API already, you are in for a bit of a learning curve. I reckon you could start with Charles Petzold's Programming Windows book, or find another book that is more specific to what you are seeking (i.e. system programming or shell programming, etc.).

- mfg

> Does anyone know if it is possible in Java to send commands to the Windows API? If so, how is it done? If not, would using C++ native code work? Lastly, if I have to use C++ native code, does anyone know where I can find out how to do this in C++? Thanks for the help!


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us