From: adebaene on
On 24 avr, 07:49, chrisstankev...(a)gmail.com wrote:
> Q1: Which include file(s) do I need to place in my cpp file to call
> the winapi function ::CreateSemaphore?
> Q2: Which include file(s) do I need for HANDLE
>
To access the Win32 API, you should always #include <windows.h>

See the documentation for CreateSemaphore (http://msdn2.microsoft.com/
en-us/library/ms682438(VS.85).aspx), at the bottom of the page :
Header : Declared in Winbase.h; include Windows.h.


Since <windows.h> is a HUGHE header, it is highly recommende to use
precompiled headers (stdafx.h), to speed up compilation time.

Arnaud