DISCLAIMER: I also posted this message at
"microsoft.public.win32.programmer.networks ", but was recommended
to post here as well.
I need to ONLY allow infrastructure wireless connections on Windows XP
(sp1 and higher) laptops throughout our enterprise. Using Group Policy
is not an option due to political reasons.
Is there a way, via the command line, script, or programmatically to
set wireless connections/profiles to ONLY use infrastructure networks?
>From what I understand, this would likely need to be done on a per user
basis, but that is not a problem to do so in our environment.
I've been doing some monitoring on the actual changes that take place
when changing this setting via the GUI (using regmon). I've noticed
that registry keys are being modified by "svchost.exe" at the following
locations:
HKLM\Software\Microsoft\WZCSVC\Parameters\Interfac es\{57AB8439-B9F4-464A-8DD4-353EDC75E7AF}\ActiveSettings
HKLM\Software\Microsoft\WZCSVC\Parameters\Interfac es\{57AB8439-B9F4-464A-8DD4-353EDC75E7AF}\ControlFlags
*** Note that {57AB8439-B9F4-464A-8DD4-353EDC75E7AF} is the device id
of my wireless card
I believe that the "svchost.exe" is making api calls to "wzcsapi.dll"
to accomplish the changes, however I have been unable to pinpoint which
functions it is calling. Vieweing "wzcsapi.dll" with depends.exe
(
www.dependencywalker.com), I was able to see the functions available,
but I don't know which ones to call, or how to call them.
The only documentation on MSDN regarding this file relates to WinCE. If
anyone has any suggestions or ideas, I'd really like to hear them.
One other thing, I have been looking at Zwlancfg, which works for
creating new profiles, but not changing the connection type on existing
ones. I know this tool only works on sp2, but that could still work for
me.
Thanks