I am developing a App in Windows embedded compact using c# for managing all the operations related to wifi like creating profile,deleting the profile,connecting to profile,configuring the profiles to open,wpa2psk,wpapsk,wpa2enterprise,wpaenterprise,scan list using P/Invoke -wlanapi in c#. I included connection manager in my osdesign, when i am using the wlanset profile function i am getting error code ERROR_ACCESS_DENIED. In MSDN they reported this is due to adding connection manager in os design and you can handle this by using connection manager API's . So can one help how to use connection manager API's in c#(compact 2013)