Hello guys,
this is my first question, i hope this is the right place to ask.
My question is about the wlanapi.
I have already gotten the right interface and I see available networks.
But when connecting, you have to set a profile with something like
[DllImport("wlanapi.dll")]
public static extern int WlanSetProfile(IntPtr clientHandle, IntPtr interfaceGuid, WlanProfileFlags flags, string profileXml, string allUserProfileSecurity, bool overwrite, IntPtr pReserved, out WlanReasonCode reasonCode);
there i am getting an Error 'ERROR_ACCESS_DENIED' as described here:
https://msdn.microsoft.com/en-…op/ms706795(v=vs.85).aspx
Is there a better / faster way than creating an acl? Something like changing a regkey?
Greetings Horst