I have read this post [Determine between socket and fd](https://stackoverflow.com/questions/6461214/determine-between-socket-and-fd), and the answer recommends creating a structure with two fields, is there another way to test if a descriptor is a socket or a regular file on windows ?