{"_id":"@bun-win32/iphlpapi","_rev":"8-5f4c0b50952e66c28a11418c66213834","name":"@bun-win32/iphlpapi","dist-tags":{"latest":"2.0.1"},"versions":{"1.0.0":{"name":"@bun-win32/iphlpapi","version":"1.0.0","keywords":["bun","ffi","win32","windows","iphlpapi","bindings","typescript","dll","network","tcp","udp","icmp","ip"],"author":"Stev Peifer <stev@bell.net>","license":"MIT","_id":"@bun-win32/iphlpapi@1.0.0","maintainers":[{"name":"obscuritysrl","email":"stev@bell.net"}],"homepage":"https://github.com/ObscuritySRL/bun-win32#readme","bugs":{"url":"https://github.com/ObscuritySRL/bun-win32/issues"},"dist":{"shasum":"0b835d39dccd4b6b30d24838fe7ae7a4fcac7ec5","tarball":"https://registry.npmjs.org/@bun-win32/iphlpapi/-/iphlpapi-1.0.0.tgz","fileCount":5,"integrity":"sha512-23a8M4fDGnJbqBsiZGD/GkFmf3DbaJq9lrwalDdgWQKX7MR7hHzIf/l97M1lfztPYoZBJYwGaKLXeCrIJxb5uw==","signatures":[{"sig":"MEYCIQC3H3dE4wYsaGhk5XPUztTDAPgl2OCfENLvSzYKSNsqIQIhAK2j2OI0WsLfZ2C11mbebxHslbXv0lDvPCqHw/KsFVqg","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":76241},"main":"./index.ts","type":"module","module":"index.ts","shasum":"0b835d39dccd4b6b30d24838fe7ae7a4fcac7ec5","engines":{"bun":">=1.1.0"},"exports":{".":"./index.ts"},"private":false,"scripts":{"example":"bun ./example/iphlpapi.ts"},"_npmUser":{"name":"obscuritysrl","email":"stev@bell.net"},"_integrity":"sha512-23a8M4fDGnJbqBsiZGD/GkFmf3DbaJq9lrwalDdgWQKX7MR7hHzIf/l97M1lfztPYoZBJYwGaKLXeCrIJxb5uw==","repository":{"url":"git://github.com/ObscuritySRL/bun-win32.git","type":"git","directory":"packages/iphlpapi"},"_npmVersion":"10.8.3","description":"Zero-dependency, zero-overhead Win32 IPHLPAPI bindings for Bun (FFI) on Windows.","directories":{},"sideEffects":false,"_nodeVersion":"24.3.0","dependencies":{"@bun-win32/core":"1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest"},"peerDependencies":{"typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/iphlpapi_1.0.0_1775492828325_0.6634586820193475","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@bun-win32/iphlpapi","version":"1.0.1","keywords":["bun","ffi","win32","windows","iphlpapi","bindings","typescript","dll","network","tcp","udp","icmp","ip"],"author":"Stev Peifer <stev@bell.net>","license":"MIT","_id":"@bun-win32/iphlpapi@1.0.1","maintainers":[{"name":"obscuritysrl","email":"stev@bell.net"}],"homepage":"https://github.com/ObscuritySRL/bun-win32#readme","bugs":{"url":"https://github.com/ObscuritySRL/bun-win32/issues"},"dist":{"shasum":"3a094540a52ef1df40113bcb5d74087dc155c680","tarball":"https://registry.npmjs.org/@bun-win32/iphlpapi/-/iphlpapi-1.0.1.tgz","fileCount":6,"integrity":"sha512-tKhu2xkw5qPW0Wb2Df0FjDbZCKRb9atRVY2D0wH6RgEWMxbpHzjHHpw8ApGU7beKcn1e15P5sxCEZWo+kemPGg==","signatures":[{"sig":"MEQCIGAnFvst0AiMz0f/XU0zrXKSl/c0FOvH9HdII8QKuSiRAiBKEpF2J44+zc4O21Dw+VuI980lN82UCzaXpX9hzsFlFA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":77301},"main":"./index.ts","type":"module","module":"index.ts","shasum":"3a094540a52ef1df40113bcb5d74087dc155c680","engines":{"bun":">=1.1.0"},"exports":{".":"./index.ts"},"private":false,"scripts":{"example":"bun ./example/iphlpapi.ts"},"_npmUser":{"name":"obscuritysrl","email":"stev@bell.net"},"_integrity":"sha512-tKhu2xkw5qPW0Wb2Df0FjDbZCKRb9atRVY2D0wH6RgEWMxbpHzjHHpw8ApGU7beKcn1e15P5sxCEZWo+kemPGg==","repository":{"url":"git://github.com/ObscuritySRL/bun-win32.git","type":"git","directory":"packages/iphlpapi"},"_npmVersion":"10.8.3","description":"Zero-dependency, zero-overhead Win32 IPHLPAPI bindings for Bun (FFI) on Windows.","directories":{},"sideEffects":false,"_nodeVersion":"24.3.0","dependencies":{"@bun-win32/core":"1.1.1"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest"},"peerDependencies":{"typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/iphlpapi_1.0.1_1775514755475_0.5668921043525803","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@bun-win32/iphlpapi","version":"1.0.2","keywords":["bun","ffi","win32","windows","iphlpapi","bindings","typescript","dll","network","tcp","udp","icmp","ip"],"author":{"name":"Stev Peifer","email":"stev@bell.net"},"license":"MIT","_id":"@bun-win32/iphlpapi@1.0.2","maintainers":[{"name":"obscuritysrl","email":"stev@bell.net"}],"homepage":"https://github.com/ObscuritySRL/bun-win32#readme","bugs":{"url":"https://github.com/ObscuritySRL/bun-win32/issues"},"dist":{"shasum":"9969f2ca315b6934859f38266cd9cb245c0e9dae","tarball":"https://registry.npmjs.org/@bun-win32/iphlpapi/-/iphlpapi-1.0.2.tgz","fileCount":6,"integrity":"sha512-VFyelSJLbFAeQDt0NnWEQt3HhcVB6ZvHlngWvp3RR2u4h1Mvotvkiy6rd18x4yFE1fRb53seqWAg1vv8chcdPw==","signatures":[{"sig":"MEYCIQDPOl6R6bP+r+3sgT/dMZ7jLFTTbOknd3r/UaRXSxHJHQIhAJyqCkpjj/H7lT5/KShIrTtFhQkVyG8HNmuj7z7Vh2qO","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":77649},"main":"./index.ts","type":"module","module":"index.ts","engines":{"bun":">=1.1.0"},"exports":{".":"./index.ts"},"gitHead":"f86f0df557aa6cfee8907bf3af5592855a854c15","private":false,"scripts":{"example":"bun ./example/iphlpapi.ts"},"_npmUser":{"name":"obscuritysrl","email":"stev@bell.net"},"repository":{"url":"git://github.com/ObscuritySRL/bun-win32.git","type":"git","directory":"packages/iphlpapi"},"_npmVersion":"10.1.0","description":"Zero-dependency, zero-overhead Win32 IPHLPAPI bindings for Bun (FFI) on Windows.","directories":{},"sideEffects":false,"_nodeVersion":"20.8.0","dependencies":{"@bun-win32/core":"workspace:*"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest"},"peerDependencies":{"typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/iphlpapi_1.0.2_1775584495083_0.5710314091297652","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@bun-win32/iphlpapi","version":"1.0.3","keywords":["bun","ffi","win32","windows","iphlpapi","bindings","typescript","dll","network","tcp","udp","icmp","ip"],"author":"Stev Peifer <stev@bell.net>","license":"MIT","_id":"@bun-win32/iphlpapi@1.0.3","maintainers":[{"name":"obscuritysrl","email":"stev@bell.net"}],"homepage":"https://github.com/ObscuritySRL/bun-win32#readme","bugs":{"url":"https://github.com/ObscuritySRL/bun-win32/issues"},"dist":{"shasum":"f5e08e402788ce0e53be9f7e09934f910d63c3e6","tarball":"https://registry.npmjs.org/@bun-win32/iphlpapi/-/iphlpapi-1.0.3.tgz","fileCount":6,"integrity":"sha512-COYk3jsEVR/Dywl/s0be/CCaMc9mqTbExFL7zN+xI1Oa6MQgrqV0ZRHu6J79wc3PER2+y273l8Wml5Yfd8OUyA==","signatures":[{"sig":"MEUCIBycXb9DK3E4q7GtAMolIDnIQz4/LJO2xNphBrqigTuNAiEA/XsgM9VlWNmdX10pQImdIaoH6JoggBE3vW8HXJ3zreI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":77706},"main":"./index.ts","type":"module","module":"index.ts","shasum":"f5e08e402788ce0e53be9f7e09934f910d63c3e6","engines":{"bun":">=1.1.0"},"exports":{".":"./index.ts"},"private":false,"scripts":{"example":"bun ./example/iphlpapi.ts"},"_npmUser":{"name":"obscuritysrl","email":"stev@bell.net"},"_integrity":"sha512-COYk3jsEVR/Dywl/s0be/CCaMc9mqTbExFL7zN+xI1Oa6MQgrqV0ZRHu6J79wc3PER2+y273l8Wml5Yfd8OUyA==","repository":{"url":"git://github.com/ObscuritySRL/bun-win32.git","type":"git","directory":"packages/iphlpapi"},"_npmVersion":"10.8.3","description":"Zero-dependency, zero-overhead Win32 IPHLPAPI bindings for Bun (FFI) on Windows.","directories":{},"sideEffects":false,"_nodeVersion":"24.3.0","dependencies":{"@bun-win32/core":"1.1.1"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest"},"peerDependencies":{"typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/iphlpapi_1.0.3_1775616185248_0.6266714605779304","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@bun-win32/iphlpapi","version":"1.0.4","keywords":["bun","ffi","win32","windows","iphlpapi","bindings","typescript","dll","network","tcp","udp","icmp","ip"],"author":"Stev Peifer <stev@bell.net>","license":"MIT","_id":"@bun-win32/iphlpapi@1.0.4","maintainers":[{"name":"obscuritysrl","email":"stev@bell.net"}],"homepage":"https://github.com/ObscuritySRL/bun-win32#readme","bugs":{"url":"https://github.com/ObscuritySRL/bun-win32/issues"},"dist":{"shasum":"5ba7e7a62de9d6bc1694372b40a9e1f39937c182","tarball":"https://registry.npmjs.org/@bun-win32/iphlpapi/-/iphlpapi-1.0.4.tgz","fileCount":6,"integrity":"sha512-+l1Nk/ObqsE5NXUGjXSM9IaE10tvmEymgBqwqSEeNVLQNDKzyyY4C8M29TbJLGeCQnkijAadx8iwoGwlcYC8+Q==","signatures":[{"sig":"MEYCIQDha3mhXzsTD6zSTUcfdHjwypD+YMFa+SVkVMAEf7V1iAIhAIosV4znJhLrF03d4GoKtL8s2NeiWDvu+nTQDn6LKU6V","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":77850},"main":"./index.ts","type":"module","module":"index.ts","shasum":"5ba7e7a62de9d6bc1694372b40a9e1f39937c182","engines":{"bun":">=1.1.0"},"exports":{".":"./index.ts"},"private":false,"scripts":{"example:network-map":"bun ./example/network-map.ts","example:network-diagnostic":"bun ./example/network-diagnostic.ts"},"_npmUser":{"name":"obscuritysrl","email":"stev@bell.net"},"_integrity":"sha512-+l1Nk/ObqsE5NXUGjXSM9IaE10tvmEymgBqwqSEeNVLQNDKzyyY4C8M29TbJLGeCQnkijAadx8iwoGwlcYC8+Q==","repository":{"url":"git://github.com/ObscuritySRL/bun-win32.git","type":"git","directory":"packages/iphlpapi"},"_npmVersion":"10.8.3","description":"Zero-dependency, zero-overhead Win32 IPHLPAPI bindings for Bun (FFI) on Windows.","directories":{},"sideEffects":false,"_nodeVersion":"24.3.0","dependencies":{"@bun-win32/core":"1.1.1"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest"},"peerDependencies":{"typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/iphlpapi_1.0.4_1775687634483_0.883577281746077","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@bun-win32/iphlpapi","version":"1.0.5","keywords":["bun","ffi","win32","windows","iphlpapi","bindings","typescript","dll","network","tcp","udp","icmp","ip"],"author":"Stev Peifer <stev.p@outlook.com>","license":"MIT","_id":"@bun-win32/iphlpapi@1.0.5","maintainers":[{"name":"obscuritysrl","email":"stev@bell.net"}],"homepage":"https://github.com/ObscuritySRL/bun-win32#readme","bugs":{"url":"https://github.com/ObscuritySRL/bun-win32/issues"},"dist":{"shasum":"6f23982a457784d03f18b47164942eb8785a68c8","tarball":"https://registry.npmjs.org/@bun-win32/iphlpapi/-/iphlpapi-1.0.5.tgz","fileCount":6,"integrity":"sha512-f9hDE+CLi+nmurUiVZF7zM6giy8NkkYMcP+6AKNDofcJ5eJJ47sOiTqufTZxAoKgrloheMxz09I/Yqzb4wSp+g==","signatures":[{"sig":"MEQCIDqr7GV880jZprBS148rFOB7gyBgCYn1mb5aBC+2oLxqAiAtIvU3vH3WDKDV2FTeOe8Ic4EVuWsheNTphtWiiQFW4w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":77855},"main":"./index.ts","type":"module","module":"index.ts","shasum":"6f23982a457784d03f18b47164942eb8785a68c8","engines":{"bun":">=1.1.0"},"exports":{".":"./index.ts"},"private":false,"scripts":{"example:network-map":"bun ./example/network-map.ts","example:network-diagnostic":"bun ./example/network-diagnostic.ts"},"_npmUser":{"name":"obscuritysrl","email":"stev@bell.net"},"_integrity":"sha512-f9hDE+CLi+nmurUiVZF7zM6giy8NkkYMcP+6AKNDofcJ5eJJ47sOiTqufTZxAoKgrloheMxz09I/Yqzb4wSp+g==","repository":{"url":"git://github.com/ObscuritySRL/bun-win32.git","type":"git","directory":"packages/iphlpapi"},"_npmVersion":"10.8.3","description":"Zero-dependency, zero-overhead Win32 IPHLPAPI bindings for Bun (FFI) on Windows.","directories":{},"sideEffects":false,"_nodeVersion":"24.3.0","dependencies":{"@bun-win32/core":"1.1.4"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest"},"peerDependencies":{"typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/iphlpapi_1.0.5_1781375561633_0.34779417852140204","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@bun-win32/iphlpapi","version":"2.0.0","keywords":["bun","ffi","win32","windows","iphlpapi","bindings","typescript","dll","network","tcp","udp","icmp","ip"],"author":"Stev Peifer <stev.p@outlook.com>","license":"MIT","_id":"@bun-win32/iphlpapi@2.0.0","maintainers":[{"name":"obscuritysrl","email":"stev.p@outlook.com"}],"homepage":"https://github.com/ObscuritySRL/bun-win32#readme","bugs":{"url":"https://github.com/ObscuritySRL/bun-win32/issues"},"dist":{"shasum":"94c68ae11e3ad9f626b7c51a24081147c6e0483f","tarball":"https://registry.npmjs.org/@bun-win32/iphlpapi/-/iphlpapi-2.0.0.tgz","fileCount":6,"integrity":"sha512-E4mwEnUAXASPqihhof7s/r3pkuKU22H3TVGWuO9dsKymzZTtLfCujluF8FdKEi8wTIONp1lxzPtyPaSdRBNTJw==","signatures":[{"sig":"MEYCIQDYdDbK364Eq15dPTqwFReS0Q1Mbx6HowoZ5m+mG7XEwQIhAI338xQKhBQGK3WKXX8V+FZFjmPM+m6XqL7YeoHUUrrN","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":80843},"main":"./index.ts","type":"module","module":"index.ts","shasum":"94c68ae11e3ad9f626b7c51a24081147c6e0483f","engines":{"bun":">=1.1.0"},"exports":{".":"./index.ts"},"private":false,"scripts":{"example:network-map":"bun ./example/network-map.ts","example:network-diagnostic":"bun ./example/network-diagnostic.ts"},"_npmUser":{"name":"obscuritysrl","email":"stev.p@outlook.com"},"_integrity":"sha512-E4mwEnUAXASPqihhof7s/r3pkuKU22H3TVGWuO9dsKymzZTtLfCujluF8FdKEi8wTIONp1lxzPtyPaSdRBNTJw==","repository":{"url":"git://github.com/ObscuritySRL/bun-win32.git","type":"git","directory":"packages/iphlpapi"},"_npmVersion":"10.8.3","description":"Zero-dependency, zero-overhead Win32 IPHLPAPI bindings for Bun (FFI) on Windows.","directories":{},"sideEffects":false,"_nodeVersion":"26.3.0","dependencies":{"@bun-win32/core":"2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest"},"peerDependencies":{"typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/iphlpapi_2.0.0_1782435322634_0.24825290585209836","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"author":"Stev Peifer <stev.p@outlook.com>","bugs":{"url":"https://github.com/ObscuritySRL/bun-win32/issues"},"dependencies":{"@bun-win32/core":"2.0.1"},"description":"Zero-dependency, zero-overhead Win32 IPHLPAPI bindings for Bun (FFI) on Windows.","devDependencies":{"@types/bun":"latest"},"exports":{".":"./index.ts"},"license":"MIT","module":"index.ts","name":"@bun-win32/iphlpapi","peerDependencies":{"typescript":"^5"},"private":false,"homepage":"https://github.com/ObscuritySRL/bun-win32#readme","repository":{"type":"git","url":"git://github.com/ObscuritySRL/bun-win32.git","directory":"packages/iphlpapi"},"type":"module","version":"2.0.1","main":"./index.ts","keywords":["bun","ffi","win32","windows","iphlpapi","bindings","typescript","dll","network","tcp","udp","icmp","ip"],"sideEffects":false,"engines":{"bun":">=1.1.0"},"scripts":{"example:network-map":"bun ./example/network-map.ts","example:network-diagnostic":"bun ./example/network-diagnostic.ts"},"_id":"@bun-win32/iphlpapi@2.0.1","_integrity":"sha512-odod+qo1KBwAIwjUwlRAQGJA7WWRFyKQy1cy02ya1UtM4k3nJZzAFTxzMlp1dRwPH5bfUbfUuRm9dXzQ9YgEPw==","_nodeVersion":"26.3.0","_npmVersion":"10.8.3","shasum":"2f210fc7f3a778cf464058b4511fe0bf22c32421","dist":{"integrity":"sha512-odod+qo1KBwAIwjUwlRAQGJA7WWRFyKQy1cy02ya1UtM4k3nJZzAFTxzMlp1dRwPH5bfUbfUuRm9dXzQ9YgEPw==","shasum":"2f210fc7f3a778cf464058b4511fe0bf22c32421","tarball":"https://registry.npmjs.org/@bun-win32/iphlpapi/-/iphlpapi-2.0.1.tgz","fileCount":6,"unpackedSize":80843,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCEkxZr1jzn6KocldhlHAO0RixEh5f2d8tr9E4Z83DtXQIgSq1zye8fZq59VquIuZjHQW+QXjkg7Odyvip1eVreKpU="}]},"_npmUser":{"name":"obscuritysrl","email":"stev.p@outlook.com"},"directories":{},"maintainers":[{"name":"obscuritysrl","email":"stev.p@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/iphlpapi_2.0.1_1782437786422_0.18289178690380914"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-06T16:27:08.216Z","modified":"2026-06-26T01:36:26.692Z","1.0.0":"2026-04-06T16:27:08.636Z","1.0.1":"2026-04-06T22:32:35.617Z","1.0.2":"2026-04-07T17:54:55.243Z","1.0.3":"2026-04-08T02:43:05.386Z","1.0.4":"2026-04-08T22:33:54.638Z","1.0.5":"2026-06-13T18:32:41.777Z","2.0.0":"2026-06-26T00:55:22.768Z","2.0.1":"2026-06-26T01:36:26.585Z"},"bugs":{"url":"https://github.com/ObscuritySRL/bun-win32/issues"},"author":"Stev Peifer <stev.p@outlook.com>","license":"MIT","homepage":"https://github.com/ObscuritySRL/bun-win32#readme","keywords":["bun","ffi","win32","windows","iphlpapi","bindings","typescript","dll","network","tcp","udp","icmp","ip"],"repository":{"type":"git","url":"git://github.com/ObscuritySRL/bun-win32.git","directory":"packages/iphlpapi"},"description":"Zero-dependency, zero-overhead Win32 IPHLPAPI bindings for Bun (FFI) on Windows.","maintainers":[{"name":"obscuritysrl","email":"stev.p@outlook.com"}],"readme":"# @bun-win32/iphlpapi\r\n\r\nZero-dependency, zero-overhead Win32 IPHLPAPI bindings for [Bun](https://bun.sh) on Windows.\r\n\r\n## Overview\r\n\r\n`@bun-win32/iphlpapi` exposes the `iphlpapi.dll` exports using [Bun](https://bun.sh)'s FFI. It provides a single class, `Iphlpapi`, which lazily binds native symbols on first use. You can optionally preload a subset or all symbols up-front via `Preload()`.\r\n\r\nThe bindings are strongly typed for a smooth DX in TypeScript.\r\n\r\n## Features\r\n\r\n- [Bun](https://bun.sh)-first ergonomics on Windows 10/11.\r\n- Direct FFI to `iphlpapi.dll` (network adapters, TCP/UDP tables, ICMP, IP routing, interface stats, and more).\r\n- In-source docs in `structs/Iphlpapi.ts` with links to Microsoft Docs.\r\n- Lazy binding on first call; optional eager preload (`Iphlpapi.Preload()`).\r\n- No wrapper overhead; calls map 1:1 to native APIs.\r\n- Strongly-typed Win32 aliases (see `types/Iphlpapi.ts`).\r\n\r\n## Requirements\r\n\r\n- [Bun](https://bun.sh) runtime\r\n- Windows 10 or later\r\n\r\n## Installation\r\n\r\n```sh\r\nbun add @bun-win32/iphlpapi\r\n```\r\n\r\n## Quick Start\r\n\r\n```ts\r\nimport Iphlpapi from '@bun-win32/iphlpapi';\r\n\r\n// Optionally bind a subset up-front\r\nIphlpapi.Preload(['GetNumberOfInterfaces', 'GetAdaptersInfo']);\r\n\r\n// Get the number of network interfaces\r\nconst countBuf = Buffer.alloc(4);\r\nIphlpapi.GetNumberOfInterfaces(countBuf.ptr);\r\nconst count = countBuf.readUInt32LE(0);\r\nconsole.log('Network interfaces: %d', count);\r\n```\r\n\r\n> [!NOTE]\r\n> AI agents: see `AI.md` for the package binding contract and source-navigation guidance. It explains how to use the package without scanning the entire implementation.\r\n\r\n## Examples\r\n\r\nRun the included examples:\r\n\r\n```sh\r\nbun run example              # Network adapter info\r\n```\r\n\r\n## Notes\r\n\r\n- Either rely on lazy binding or call `Iphlpapi.Preload()`.\r\n- Windows only. Bun runtime required.\n- **SAL types & naming:** nullability is in the **type** — `Optional<T>` (formally optional, SAL `_*opt_`) and `Nullable<T>` (plain `[in]`/`[out]` the docs say can be NULL), the null sentinel derived from `T` (`null` for pointers `LP*`/`P*`, `0n` for handles/by-value addresses); direction is in the **parameter name** — `_out` (`_Out_`), `_in_out` (`_Inout_`), `_In_` bare. See `AI.md` and the repo `AGENTS.md`.\n","readmeFilename":"README.md"}