title: Using p/invoke to call a function from a C api
body: <p>I have a C api and I am using p/invoke to call a function from the api in my C# application. The function signature is:</p>
  
  <pre><code>int APIENTRY GetData (CASHTYPEPOINTER cashData);
  </code></pre>
  
  <p>Type definitions:</p>
  
  <pre><code>typedef CASHTYPE* CASHTYPEPOINTER;
  
  typedef struct CASH
  {
   int CashNumber;
   CURRENCYTYPE Types[24];
  } CASHTYPE;   
  
  typedef struct CURRENCY
  {
   char Name[2];
   char NoteType[6];
   int NoteNumber;
  } CURRENCYTYPE;
  </code></pre>
  
  <p>How would be my C# method signature and data types? </p>
  
  <p>Thank you.</p>