put WINAPI into the brackets of the function pointer declaration