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 can be linked with either GoLink or Polink (part of Pelles C).

The Microsoft documentation for each API function will give which .lib / .dll files to include.

It's easier to get started with GoLink as it uses the .dll directly, so there's no need for the .lib files.

Make sure to use the correct subsystem (console or windows), and library directory for 32 or 64 bit.

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)