I am trying to build a Walkie Talkie application for a Windows Mobile 6 phone in C# using the .NET Compact Framework. How to set up an Ad-Hoc WiFi Connection programmatically? What APIs to use?
This other question may be helpful to you.
Configure Wifi Settings using C#