How to use the Windows API in MinGW?

c++, mingw, winapi

Solution

Whenever I've done this, I just

#include <windows.h>

and start coding. MinGW comes with a `windows.h` file so you don't need to do anything extra.

Problem

How to use the Windows API in MinGW?

Original source