Hi, I think it's not possible by direct coding in Java. But you can use Java Native Interface for communicating with DLLs. I don't know the details. Refer Java Tutorials available for JNI in Sun's web site Binu
I think you will have to create DLL file in C or C++.Make it a win32 dll.Select export option in radio-buttons.Use Java native method Load that library using System.loadLibrary("sth.dll") Crete header file for Java C mapping using "avah" command.Better you refer Core Java Vol.2 for it.It is given in detail there.