JNI can be easily used to access any function that is publicly available in the DLL (managed or unmanaged) so that it can be used in java.
You will need to create your own interface using the Java Native Interface (JNI) and then call the interface functions as usual.