title: Extracting specific Win32 functions
body: <p>I want to use the CreateThread function from windows.h, but without all the #defines and crap that is included in the header file. Is there some way that i could import(I think thats what its called) just that function from the .dll or .lib?
  tested and failed:</p>
  
  <pre><code>#pragma comment(lib,"Kernel32.lib")
  __declspec(dllimport)
  unsigned long
  __stdcall
  WaitForSingleObject(
      void* hHandle,
      unsigned long dwMilliseconds
      );
  
  
  int main()
  {
      WaitForSingleObject(0,0);
  }
  </code></pre>