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.

Was it helpful?

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
scroll top