title: Creating a process in memory C++
body: <p>I've been working on this code for hours, and it is driving me crazy!</p>
  
  <p>The entire source is here <a href="http://pastebin.com/Urxh68W4" rel="nofollow noreferrer">http://pastebin.com/Urxh68W4</a> but I'm pretty sure I know the problem.</p>
  
  <pre><code>extern "C" NTSYSAPI LONG NTAPI ZwUnmapViewOfSection(HANDLE, PVOID);
  </code></pre>
  
  <p>When I run it I get the following error:</p>
  
  <pre><code>Error 1 error LNK2019: unresolved external symbol __imp__ZwUnmapViewOfSection@8 referenced in function _wWinMain@16
  </code></pre>
  
  <p>I'm guessing that there is some dll or library I should be including so I added Ntoskrnl.lib into my project because it contains the ZwUnmapViewOfSection function.</p>
  
  <p>I have absolutely no idea what to do. Should I have used the Ntdll.dll? If so, how do I even link a dll? I thought you could only use the libraries in Visual Studio 2010.</p>
  
  <p>Also, what exactly is NTSYSAPI and NTAPI? There is hardly any information on the net.</p>