Calling DLL functions from Java: getenv with JNI
Starting a new JVM and calling a Java method from a DLL: JavaStarter