title: Structure JNA returns wrong value
body: <p>From C++ code I am getting the structure.But all the values I am getting is default  value.Below is my c++ code</p>
  
  <pre><code>extern "C" 
  { 
  PDFCONTENTDATA GetPDFContentData(LPTSTR lptszS3FileURL)
  {
  PDFCONTENTDATA pdfContentData;
  pdfContentData.m_uiRasterDPI = 100;
  
  return pdfContentData;
  }
  }; 
  </code></pre>
  
  <p>Below is my java/scala code</p>
  
  <pre><code>@Structure.FieldOrder({ "m_uiRasterDPI"})
  public class tagPDFContentData extends Structure {
  
      public static class ByValue extends tagPDFContentData implements Structure.ByValue { }
      public static class ByReference extends tagPDFContentData implements Structure.ByReference { }
      public volatile int m_uiRasterDPI;
  }
  
  
  trait CDocuLinkCoreServices extends Library{
    def GetPDFContentData(value: Pointer):  tagPDFContentData.ByValue
  }
  </code></pre>
  
  <p>But I am getting </p>
  
  <blockquote>
    <p>m_uiRasterDPI= 0</p>
  </blockquote>
  
  <p>where it should return 100.</p>