I believe that winsock.h is deprecated to something like wsock32.h or something like that. Deprecated means it can be dropped from future releases with no notification. I expect you are trying to compile some old code, either look for a more modern source or post some code here (be sure to use "code" tags!) and we can help you.