libwsk
January 27, 2025 · View on GitHub
About
libwsk is a wrapper for the WSK (Winsock-Kernel) interface. With libwsk, kernel-mode software modules can perform network I/O operations using the same socket programming concepts and interface that are supported by user-mode Winsock2.
Build and used
Windows 10 or higher
Right click on the project, select "Manage NuGet Packages".
Search for Musa.libwsk, choose the version that suits you, and then click "Install".
Windows 7
- First modify the settings:
libwsk property pages -> Driver Settings -> Target OS Version = Windows 7
libwsk Property pages -> Driver Settings -> Target Platform = Desktop
- Call BuildAllTargets.cmd
Supported progress
| BSD sockets | WSA (Windows Sockets API) | WSK (Windows Sockets Kernel) | State |
|---|---|---|---|
| - | WSKStartup | √ | |
| - | WSKCleanup | √ | |
| socket | WSKSocket | √ | |
| closesocket | WSKCloseSocket | √ | |
| bind | - | WSKBind | √ |
| listen | - | WSKListen | √ |
| connect | WSKConnect | √ | |
| shutdown | WSKDisconnect | √ | |
| accept | WSKAccept | √ | |
| send | WSKSend | √ | |
| recv | WSKRecv | √ | |
| sendto | WSKSendTo | √ | |
| recvfrom | WSKRecvFrom | √ | |
| ioctlsocket | WSKIoctl | √ | |
| setsockopt | - | WSKSetSocketOpt | √ |
| getsockopt | - | WSKGetSocketOpt | √ |
| getaddrinfo | WSKGetAddrInfo | √ | |
| freeaddrinfo | WSKFreeAddrInfo | √ | |
| getnameinfo | WSKGetNameInfo | √ | |
| inet_ntoa | WSKAddressToString | √ | |
| inet_addr | WSKStringToAddress | √ | |
| - | WSKCreateEvent | √ | |
| - | WSKGetOverlappedResult | √ | |
| ... | ... | ... | - |