It depends on the protocol that the sender is using. I've used IR, but it simply acted like a serial port. Even if you know that much, you'll want to know how it sends the files. So, a header explaining the number of bytes, filename, and following the data. That would be pretty simple.
I looked at the ws2_32.dll and it appears to be winsock (tcp/ip) and nothing to do with IR.
The LabVIEW Advanced course has a very good section about using Call Library Function nodes. If you find out more about your application, hardware (IR) and communication protocol, we might end up figuring out if we need to use an existing DLL.