WLAN API - SetProfile Problems - ACL

      WLAN API - SetProfile Problems - ACL

      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

      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:

      Is there a better / faster way than creating an acl? Something like changing a regkey?

      Greetings Horst