What is include header for htonl like functions in winsock kernel WSK?
-
21-12-2019 - |
Question
I'm fairly experienced with WinSock however this is my first venture into Winsock Kernel. The conversion functions ntohl, htonl ntohs and htons are coming up undefined when I include only < wsk.h >. What #include should I be using for these conversion functions. I've done searches for "wsk htonl" without success.
Solution
I found the answer
http://msdn.microsoft.com/en-us/library/windows/hardware/ff562886%28v=vs.85%29.aspx
RtlUlongByteSwap() should be used in kernel mode instead of ntohl or htonl
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow