{
  "markdown": "# bun-win32\n\nZero-dependency Win32 FFI bindings for [Bun](https://bun.sh) on Windows. Each system DLL is a standalone `@bun-win32/*` package with full type definitions.\n\n## Install\n\n```sh\n# Per-DLL packages:\nbun add @bun-win32/kernel32 @bun-win32/user32 # etc...\n\n# Or pull the entire surface in one install:\nbun add @bun-win32/all     # scoped meta-package\nbun add bun-win32          # unscoped alias for the same surface\n```\n\nRequires Bun >= 1.1.0 and Windows 10+.\n\n## Usage\n\nAfter the first call resolves the symbol via `dlopen`/`dlsym`, the native function pointer is cached directly on the class. Every subsequent call is a straight pointer invocation through Bun's FFI - no marshaling layer, no runtime type checks, no wrapper overhead. It's the same codepath as calling the C function yourself.\n\nFor hot paths, `Preload()` resolves symbols eagerly so even the first call pays zero binding cost:\n\n```ts\nimport Kernel32 from '@bun-win32/kernel32';\n\nconst pid = Kernel32.GetCurrentProcessId();\nconst ticks = Kernel32.GetTickCount64();\n```\n\n```ts\nimport User32 from '@bun-win32/user32';\n\nUser32.Preload(['GetForegroundWindow', 'SetWindowPos']);\n\nconst { GetForegroundWindow, SetWindowPos } = User32;\n\nSetWindowPos(hWnd, 0n, x, y, width, height, flags);\n```\n\n> [!IMPORTANT]\n> If you destructure before binding, you capture the lazy wrapper instead of the native function.\n\n## Packages\n\nAll type definitions are provided by [`@bun-win32/core`](./packages/core).\n\nPublished packages are AI-friendly. Alongside the `README.md`, each package includes an `AI.md` file that documents the binding contract, type surface, and source layout so coding agents can use the package correctly.\n\n#### Graphics & Windowing\n\n- [`comctl32`](./packages/comctl32) - common controls, image lists, property sheets, DPA/DSA dynamic arrays, flat scroll bars, window subclassing\n- [`comdlg32`](./packages/comdlg32) - common dialogs: Open / Save File, Choose Color, Choose Font, Print, Page Setup, Find / Replace, and `CommDlgExtendedError`\n- [`d2d1`](./packages/d2d1) - Direct2D: GPU-accelerated 2D — `ID2D1Factory` / device-context creation plus Direct2D's native affine-matrix, color-space (sRGB / scRGB), gradient-mesh (Coons-patch), and trig / vector math (`D2D1CreateFactory`, `D2D1MakeRotateMatrix`, `D2D1ConvertColorSpace`, …)\n- [`d3d11`](./packages/d3d11) - Direct3D 11 device / swap-chain creation, D3D11-on-12 interop, WinRT `IDirect3DDevice` / `IDirect3DSurface` bridges\n- [`d3d12`](./packages/d3d12) - Direct3D 12 device creation, debug-layer / global-interface access, and root-signature serialize/deserialize (`D3D12CreateDevice`, `D3D12GetDebugInterface`, `D3D12GetInterface`, `D3D12SerializeVersionedRootSignature`, …) — modern GPU/compute/ML path\n- [`d3dcompiler_47`](./packages/d3dcompiler_47) - HLSL → DXBC shader compilation, preprocessing, disassembly, reflection, blob part extraction, shader stripping, function linking graph\n- [`dcomp`](./packages/dcomp) - DirectComposition device/surface creation (`DCompositionCreateDevice`/`2`/`3`, `DCompositionCreateSurfaceHandle`) and the Windows-11 compositor-clock frame/statistics surface (`DCompositionGetFrameId`, `DCompositionGetStatistics`, `DCompositionWaitForCompositorClock`, `DCompositionBoostCompositorClock`) — live compositor heartbeat proven pure-FFI\n- [`dwmapi`](./packages/dwmapi) - DWM composition, blur, thumbnails\n- [`dwrite`](./packages/dwrite) - DirectWrite factory entry point (`DWriteCreateFactory`): system font enumeration, text layout, glyph metrics, and pure-FFI ClearType/grayscale glyph rasterization over the `IDWriteFactory` COM vtable\n- [`dxcore`](./packages/dxcore) - DXCore adapter-factory entry point (`DXCoreCreateAdapterFactory`): DXGI-independent GPU & compute-only MCDM adapter enumeration, hardware IDs, memory pools, and capability/attribute queries over the `IDXCoreAdapterFactory`/`List`/`Adapter` COM vtable\n- [`dxgi`](./packages/dxgi) - DXGI adapter enumeration, factory creation, debug interface (`CreateDXGIFactory*`, `DXGIGetDebugInterface1`)\n- [`dxva2`](./packages/dxva2) - DDC/CI monitor configuration (brightness, contrast, RGB drive/gain, colour temperature, VCP), physical monitor enumeration, DXVA2 / DXVA-HD video acceleration, OPM video output\n- [`gdi32`](./packages/gdi32) - graphics device interface\n- [`gdiplus`](./packages/gdiplus) - GDI+ flat C API: image load/save (PNG, JPEG, BMP, GIF, TIFF, ICO), antialiased 2D drawing, paths, regions, gradients, brushes, fonts, color matrix effects, metafile recording\n- [`glu32`](./packages/glu32) - OpenGL utility functions\n- [`magnification`](./packages/magnification) - Magnification API: recolor the entire desktop via a 5x5 color matrix (grayscale, photo-negative, sepia, color-blindness simulation), full-screen zoom/pan transforms, magnifier-control window filtering, and pen/touch input remapping\n- [`mscms`](./packages/mscms) - Image Color Management (ICM): ICC profiles, color transforms, sRGB / Adobe RGB / CMYK conversion via Win32 CMM, display calibration, and the Windows Color System (WCS) profile management API\n- [`opengl32`](./packages/opengl32) - OpenGL rendering context\n- [`user32`](./packages/user32) - windows, messages, input, UI\n- [`uxtheme`](./packages/uxtheme) - visual styles, themed controls, buffered painting\n- [`windowscodecs`](./packages/windowscodecs) - Windows Imaging Component (WIC): zero-build image decode/encode (JPEG, PNG, GIF, TIFF, BMP, HEIF), scaling, flip/rotate, pixel-format conversion, palettes, color contexts, and metadata — the full proxy-function surface\n\n#### Multimedia\n\n- [`avifil32`](./packages/avifil32) - Video for Windows AVIFile API: open/create `.avi` files, enumerate streams, read/write video, audio, MIDI, and text streams, decode frames to DIBs (`AVIStreamGetFrame`), mux files from streams, editable-stream cut/copy/paste\n- [`avrt`](./packages/avrt) - MMCSS multimedia thread scheduling: join system-profile tasks (\"Pro Audio\", \"Games\", …), raise AVRT priority, query the system-responsiveness reservation, and coordinate thread-ordering groups (`AvSetMmThreadCharacteristicsW`, `AvSetMmThreadPriority`, `AvQuerySystemResponsiveness`, `AvRtCreateThreadOrderingGroup`) — the low-latency audio/capture scheduling primitives\n- [`dinput8`](./packages/dinput8) - DirectInput 8: every non-Xbox controller — racing wheels, flight sticks / HOTAS, generic gamepads (`DirectInput8Create`, `GetdfDIJoystick`); device enumeration, capabilities, acquisition, and polling over the `IDirectInput8` COM vtable\n- [`directml`](./packages/directml) - Vendor-neutral, Direct3D 12-backed machine-learning device creation (`DMLCreateDevice`, `DMLCreateDevice1`); creates a real `IDMLDevice` over an `ID3D12Device` and decodes its true max feature level over the `IDMLDevice` COM vtable — DirectML shipped, proven pure-FFI, audit 0 mismatches\n- [`dsound`](./packages/dsound) - DirectSound: playback / capture device creation & enumeration, full-duplex, and default-device GUID resolution (`DirectSoundCreate8`, `DirectSoundEnumerateW`, `GetDeviceID`, …) — synthesize and play PCM end-to-end over the `IDirectSound8` / `IDirectSoundBuffer` COM vtable\n- [`gameinput`](./packages/gameinput) - GameInput, the modern unified input model — `GameInputCreate` Nano-COM factory + `Dll*` COM-server entries; gamepad / keyboard / mouse / flight & arcade stick / racing wheel / sensor readings over the `IGameInput` COM vtable\n- [`mf`](./packages/mf) - Media Foundation pipeline: source resolver, ASF authoring graph (profile / multiplexer / indexer / splitter / stream selector), container media sinks (MP3 / AC-3 / ADTS / MPEG-4 / fragmented-MP4 / 3GP), streaming sinks, video renderer, network credential / proxy, and the protected-environment / signed-library surface (`MFCreateSourceResolver`, `MFCreateASFProfile`, `MFCreateMPEG4MediaSink`, `MFGetSupportedSchemes`, …)\n- [`mfplat`](./packages/mfplat) - Media Foundation platform: lifecycle, work queues, MFT registry, media type / sample / byte stream factories (`MFStartup`, `MFTEnumEx`, `MFCreateAttributes`, `MFCreateSample`)\n- [`mfreadwrite`](./packages/mfreadwrite) - Media Foundation source reader / sink writer factories (`MFCreateSourceReader*`, `MFCreateSinkWriter*`)\n- [`mmdevapi`](./packages/mmdevapi) - MMDevice / Core Audio class factory, WASAPI async activation (`DllGetClassObject`, `ActivateAudioInterfaceAsync`)\n- [`quartz`](./packages/quartz) - DirectShow runtime: HRESULT → text (`AMGetErrorTextA`/`W`) and the Filter Graph Manager `Dll*` COM server (`CLSID_FilterGraph` → `IGraphBuilder`); reaches legacy webcams / capture cards / codecs Media Foundation misses\n- [`winmm`](./packages/winmm) - multimedia audio, MIDI, mixers, timers, joysticks, MCI\n- [`xaudio2_9`](./packages/xaudio2_9) - XAudio2 2.9: low-latency audio engine + voice graph, X3DAudio positional math (matrix / Doppler / LPF solve), and every built-in XAPO — volume meter, reverb, FXEQ / FXMasteringLimiter / FXReverb / FXEcho (`XAudio2Create`, `X3DAudioInitialize`, `X3DAudioCalculate`, `CreateAudioVolumeMeter`, `CreateFX`); synthesize and play PCM end-to-end over the `IXAudio2` / `IXAudio2SourceVoice` COM vtable\n- [`xinput1_4`](./packages/xinput1_4) - XInput 1.4: Xbox controller state, vibration, battery, audio, keystroke\n- [`xinput9_1_0`](./packages/xinput9_1_0) - XInput 9.1.0: legacy Xbox controller state, vibration, DirectSound GUIDs\n\n#### Networking\n\n- [`bluetoothapis`](./packages/bluetoothapis) - Bluetooth Classic radio/device discovery, BLE GATT, SDP, authentication\n- [`dnsapi`](./packages/dnsapi) - DNS resolution across every record type (A, AAAA, MX, NS, SOA, TXT, SRV, CAA, etc.), name validation, configured server discovery, DNS-SD, mDNS, async queries\n- [`firewallapi`](./packages/firewallapi) - Windows Firewall policy via the FirewallAPI.dll COM server (`INetFwPolicy2` profile state through `DllGetClassObject`) plus the 9 documented network-isolation / AppContainer functions (enumerate, free, config, change subscriptions, connect-failure diagnostics) — all 13 documented exports\n- [`fwpuclnt`](./packages/fwpuclnt) - Windows Filtering Platform: Base Filtering Engine sessions/transactions, provider/sub-layer/layer/callout/filter CRUD + enumeration + change subscriptions, IPsec SA/tunnel/key-manager, IKE/AuthIP SAs, net-event diagnostics, ALE endpoints, Winsock secure-socket extensions — all 199 documented exports\n- [`httpapi`](./packages/httpapi) - HTTP Server API (HTTP.sys): kernel-mode listener powering IIS, request queues, URL groups, server sessions, SSL/TLS config, response caching, HTTP/2 push, request shaping\n- [`iphlpapi`](./packages/iphlpapi) - network adapters, TCP/UDP tables, routing\n- [`mpr`](./packages/mpr) - network drive mapping, UNC connections, resource enumeration\n- [`netapi32`](./packages/netapi32) - users, groups, shares, domain joins\n- [`ntdsapi`](./packages/ntdsapi) - Active Directory client: directory bind (`DsBind*`), name-format translation (`DsCrackNames`), Kerberos SPN forge/register (`DsGetSpn`, `DsClientMakeSpnForTargetServer`, `DsWriteAccountSpn`), site/server/role/DC enumeration, replication control (`DsReplicaSync`/`Add`/`GetInfo`), SID-history migration — all 81 documented exports, SPN + syntactical name-cracking work with no domain\n- [`sensapi`](./packages/sensapi) - System Event Notification Service connectivity checks (`IsNetworkAlive`, `IsDestinationReachable`)\n- [`winhttp`](./packages/winhttp) - HTTP/HTTPS client, WebSockets, proxy auto-detect (WPAD/PAC), TLS configuration, request tracing\n- [`wininet`](./packages/wininet) - WinINet/IE-legacy stack: HTTP/HTTPS, FTP, persistent URL cache, cookie jar (`InternetGetCookieEx2`, `InternetSetCookieEx2`), autodial, per-site cookie decisions\n- [`wlanapi`](./packages/wlanapi) - Native Wifi: interface enumeration, scans, profiles, Wi-Fi Direct\n- [`wldap32`](./packages/wldap32) - LDAP client: directory bind/auth, search, modify, add/delete/rename/compare, extended operations, server/client controls, paged / sorted / virtual-list-view results, StartTLS, and the BER (winber) encode/decode primitives\n- [`ws2_32`](./packages/ws2_32) - Winsock 2: BSD sockets, DNS, network I/O\n\n#### Printing\n\n- [`prntvpt`](./packages/prntvpt) - Print Ticket / Print Schema: PrintCapabilities, DEVMODE ⇄ Print Ticket conversion, merge & validate\n- [`winspool`](./packages/winspool) - printer management, print jobs, spooler control, drivers\n\n#### Remote Desktop & Terminal Services\n\n- [`wtsapi32`](./packages/wtsapi32) - Terminal Services sessions, processes, virtual channels, remote desktop\n\n#### Security & Crypto\n\n- [`advapi32`](./packages/advapi32) - registry, security descriptors, service control\n- [`amsi`](./packages/amsi) - Antimalware Scan Interface: submit scripts/buffers to the registered AV provider (Defender) for in-process scanning (`AmsiInitialize`, `AmsiScanBuffer`, `AmsiScanString`, `AmsiNotifyOperation`) — EICAR detection proven pure-FFI, no shelling out\n- [`bcrypt`](./packages/bcrypt) - Cryptography Next Gen (CNG): ciphers, hashes, HMAC, PBKDF2, signatures, random bytes, key agreement\n- [`credui`](./packages/credui) - credential prompts, username parsing, auth blobs, and SSPI prompt helpers\n- [`crypt32`](./packages/crypt32) - certificate stores, chains, encoding, DPAPI\n- [`fveapi`](./packages/fveapi) - BitLocker / Full Volume Encryption (`fveapi.dll`): all 162 exports — volume open / lock / unlock, protection & conversion status, key packages, recovery-password backup, device-encryption support, and the DMA / HSTI security checks\n- [`ncrypt`](./packages/ncrypt) - CNG Key Storage: persisted keys, RSA/ECDSA/ECDH signing & key agreement, key attestation claims, DPAPI-NG protection descriptors and streaming\n- [`secur32`](./packages/secur32) - SSPI authentication, credentials, LSA\n- [`sspicli`](./packages/sspicli) - SSPI client-side auth and SASL\n- [`tbs`](./packages/tbs) - TPM Base Services: open a TBS context, submit raw TPM 2.0 command buffers, read the TCG measured-boot log, query device ID / owner-auth (`Tbsi_Context_Create`, `Tbsip_Submit_Command`, `Tbsi_Get_TCG_Log`, `GetDeviceID`) — TPM2_GetRandom / GetCapability proven pure-FFI against real hardware\n- [`webauthn`](./packages/webauthn) - WebAuthn / FIDO2: drive the Windows platform authenticator (Windows Hello biometrics + TPM-backed passkeys) — passkey registration & assertion, platform-credential enumeration/deletion, cancellation, and W3C `DOMException` error mapping (`WebAuthNAuthenticatorMakeCredential`, `WebAuthNAuthenticatorGetAssertion`, `WebAuthNGetPlatformCredentialList`) — a real Windows Hello passkey ceremony proven pure-FFI\n- [`winscard`](./packages/winscard) - smart card resource manager, reader discovery, status changes, and APDU transport\n- [`wintrust`](./packages/wintrust) - Authenticode signature verification (WinVerifyTrust), catalog admin, SIP, and trust-provider helpers\n- [`wscapi`](./packages/wscapi) - Windows Security Center: aggregate provider health (firewall, antivirus, auto-update, UAC, WSC service) and change registration (`WscGetSecurityProviderHealth`, `WscRegisterForChanges`) — live security posture without parsing PowerShell\n\n#### System\n\n- [`activeds`](./packages/activeds) - Active Directory Service Interfaces (ADSI): bind a directory object by ADsPath to `IADs` / `IADsContainer` (`ADsGetObject`, `ADsOpenObject`), enumerate container children, and round-trip binary security descriptors — WinNT / LDAP providers\n- [`cabinet`](./packages/cabinet) - Compression API (MSZIP / XPRESS / XPRESS-Huffman / LZMS) plus Cabinet (.cab) archive creation and extraction via the FCI / FDI callback interfaces\n- [`cfgmgr32`](./packages/cfgmgr32) - device tree traversal, configuration management, device properties, interfaces, resources\n- [`cldapi`](./packages/cldapi) - Cloud Files API (`cfapi.h`): all 35 documented exports — sync-root register/connect, placeholder create/convert/update/revert, hydrate/dehydrate, transfer keys, pin & in-sync state, placeholder/sync-root info, and platform version — the OneDrive Files On-Demand engine that projects zero-byte-on-disk placeholder files, proven pure-FFI\n- [`clfsw32`](./packages/clfsw32) - Common Log File System: all 53 documented user-mode + management exports — dedicated/multiplexed log creation, containers, marshaling areas, durable record reserve/append, archival, the CLFS management policy surface, and the 8-byte by-value `CLFS_LSN` algebra (`LsnCreate`/`LsnContainer`/`LsnBlockOffset`/`LsnRecordSequence`) — the kernel write-ahead-log engine behind TxF/TxR, proven pure-FFI\n- [`clusapi`](./packages/clusapi) - Failover Cluster API: cluster / node / group / resource / network / netinterface lifecycle, the full open / enum / control families, the cluster registry batch API, and notification ports — all 205 documented exports\n- [`combase`](./packages/combase) - Windows Runtime activation core: `RoInitialize`/`RoActivateInstance`/`RoGetActivationFactory`, the full `HSTRING` string API, fast-pass/preallocated buffers, and the WinRT error-info surface — the pure-FFI path to toast notifications and the rest of the WinRT projection\n- [`dbghelp`](./packages/dbghelp) - symbol engine, stack walking, minidumps, image helpers, source-level debugging\n- [`dismapi`](./packages/dismapi) - DISM image servicing: online/offline sessions, optional features, packages, drivers, capabilities, image health (`DismInitialize`, `DismOpenSession`, `DismGetFeatures`, `DismCheckImageHealth`) — the `DISM.exe` engine in-process, no spawn\n- [`fltlib`](./packages/fltlib) - Filter Manager (`fltuser.h`): minifilter / instance / volume enumeration, info queries, load/unload, attach/detach, and the minifilter communication-port channel (`FilterFindFirst`, `FilterInstanceFindFirst`, `FilterVolumeFindFirst`, `FilterConnectCommunicationPort`) — the file-system filter stack `fltmc` shows, pure-FFI\n- [`hid`](./packages/hid) - HID device access, feature reports, preparsed data parsing\n- [`kernel32`](./packages/kernel32) - processes, memory, files, console, threads\n- [`ktmw32`](./packages/ktmw32) - Kernel Transaction Manager (KTM): create/open transactions, transaction managers, resource managers, and enlistments; two-phase commit/rollback (`CreateTransaction`, `CommitTransaction`, `RollbackTransaction`, `CreateResourceManager`, `CreateEnlistment`) — atomic transacted-NTFS / transacted-registry work, pure-FFI\n- [`mi`](./packages/mi) - Windows Management Infrastructure client bootstrap and function-table discovery\n- [`msi`](./packages/msi) - Windows Installer: product enumeration, install state, database, patching\n- [`ntdll`](./packages/ntdll) - native NT API\n- [`normaliz`](./packages/normaliz) - internationalized domain names, Nameprep, and Unicode normalization\n- [`ole32`](./packages/ole32) - COM/OLE helpers, monikers, structured storage, clipboard, drag-drop\n- [`oleacc`](./packages/oleacc) - Microsoft Active Accessibility (MSAA): resolve `IAccessible` from a window or screen point, walk the accessibility tree, decode role/state text, marshal objects to/from `LRESULT`\n- [`oleaut32`](./packages/oleaut32) - OLE Automation: BSTR, VARIANT, SAFEARRAY, DECIMAL, CURRENCY, type libraries, IDispatch helpers, OLE pictures, full Var\\*From\\* conversion family\n- [`pdh`](./packages/pdh) - performance counter queries, logs, and enumeration\n- [`powrprof`](./packages/powrprof) - power schemes, policies, sleep states, battery management\n- [`propsys`](./packages/propsys) - Windows Property System: full PROPVARIANT/VARIANT conversion families, vector/array helpers, property keys (`PSGetPropertyKeyFromName`), property descriptions, property stores/bags, and `PropVariantCompareEx` (Explorer's value comparator)\n- [`psapi`](./packages/psapi) - process status and module enumeration\n- [`rasapi32`](./packages/rasapi32) - Remote Access Service: dial-up/VPN dialing and hang-up, connection enumeration and status, phone-book entry/sub-entry/credentials/dial-params management, autodial, projection info, link/connection statistics, EAP user data\n- [`rpcrt4`](./packages/rpcrt4) - RPC runtime: UUID generation (random + sequential), client/server bindings, endpoint mapper enumeration, authentication levels, extended error info, protocol sequences, MES pickling, string-binding compose/parse, `DceErrorInqText`\n- [`rstrtmgr`](./packages/rstrtmgr) - Restart Manager sessions, lock discovery, shutdown, and restart orchestration\n- [`setupapi`](./packages/setupapi) - device installation, INF parsing, class and interface enumeration\n- [`shcore`](./packages/shcore) - DPI awareness, scale factors, AppUserModelID, random access streams, registry helpers, isolated-container detection, threading refs\n- [`shell32`](./packages/shell32) - shell operations and file management\n- [`shlwapi`](./packages/shlwapi) - shell lightweight utility functions\n- [`srclient`](./packages/srclient) - System Restore client: create / begin / end restore points (`SRSetRestorePointW`/`A`) and remove them (`SRRemoveRestorePoint`) — `RESTOREPOINTINFO` / `STATEMGRSTATUS` `pack(1)` structs\n- [`taskschd`](./packages/taskschd) - Task Scheduler COM server entry points, class factory activation, task enumeration\n- [`tdh`](./packages/tdh) - Trace Data Helper: ETW event decoding (`TdhGetEventInformation`, `TdhFormatProperty`), provider / field / event-schema enumeration, value & bitmap maps, manifest loading, and payload filters\n- [`uiautomationcore`](./packages/uiautomationcore) - UI Automation nodes, pattern objects, provider bridging, and event plumbing\n- [`userenv`](./packages/userenv) - user profiles, environment blocks, and Group Policy\n- [`version`](./packages/version) - file version resources, string tables, installer version helpers\n- [`virtdisk`](./packages/virtdisk) - VHD, VHDX, and ISO virtual disk creation, attachment, inspection, and management\n- [`vssapi`](./packages/vssapi) - Volume Shadow Copy Service: the `IVssBackupComponents` backup engine (`CreateVssBackupComponents`), writer-metadata examination, shadow-copy presence (`IsVolumeSnapshotted`), and revert-block policy — the documented `vsbackup.h` surface\n- [`wer`](./packages/wer) - Windows Error Reporting report authoring/stores (`WerReportCreate`, `WerReportSubmit`, `WerStoreOpen`, `WerStoreQueryReportMetadataV2`) plus the Wait Chain Traversal deadlock-detection API (`OpenThreadWaitChainSession`, `GetThreadWaitChain`) — live kernel thread-wait X-ray proven pure-FFI\n- [`wevtapi`](./packages/wevtapi) - Windows Event Log queries, rendering, subscriptions, channel configuration, publisher metadata\n- [`wimgapi`](./packages/wimgapi) - Windows Imaging (WIM): create/open `.wim` archives, capture/apply/enumerate images, mount/unmount/split/export, references, and live progress via a `WIMRegisterMessageCallback` JSCallback — the `DISM.exe`/`ImageX` engine in-process\n- [`windowsaccessbridge-64`](./packages/windowsaccessbridge-64) - Java Access Bridge: classify Java/Swing windows (`isJavaWindow`), walk the AccessibleContext tree (`getAccessibleContextFromHWND` / `getAccessibleContextInfo` / `getAccessibleChildFromContext`), read text/table/hypertext/value/selection info, drive actions, and register event callbacks — all 97 exports, proven against a live JDK Swing app\n- [`winusb`](./packages/winusb) - WinUSB device I/O, descriptors, pipes, policies, and isochronous transfers\n- [`wuapi`](./packages/wuapi) - Windows Update Agent COM server (`Dll*` entries): the Windows Update object model — `IUpdateSession` / `IUpdateSearcher` / update-history enumeration and result decoding over the COM vtable\n\n## Project Structure\n\n```text\nbun-win32/\n|-- bin/\n|-- packages/\n|   |-- core/\n|   |-- template/\n|   |-- advapi32/\n|   |-- ...\n|   |-- uiautomationcore/\n|   `-- wtsapi32/\n|-- scripts/\n|-- AGENTS.md\n|-- PROMPT.md\n`-- README.md\n```\n\n## Generating a New Package\n\nAll packages in this repo are AI-generated using Claude Code. To add bindings for a new DLL:\n\n1. Open the repo in Claude Code.\n2. Set the model to **max effort** with **extended thinking** enabled.\n3. Send:\n\n```\nExecute @PROMPT.md for `crypt32`.\n```\n\nReplace `crypt32` with whatever DLL you're targeting. `PROMPT.md` uses the scaffold, catalog, runtime-probe, stub-scaffold, and audit scripts to keep the work mechanical, resumable, and less error-prone.\n\n## License\n\nMIT\n",
  "bytes": 24238,
  "sha": "b7af8801e220c848d0b291b0fc737724dca6b9f97f55eeb360735d5d217f58d7",
  "repo_slug": "obscuritysrl/bun-win32",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_obscuritysrl_bun_uia_6399846b/readme"
}