I have found the following function from MSDN which converts an unsigned long from network byte to unsigned long in host byte order i.e. in little-endian defined as:
u_long WSAAPI ntohl(
       _In_  u_long netlong
);
The MSDN document says that it can convert a 32 bits number. But since in C++ as I have read that long and int are not the same i.e. long is not guaranteed to be 32 bits or the same size of an integer INT_MAX.
So, I wonder if there is a a similar function which takes a 32 bits values such as unsigned int instead of unsigned long?
 
     
     
    