title: JNA pointer to store file handle
body: <p>I'm using JNA to use a .dll in Java.</p>
  
  <p>The method i'm trying to use is this (in C):</p>
  
  <pre><code>int fH; /* file handle */
  int error; /* error code */
  error = spssOpenWrite("mydata.sav", &amp;fH);
  </code></pre>
  
  <p>It creates a new file and stores the file handle in hFile and returns an error code.
  I'm not sure how to recreate that with JNA, i tried using the pointer-object like this:</p>
  
  <pre><code>Pointer fH = new Memory(4096);
  int error = 0;
  error = CLibrary.INSTANCE.spssOpenWrite("mydata.sav", fH);
  </code></pre>
  
  <p>But that doesn't change the value of fH.</p>