mirror of
https://github.com/clang-retro/win16-sdk.git
synced 2026-11-28 13:19:24 -08:00
A VBX is a DLL that Visual Basic 1.0, 2.0 and 3.0 load. vbapi.h has the custom control interface: MODEL, PROPINFO, EVENTINFO, the VBM_ messages and the VB functions. The VB functions are not exports of a module: Visual Basic puts its dispatcher at SS:0x20, and each function is a stub that jumps there with its number in BX. vbapi/vbapi.S has the stubs; build-sysroot.sh and make-dist.sh put them in lib/win16/vbapi.lib. The numbers come from the CDK's VBAPI.LIB. tests/win16/vbxctl.c is a counter control. run-tests.sh checks its imports and exports, and the test checks the structure sizes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B82eRV6wfb9PKGryxuRrjF