Skip to content

16-bit Windows SDK

The 16-bit Windows (Windows 1.x to 3.x) part of the clang-dos SDK, for clang --target=i8086-pc-win16 from clang-dos/llvm: the Windows 3.1 SDK headers (<windows.h> and the rest, written for clang-dos under the AGPL-3.0-only licence), the import lists of the Windows API, the scripts that build the Windows libraries into a DOS sysroot, the config files, the checkers and the tests. It was split out of clang-dos/dos-sdk, which still builds the DOS sysroot these libraries go into and the toolchain packages.

include/                   16-bit Windows API headers (see below)
lib/windows.lnk            imports of the Windows 3.1 API
lib/windows300.lnk         ... for Windows 3.0
lib/windows200.lnk         ... for Windows 2.x
lib/windows100.lnk         ... for Windows 1.x
lib/dibeng.lnk             imports of the Windows 95 DIB engine (display drivers)
build-sysroot.sh           builds <sysroot>/lib/win16 (see below)
cfg/                       --config files for the toolchain package
tools/ne-check.py          checks an NE program for a Windows version
tools/win16-imports.py     import list for a DLL
tools/gen-win16-imports.py makes lib/*.lnk
tools/check-headers.py     checks the headers against Wine and mingw-w64
tools/make-dist.sh         makes the redistributable SDK archive
NOTICE.md                  what the SDK is made of, and its licences
tests/                     the tests, run in Wine

A sysroot built with it holds, next to the DOS libraries:

<sysroot>/include/windows.h, windowsx.h, commdlg.h, ...
<sysroot>/lib/win16/windows*.lnk, dibeng.lnk
<sysroot>/share/licenses/win16-sdk/
<sysroot>/lib/win16/<model>/       crt0.obj, libentry.obj (DLLs), libc.a,
                                   libclang_rt.builtins.a, libc++.a, libc++abi.a
<sysroot>/lib/win16/<model>/dll/   the libraries again for DLLs in the
                                   small and medium models