title: Calling Win32 API method from Java
body: <p>I need to call <a href="http://msdn.microsoft.com/en-us/library/aa384026%28VS.85%29.aspx" rel="noreferrer">some methods in Wininet.dll</a> from a Java program.</p>
  
  <p>I can find plenty of tutorials on how to call a new DLL that I create from Java, but I can't seem to find any tutorials on how to call an already existing DLL from Java.</p>
  
  <p>I know this involves JNI, but how, exactly, do I do this?  Do I need to call <code>javah</code> on Wininet.h?  Where do I get a copy of Wininet.h?  A pointer to an existing, <em>detailed</em> tutorial would be sufficient.</p>