Hi, Waldemar
But as I am completely new to WIN programming would you kindly tell me how to implement that ? (i.e. what to #include and what to link to get the API in)
You must to include "windows.h" only.
I recomend you to download the API docs. Search the mingw site for.
Greetings, M.Alvarez