Assembly language examples using NASM on Windows

The build environment

All examples are assembled with NASM.

Make sure to use the correct output format, 32 bit or 64 bit.
All examples are linked with Polink (part of Pelles C).

Make sure to use the correct subsystem (console or windows), and library directory for 32 or 64 bit.
The Microsoft documentation for each API function will give which .lib files to include.

Windows import libraries
These can be obtained from any of the following packages.

The constants needed in the examples are defined within each program.

It's tricky to find a compete list of the constant names and their values on the Microsoft website. The best place to obtain them is
a file called from the MASM32 package (the other definitions in that file are not compatible with NASM)