Yes you can use Winsock to send files, after all files is just a sequence of data.

Trillions of examples have already been posted or are on Planet Source Code.