It can be great to use the Winsock samples that are provided in the SDK\samples directory. However, for every plus there is a minus and the minus here is the potential errors that can arise. If you are having Winsock layered service provider issues, it MAY be related to the use of Winsock samples. Check out the free Winsock LSP resource page here on Komodia.com.
Chris