Skip to content

Document tbKMode 0.3.0.5, an experimental package. - #272

Merged
KubaO merged 24 commits into
twinbasic:mainfrom
KubaO:staging
Nov 17, 2026
Merged

KubaO merged 24 commits into
twinbasic:mainfrom
KubaO:staging

Conversation

@KubaO

@KubaO KubaO commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

KubaO added 24 commits November 17, 2026 19:11
…a driver, the names it shares with VBA, its main defects) and the pages of its six modules (modWDM, modFltMgr, modSysInfo, modDisk, modImage, modKmOpaque), its snapshot and sample template, and its test project (layout and value cases generated from the WDK's headers by wdk/, compile cases, and exe cases against a stand-in ntoskrnl.exe built with MSVC, which package_tests prepares through exe/prepare.mjs); two comments in check_twin_parsers reworded; two tbKMode leads in WIP.BugHunt
… its procedures imports user-mode DLLs), backed by a probe/ that builds drivers and reads their import tables; modWDM's export NOTE says ZwCreateUserProcess is the kernel's unnamed ordinal 2 (a new case) and ExFreePool2 is Windows 11 and Server 2022 on
…xe, hal.dll and fltmgr.sys of Windows 10 22H2 and 11 23H2 to 26H1 from the Microsoft symbol server (keys from Winbindex) and records their exports in db/kernels.json; verify.mjs imports checks a built driver's import table against it, which the probe now uses
…(its installer read as data, only the headers-and-libs package fetched, SHA-1 checked), with each routine's decorated symbol; db/kernels.json format 2 is updated rather than rebuilt (--refresh, --rebuild), and imports checks a 32-bit driver too
…th the shared scanner and checks each Declare per arch its #If compiles it for (export of its file in every build, another file or an ordinal-only export said; on x86 FastCall/CDecl against the decorated symbol, and argument bytes); a self-test in its own folder, outside test.bat and CI (owner: a package's tools run only when its section is updated)
… when its folder holds a publish.json (builder/package-tests.mjs: its files, rewrite and vendor, LF and a fixed time); the zip writer moves to lib/zip.mjs; check_tree_fresh watches the scanner the verifier's zip copies; test/package-tests/README.md states the rules for a package's tools (owner: run only when its section is updated, documented with the package)
…landing page, and its card on the Downloads page
…probe, verifier), the upstream issues and the leads; WIP.Contributed.md: a package's own tools are run when its section is updated, never in a gate, and documented with the package (owner)
…, alone and only touches it, and writes a changed one with the file's own line ends, so a checkout's mtimes no longer make a build show SVGs as changed, with or without core.autocrlf
…ers (structures, values, prototypes, x86 and x64, from an MSVC program; WDK 10.0.22621's headers read from its bundle with its MSI), and check compares the package with them, 22621 deciding and 28000 adding notes: each Type laid out as twinBASIC does, each value, each Declare's prototype
…m the verifier's WDK database of 10.0.22621, the package's kit, with limits.h; wdk/declares.mjs, wdk/msvc.mjs and the module configs retired (verifier/config/tbKMode.json); expect.json recorded
…ith the WDK's headers; modWDM and modImage callouts follow WDK 10.0.22621, the package's kit (values and sizes right for it move out of the callouts, KUSER_SHARED_DATA's numbers are 22621's)
…ed to the cases and Learn, and the lessons of writing the databases
… a routine the driver imports from another (on x86, hal.dll)
…f a routine that the x86 hal.dll exports (the fast mutexes, the IRQL routines, KeReleaseSpinLock) or that no x86 file exports (KeAcquireSpinLockRaiseToDpc, the Rtl...BitsEx routines), backed by probe x86exports; ExInterlockedAddUlong joins the 32-bit fastcall warning, with its case and an x86 stand-in
…hift wraps to its left operand's, so &Hff << 24 is 0), and a negative value is shown in hex as the bits of a Long
…it points to (p8>p8>s336:_DEVICE_OBJECT), a structure the headers do not define is s?:<name>; both kits rebuilt
…ine's pointer points to (a structure for the address of a pointer, a variable smaller than the pointee), finding IoCreateDevice, SeLocateProcessImageName and ExInitializeNPagedLookasideList
…a BOOLEAN (owner), finding ExTryToAcquireFastMutex
…t is an integer (BOOLEAN, LOGICAL or ULONG), and the message names its size
…es reviewed (owner); package-tests README: the exe/ folder is not published, and RunAll does not run its cases
…escription of each name (test/package-tests/tbKMode/writer), extracted from the reviewed pages; its page after the verifier's; modDisk's rows in alphabetical order
@KubaO
KubaO merged commit 1568fea into twinbasic:main Nov 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant