Pelles C forum

Pelles C => General discussions => Topic started by: frankie on August 25, 2005, 12:05:22 PM

Title: QueueUserAPC definition
Post by: frankie on August 25, 2005, 12:05:22 PM
Pelle, anybody,
I'm not able to get the prototype of the QueueUserAPC function (defined in winbase.h).
Is there something to check in the project options that I'm missing?
More why to use winsock2.h I have to include it before windows.h?
Thanks
Title: QueueUserAPC definition
Post by: JohnF on August 25, 2005, 12:27:02 PM
You need to define _WIN32_WINNT first

#define _WIN32_WINNT 0x400
#include <windows.h>
#include <winbase.h>

John
Title: QueueUserAPC definition
Post by: frankie on August 25, 2005, 02:25:03 PM
Thank-you John.