I want to know how to implement bonjour on windows, so that i can set up server on windows and access files in windows(server) using bonjour service from my iphone(client).
This page describes how to develop for Bonjour for Windows. It also gives a link to the download page for the Windows API, including headers and libraries for C and Java.
http://support.apple.com/downloads/Bonjour_for_Windows
Have a look at Apple's bonjour SDK page. They provide an SDK for Windows there. I think it's written in C.
Yes there is, check the links on this page
http://developer.apple.com/softwarelicensing/agreements/bonjour.html
Note that Bonjour is only for notifying other devices that a service is present on the network, it doesn't handle the actual file transfer.
There is a Java implementation called Rendezvous Proxy that broadcasts bonjour notifications, may be all you need on your server?
Web page is here: http://ileech.sf.net/RendezvousProxy/
Don't think the source is open though.