title: Windows kernel32 functions in Mono on Linux
body: <p>I got this awesomely simple ini class that I downloaded from somewhere a while ago, but now that I'm using mono I'm running into the issue that it's importing stuff from kernel32</p>
  
  <pre><code>[DllImport("kernel32")]
  private static extern long WritePrivateProfileString(string section,
      string key, string val, string filePath);
  [DllImport("kernel32")]
  private static extern int GetPrivateProfileString(string section,
              string key, string def, StringBuilder retVal,
      int size, string filePath);
  </code></pre>
  
  <p>Which on mono (in linux) gives the error <code>DLLNotFoundException: kernel32</code></p>
  
  <p>Is there any way to get this to work with mono? Maybe embed the whole thing into the assembly at compile time (if that even makes sense at all, I wouldn't know). Or will I <em>have</em> to create/find an ini class that doesn't use WinAPI? (Nini springs to mind).</p>
  
  <p>I'd really like it if WinAPI stuff could work with Mono, any thoughts?</p>