Click here to Skip to main content
15,067,839 members
Please Sign up or sign in to vote.
1.22/5 (2 votes)
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) uses to configure the network.

Note: I don't want to execute cmd commands in my app.

Any help will be appreciated.

What I have tried:

I've used cmd execution in my app and worked.

command like:
CMD
wlan netsh hostednetwork ...


but I don't want that black cmd console to be displayed over my app frequntly.
Posted
Updated 27-Apr-21 6:27am

1 solution

See How to configure ad hoc network using C# windows form app for windows 10 - C# Discussion Boards[^]. And assuming you are the person who posted that, please do not repost, and please do not create multiple accounts.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900