I'm wondering if there is a way other than executing cmd commands in my windows form app to enable or configure an ad hoc network in windows 10?
I'm looking for a direct way like using windows's own libraries which the cmd command for ad hoc (netsh wlan hostednetwork) uses to configure the network.
Note: I don't want to execute cmd commands in my app.
What I have tried:
I've used cmd execution in my app and worked.
command like:
wlan netsh hostednetwork
but I don't want that black cmd console to be displayed over my app frequntly.
Any help will be appreciated.