title: Undefined reference to CreateProcessWithLogonW
body: <p>So I've been working on a small app that at some runs runs an application as another user, I'm writing it in C and using the MinGW GCC compiler to compile and link it. My issue is that whenever I try to use the WINAPI function CreateProcessWithLogonW() I get an error that says "Undefined reference to CreateProcessWithLogonW()."</p>
  
  <p>This is in spite of the fact that I link the Advapi32 when I compile it like so,</p>
  
  <pre><code>gcc file.c -lAdvApi32 -o filename
  </code></pre>