You are using Windows, so this may be helpful. http://www.ndis.com/faq/QA05040101.htm You will have to look up how to use the various APIs listed though.