OSSDKImpossible SDK

One C source.
Windows now,
Impossible OS next.

A small C kit for Windows programs. A program is an ordinary 64-bit .exe with no C runtime. It calls only the 153 Windows functions on one published list, and Impossible OS is building that same list.

Make your first windowRead the API

Early, no release yet. Programs run on Windows today.

Hello
#include <impossible/base.h>

int im_main(void) {
    return im_print("Hello from Impossible SDK\n") ? 0 : 1;
}
3,072 bytes this program
6,656 bytes the window sample
Each square is one 512 byte sector of the finished file.

Start in four commands

Windows or WSL on 64-bit x86, with Python 3.12 or newer. The compiler, CMake and Ninja are pinned by version and hash, so Windows and WSL build with the same tools.

Terminal
git clone https://github.com/rizonesoft/ImpossibleSDK.git
cd ImpossibleSDK
python tools/bootstrap.py    # installs the pinned toolchain, once per machine
python tools/build.py        # builds into build/<host> and runs the tests

Pick a tier, and that is all a program can call

A program names the highest of 6 tiers it needs. Each drawer includes the ones above it. The build reads the finished program and fails on anything else. The whole list

Compared with the real thing, pixel by pixel

Impossible UI draws Windows 11's controls in portable C: no system call, no floating point, no C library. Values come from WinUI 3's MIT source at a pinned commit. Drag to compare.

Impossible UIReal WinUI 3
Sixteen buttons drawn by real WinUI 3The same sixteen buttons drawn by Impossible UI

Standard and accent buttons at rest, hovered, pressed and disabled, dark and light, in the accent colour of the test machine. Straight edges and fills may differ by 1 of 255; corners have their own limit.

What works today

AreaStateWhat you get
Start-up, memory, text, files, consoleWorksbase.h, text.h, file.h: UTF-8 everywhere, safe file replacement
One windowWorkswindow.h: a canvas of pixels, pointer, keys and DPI
Import checkWorkscheck_imports.py, run on every program
Pinned toolchainWorksllvm-mingw, CMake and Ninja by version and hash, the same on Windows and WSL
Impossible UI: drawing, theme, buttonWorksLight, dark and contrast values, smooth corners, the button, compared with real WinUI
Impossible UI: engine and textPlannedInterface engine and text engine
Impossible UI: controls and dialogsPlannedControls, more controls and dialogs
Picture formats, shared partsPlannedFormats and shared parts
Network: TLS, HTTP, kept secretsPlannedNetwork
Web readers: HTML and CSSPlannedWeb
Clipboard, input methods, screen readers, sound, settingsPlannedWindows services
PrintingPlannedPrinting
Installer, first releasePlannedParts and release

Each row that works names the tests that prove it, and they pass before this page is published. See the whole plan

Made for Impossible OS, useful without it

Every function on the list becomes a section of the operating system's roadmap. Programs and controls are imported there at a pinned commit, and changes come back as pull requests. Neither side waits for the other.

Visit impossibleos.coHow the two fit

  1. The list153 functions in 6 tiers
  2. Your programRuns on Windows today
  3. Impossible OSImports it at a pinned commit