|
windows
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
WPS - Read Zero Config Wireless ProfilesI am trying to read the list of SSIDs stored in the Zero Config's preferred
network list. I believe this is possible through WPS - IProvisioningDomain::Querry. But I am not able to find any example for this. It would be helpful if you could direct me to a sample. Thanks, Priya Did you downloaded WSPDDK with example of Query in it ?
http://www.microsoft.com/whdc/device/network/wireless/wps.mspx Arkady Show quoteHide quote "Prikko" <Priko@newsgroup.nospam> wrote in message news:C1AF1CCA-50B3-441C-BEE4-F552692F85D7@microsoft.com... >I am trying to read the list of SSIDs stored in the Zero Config's preferred > network list. I believe this is possible through WPS - > IProvisioningDomain::Querry. But I am not able to find any example for > this. > It would be helpful if you could direct me to a sample. > > Thanks, > Priya Thanks. I will check it out.
Show quoteHide quote "Arkady Frenkel" wrote: > Did you downloaded WSPDDK with example of Query in it ? > http://www.microsoft.com/whdc/device/network/wireless/wps.mspx > Arkady > > "Prikko" <Priko@newsgroup.nospam> wrote in message > news:C1AF1CCA-50B3-441C-BEE4-F552692F85D7@microsoft.com... > >I am trying to read the list of SSIDs stored in the Zero Config's preferred > > network list. I believe this is possible through WPS - > > IProvisioningDomain::Querry. But I am not able to find any example for > > this. > > It would be helpful if you could direct me to a sample. > > > > Thanks, > > Priya > > > WPS is an component which is built into the WZCSVC service to support
"hotspot" technologies. The WPSDDK documentation does not describe how to extract SSIDs but how to add or query your own hotspot XML files on a client. WPS is a something which you'd probably not need to examine unless you're a hotspot provider yourself. There is one exception to this statement: there is an API "CreateProfile" included in the WPS documentation which you can use to create a wireless profile in the preferred list. Note, this will not satisfy your initial problem but I may have a workaround solution. Personally, I don't know of a publicly documented API to extract the properties of a wireless profile in XPSP2. So my suggestion to find the list of preferred SSIDs is through the logs created by the wireless service. If you enable wireless tracing: C:\>netsh ras set tracing WZCTrace enable you'll create a %SystemDrive%\Windows\Tracing\WZCTrace.log file which is spew generated from the WZCSVC service. You can parse this log file for the SSIDs scanned based on the preferred list. This list will provide you with the basic properties (read, SSID) of the preferred network list. -- Show quoteHide quoteOliver This posting is provided "AS IS", with NO warranties and confers NO rights ----------------------------------------------------------------------------- "Arkady Frenkel" <arka***@hotmailxdotx.com> wrote in message news:%23JAJcW0QFHA.4028@tk2msftngp13.phx.gbl... > Did you downloaded WSPDDK with example of Query in it ? > http://www.microsoft.com/whdc/device/network/wireless/wps.mspx > Arkady > > "Prikko" <Priko@newsgroup.nospam> wrote in message > news:C1AF1CCA-50B3-441C-BEE4-F552692F85D7@microsoft.com... >>I am trying to read the list of SSIDs stored in the Zero Config's >>preferred >> network list. I believe this is possible through WPS - >> IProvisioningDomain::Querry. But I am not able to find any example for >> this. >> It would be helpful if you could direct me to a sample. >> >> Thanks, >> Priya > > Oliver,
Thanks for your detailed response. All I want is the names of the wireless profiles in the preferred list. Does WZCSVC store the XML file in any specific path/location. In that case, I can probably try parsing the XML file using an XML parser to extract the preferred list. Please let me know. Thanks, Priya Show quoteHide quote "Oliver Saal [MS]" wrote: > WPS is an component which is built into the WZCSVC service to support > "hotspot" technologies. The WPSDDK documentation does not describe how to > extract SSIDs but how to add or query your own hotspot XML files on a > client. WPS is a something which you'd probably not need to examine unless > you're a hotspot provider yourself. There is one exception to this > statement: there is an API "CreateProfile" included in the WPS documentation > which you can use to create a wireless profile in the preferred list. Note, > this will not satisfy your initial problem but I may have a workaround > solution. > > Personally, I don't know of a publicly documented API to extract the > properties of a wireless profile in XPSP2. So my suggestion to find the list > of preferred SSIDs is through the logs created by the wireless service. If > you enable wireless tracing: > > C:\>netsh ras set tracing WZCTrace enable > > you'll create a %SystemDrive%\Windows\Tracing\WZCTrace.log file which is > spew generated from the WZCSVC service. You can parse this log file for the > SSIDs scanned based on the preferred list. This list will provide you with > the basic properties (read, SSID) of the preferred network list. > > -- > Oliver > This posting is provided "AS IS", with NO warranties and confers NO rights > ----------------------------------------------------------------------------- > > "Arkady Frenkel" <arka***@hotmailxdotx.com> wrote in message > news:%23JAJcW0QFHA.4028@tk2msftngp13.phx.gbl... > > Did you downloaded WSPDDK with example of Query in it ? > > http://www.microsoft.com/whdc/device/network/wireless/wps.mspx > > Arkady > > > > "Prikko" <Priko@newsgroup.nospam> wrote in message > > news:C1AF1CCA-50B3-441C-BEE4-F552692F85D7@microsoft.com... > >>I am trying to read the list of SSIDs stored in the Zero Config's > >>preferred > >> network list. I believe this is possible through WPS - > >> IProvisioningDomain::Querry. But I am not able to find any example for > >> this. > >> It would be helpful if you could direct me to a sample. > >> > >> Thanks, > >> Priya > > > > > > > I see that the preferred network list is present under-
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WZCSVC\Parameters\Interfaces\{interface GUID}] There is a registry value "Static#....". This is REG_BINARY and has the preferred network name. Is the structure of this registry value available? If so, I can extract the preferred nw ssid from this. Please help. Thanks, Priya Show quoteHide quote "Oliver Saal [MS]" wrote: > WPS is an component which is built into the WZCSVC service to support > "hotspot" technologies. The WPSDDK documentation does not describe how to > extract SSIDs but how to add or query your own hotspot XML files on a > client. WPS is a something which you'd probably not need to examine unless > you're a hotspot provider yourself. There is one exception to this > statement: there is an API "CreateProfile" included in the WPS documentation > which you can use to create a wireless profile in the preferred list. Note, > this will not satisfy your initial problem but I may have a workaround > solution. > > Personally, I don't know of a publicly documented API to extract the > properties of a wireless profile in XPSP2. So my suggestion to find the list > of preferred SSIDs is through the logs created by the wireless service. If > you enable wireless tracing: > > C:\>netsh ras set tracing WZCTrace enable > > you'll create a %SystemDrive%\Windows\Tracing\WZCTrace.log file which is > spew generated from the WZCSVC service. You can parse this log file for the > SSIDs scanned based on the preferred list. This list will provide you with > the basic properties (read, SSID) of the preferred network list. > > -- > Oliver > This posting is provided "AS IS", with NO warranties and confers NO rights > ----------------------------------------------------------------------------- > > "Arkady Frenkel" <arka***@hotmailxdotx.com> wrote in message > news:%23JAJcW0QFHA.4028@tk2msftngp13.phx.gbl... > > Did you downloaded WSPDDK with example of Query in it ? > > http://www.microsoft.com/whdc/device/network/wireless/wps.mspx > > Arkady > > > > "Prikko" <Priko@newsgroup.nospam> wrote in message > > news:C1AF1CCA-50B3-441C-BEE4-F552692F85D7@microsoft.com... > >>I am trying to read the list of SSIDs stored in the Zero Config's > >>preferred > >> network list. I believe this is possible through WPS - > >> IProvisioningDomain::Querry. But I am not able to find any example for > >> this. > >> It would be helpful if you could direct me to a sample. > >> > >> Thanks, > >> Priya > > > > > > > This registry key is not public because it structure and contents change
quite frequently. This would not be a suggestable method to obtain preferred list entries. With some simple parsing logic you find your preferred networks list in the WZCTRACE.LOG. You are looking for a set of strings like this: [2752] 10:26:16:189: [WZCCopySelectedConfigs(02E9EEE8->4/4, 0) [2752] 10:26:16:189: WZCCopySelectedConfigs[2]: SSID=<9:MyNetwork> From List [2752] 10:26:16:189: WZCCopySelectedConfigs[0]: SSID=<11:AnotherSSID> From List [2752] 10:26:16:189: WZCCopySelectedConfigs[1]: SSID=<9:ThirdSSID> From List [2752] 10:26:16:189: WZCCopySelectedConfigs[3]: SSID=<8:HomeSSID> From List [2752] 10:26:16:189: WZCCopySelectedConfigs]=0, NumCopied=<4>, Index=<4/4> Does this help narrow down your search? -- Show quoteHide quoteJerry Peterson Windows Network Services - Wireless This posting is provided "AS IS" with no warranties, and confers no rights. "Priyko" <Priko@newsgroup.nospam> wrote in message news:022CF49F-B122-4F54-B38C-3A367AF34DB7@microsoft.com... >I see that the preferred network list is present under- > > [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WZCSVC\Parameters\Interfaces\{interface > GUID}] > > There is a registry value "Static#....". This is REG_BINARY and has the > preferred network name. Is the structure of this registry value available? > If > so, I can extract the preferred nw ssid from this. Please help. > > Thanks, > Priya > > "Oliver Saal [MS]" wrote: > >> WPS is an component which is built into the WZCSVC service to support >> "hotspot" technologies. The WPSDDK documentation does not describe how to >> extract SSIDs but how to add or query your own hotspot XML files on a >> client. WPS is a something which you'd probably not need to examine >> unless >> you're a hotspot provider yourself. There is one exception to this >> statement: there is an API "CreateProfile" included in the WPS >> documentation >> which you can use to create a wireless profile in the preferred list. >> Note, >> this will not satisfy your initial problem but I may have a workaround >> solution. >> >> Personally, I don't know of a publicly documented API to extract the >> properties of a wireless profile in XPSP2. So my suggestion to find the >> list >> of preferred SSIDs is through the logs created by the wireless service. >> If >> you enable wireless tracing: >> >> C:\>netsh ras set tracing WZCTrace enable >> >> you'll create a %SystemDrive%\Windows\Tracing\WZCTrace.log file which is >> spew generated from the WZCSVC service. You can parse this log file for >> the >> SSIDs scanned based on the preferred list. This list will provide you >> with >> the basic properties (read, SSID) of the preferred network list. >> >> -- >> Oliver >> This posting is provided "AS IS", with NO warranties and confers NO >> rights >> ----------------------------------------------------------------------------- >> >> "Arkady Frenkel" <arka***@hotmailxdotx.com> wrote in message >> news:%23JAJcW0QFHA.4028@tk2msftngp13.phx.gbl... >> > Did you downloaded WSPDDK with example of Query in it ? >> > http://www.microsoft.com/whdc/device/network/wireless/wps.mspx >> > Arkady >> > >> > "Prikko" <Priko@newsgroup.nospam> wrote in message >> > news:C1AF1CCA-50B3-441C-BEE4-F552692F85D7@microsoft.com... >> >>I am trying to read the list of SSIDs stored in the Zero Config's >> >>preferred >> >> network list. I believe this is possible through WPS - >> >> IProvisioningDomain::Querry. But I am not able to find any example for >> >> this. >> >> It would be helpful if you could direct me to a sample. >> >> >> >> Thanks, >> >> Priya >> > >> > >> >> >> Jerry,
Thanks for the reply. My concerns in doing this are- 1. My application would have to enable tracing and the user could turn off tracing anytime. In that case I might not be guaranteed to get the preferred list whenever I query. 2. If tracing is not enabled and I just enable tracing, I am not sure the trace file will contain preferred list..meaning- I would have to wait for WZCSVC to update the trace file before I can get the preferred list. 3. The trace file could be large and parsing might not be very efficient method to get the preferred list. Especially since the log file becomes huge with time and my app would need this info more than once. Instead is it possible to directly parse the XML file where WZC stores the profiles? Thanks again, Priya Show quoteHide quote "Jerry Peterson[MSFT]" wrote: > This registry key is not public because it structure and contents change > quite frequently. This would not be a suggestable method to obtain > preferred list entries. > > With some simple parsing logic you find your preferred networks list in the > WZCTRACE.LOG. You are looking for a set of strings like this: > > [2752] 10:26:16:189: [WZCCopySelectedConfigs(02E9EEE8->4/4, 0) > [2752] 10:26:16:189: WZCCopySelectedConfigs[2]: SSID=<9:MyNetwork> From > List > [2752] 10:26:16:189: WZCCopySelectedConfigs[0]: SSID=<11:AnotherSSID> From > List > [2752] 10:26:16:189: WZCCopySelectedConfigs[1]: SSID=<9:ThirdSSID> From > List > [2752] 10:26:16:189: WZCCopySelectedConfigs[3]: SSID=<8:HomeSSID> From > List > [2752] 10:26:16:189: WZCCopySelectedConfigs]=0, NumCopied=<4>, Index=<4/4> > > Does this help narrow down your search? > > -- > Jerry Peterson > Windows Network Services - Wireless > > This posting is provided "AS IS" with no warranties, and confers no rights. > "Priyko" <Priko@newsgroup.nospam> wrote in message > news:022CF49F-B122-4F54-B38C-3A367AF34DB7@microsoft.com... > >I see that the preferred network list is present under- > > > > [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WZCSVC\Parameters\Interfaces\{interface > > GUID}] > > > > There is a registry value "Static#....". This is REG_BINARY and has the > > preferred network name. Is the structure of this registry value available? > > If > > so, I can extract the preferred nw ssid from this. Please help. > > > > Thanks, > > Priya > > > > "Oliver Saal [MS]" wrote: > > > >> WPS is an component which is built into the WZCSVC service to support > >> "hotspot" technologies. The WPSDDK documentation does not describe how to > >> extract SSIDs but how to add or query your own hotspot XML files on a > >> client. WPS is a something which you'd probably not need to examine > >> unless > >> you're a hotspot provider yourself. There is one exception to this > >> statement: there is an API "CreateProfile" included in the WPS > >> documentation > >> which you can use to create a wireless profile in the preferred list. > >> Note, > >> this will not satisfy your initial problem but I may have a workaround > >> solution. > >> > >> Personally, I don't know of a publicly documented API to extract the > >> properties of a wireless profile in XPSP2. So my suggestion to find the > >> list > >> of preferred SSIDs is through the logs created by the wireless service. > >> If > >> you enable wireless tracing: > >> > >> C:\>netsh ras set tracing WZCTrace enable > >> > >> you'll create a %SystemDrive%\Windows\Tracing\WZCTrace.log file which is > >> spew generated from the WZCSVC service. You can parse this log file for > >> the > >> SSIDs scanned based on the preferred list. This list will provide you > >> with > >> the basic properties (read, SSID) of the preferred network list. > >> > >> -- > >> Oliver > >> This posting is provided "AS IS", with NO warranties and confers NO > >> rights > >> ----------------------------------------------------------------------------- > >> > >> "Arkady Frenkel" <arka***@hotmailxdotx.com> wrote in message > >> news:%23JAJcW0QFHA.4028@tk2msftngp13.phx.gbl... > >> > Did you downloaded WSPDDK with example of Query in it ? > >> > http://www.microsoft.com/whdc/device/network/wireless/wps.mspx > >> > Arkady > >> > > >> > "Prikko" <Priko@newsgroup.nospam> wrote in message > >> > news:C1AF1CCA-50B3-441C-BEE4-F552692F85D7@microsoft.com... > >> >>I am trying to read the list of SSIDs stored in the Zero Config's > >> >>preferred > >> >> network list. I believe this is possible through WPS - > >> >> IProvisioningDomain::Querry. But I am not able to find any example for > >> >> this. > >> >> It would be helpful if you could direct me to a sample. > >> >> > >> >> Thanks, > >> >> Priya > >> > > >> > > >> > >> > >> > > > Jerry,
Is it possible to parse the XML file where zero config stores the profiles directly? Parsing the trace to get preferred networks might not work for me (for reasons mentioned below). Thanks, Priya Show quoteHide quote "Priyko" wrote: > Jerry, > > Thanks for the reply. My concerns in doing this are- > > 1. My application would have to enable tracing and the user could turn off > tracing anytime. In that case I might not be guaranteed to get the preferred > list whenever I query. > > 2. If tracing is not enabled and I just enable tracing, I am not sure the > trace file will contain preferred list..meaning- I would have to wait for > WZCSVC to update the trace file before I can get the preferred list. > > 3. The trace file could be large and parsing might not be very efficient > method to get the preferred list. Especially since the log file becomes huge > with time and my app would need this info more than once. > > Instead is it possible to directly parse the XML file where WZC stores the > profiles? > > Thanks again, > Priya > > "Jerry Peterson[MSFT]" wrote: > > > This registry key is not public because it structure and contents change > > quite frequently. This would not be a suggestable method to obtain > > preferred list entries. > > > > With some simple parsing logic you find your preferred networks list in the > > WZCTRACE.LOG. You are looking for a set of strings like this: > > > > [2752] 10:26:16:189: [WZCCopySelectedConfigs(02E9EEE8->4/4, 0) > > [2752] 10:26:16:189: WZCCopySelectedConfigs[2]: SSID=<9:MyNetwork> From > > List > > [2752] 10:26:16:189: WZCCopySelectedConfigs[0]: SSID=<11:AnotherSSID> From > > List > > [2752] 10:26:16:189: WZCCopySelectedConfigs[1]: SSID=<9:ThirdSSID> From > > List > > [2752] 10:26:16:189: WZCCopySelectedConfigs[3]: SSID=<8:HomeSSID> From > > List > > [2752] 10:26:16:189: WZCCopySelectedConfigs]=0, NumCopied=<4>, Index=<4/4> > > > > Does this help narrow down your search? > > > > -- > > Jerry Peterson > > Windows Network Services - Wireless > > > > This posting is provided "AS IS" with no warranties, and confers no rights. > > "Priyko" <Priko@newsgroup.nospam> wrote in message > > news:022CF49F-B122-4F54-B38C-3A367AF34DB7@microsoft.com... > > >I see that the preferred network list is present under- > > > > > > [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WZCSVC\Parameters\Interfaces\{interface > > > GUID}] > > > > > > There is a registry value "Static#....". This is REG_BINARY and has the > > > preferred network name. Is the structure of this registry value available? > > > If > > > so, I can extract the preferred nw ssid from this. Please help. > > > > > > Thanks, > > > Priya > > > > > > "Oliver Saal [MS]" wrote: > > > > > >> WPS is an component which is built into the WZCSVC service to support > > >> "hotspot" technologies. The WPSDDK documentation does not describe how to > > >> extract SSIDs but how to add or query your own hotspot XML files on a > > >> client. WPS is a something which you'd probably not need to examine > > >> unless > > >> you're a hotspot provider yourself. There is one exception to this > > >> statement: there is an API "CreateProfile" included in the WPS > > >> documentation > > >> which you can use to create a wireless profile in the preferred list. > > >> Note, > > >> this will not satisfy your initial problem but I may have a workaround > > >> solution. > > >> > > >> Personally, I don't know of a publicly documented API to extract the > > >> properties of a wireless profile in XPSP2. So my suggestion to find the > > >> list > > >> of preferred SSIDs is through the logs created by the wireless service. > > >> If > > >> you enable wireless tracing: > > >> > > >> C:\>netsh ras set tracing WZCTrace enable > > >> > > >> you'll create a %SystemDrive%\Windows\Tracing\WZCTrace.log file which is > > >> spew generated from the WZCSVC service. You can parse this log file for > > >> the > > >> SSIDs scanned based on the preferred list. This list will provide you > > >> with > > >> the basic properties (read, SSID) of the preferred network list. > > >> > > >> -- > > >> Oliver > > >> This posting is provided "AS IS", with NO warranties and confers NO > > >> rights > > >> ----------------------------------------------------------------------------- > > >> > > >> "Arkady Frenkel" <arka***@hotmailxdotx.com> wrote in message > > >> news:%23JAJcW0QFHA.4028@tk2msftngp13.phx.gbl... > > >> > Did you downloaded WSPDDK with example of Query in it ? > > >> > http://www.microsoft.com/whdc/device/network/wireless/wps.mspx > > >> > Arkady > > >> > > > >> > "Prikko" <Priko@newsgroup.nospam> wrote in message > > >> > news:C1AF1CCA-50B3-441C-BEE4-F552692F85D7@microsoft.com... > > >> >>I am trying to read the list of SSIDs stored in the Zero Config's > > >> >>preferred > > >> >> network list. I believe this is possible through WPS - > > >> >> IProvisioningDomain::Querry. But I am not able to find any example for > > >> >> this. > > >> >> It would be helpful if you could direct me to a sample. > > >> >> > > >> >> Thanks, > > >> >> Priya > > >> > > > >> > > > >> > > >> > > >> > > > > > > No it is not possible because the Profiles are not stored in XML format.
XML format can be used for operations with the Provisioning API, but the wireless service uses a unique structure in the profile store. Direct modification of the profile store is not a method I can advocate or recommend. -- Show quoteHide quoteJerry Peterson Windows Network Services - Wireless This posting is provided "AS IS" with no warranties, and confers no rights. "Priyko" <Priko@newsgroup.nospam> wrote in message news:07352B21-BEE7-4F68-A842-9FD603850230@microsoft.com... > Jerry, > > Is it possible to parse the XML file where zero config stores the profiles > directly? Parsing the trace to get preferred networks might not work for > me > (for reasons mentioned below). > > Thanks, > Priya > > > "Priyko" wrote: > >> Jerry, >> >> Thanks for the reply. My concerns in doing this are- >> >> 1. My application would have to enable tracing and the user could turn >> off >> tracing anytime. In that case I might not be guaranteed to get the >> preferred >> list whenever I query. >> >> 2. If tracing is not enabled and I just enable tracing, I am not sure the >> trace file will contain preferred list..meaning- I would have to wait for >> WZCSVC to update the trace file before I can get the preferred list. >> >> 3. The trace file could be large and parsing might not be very efficient >> method to get the preferred list. Especially since the log file becomes >> huge >> with time and my app would need this info more than once. >> >> Instead is it possible to directly parse the XML file where WZC stores >> the >> profiles? >> >> Thanks again, >> Priya >> >> "Jerry Peterson[MSFT]" wrote: >> >> > This registry key is not public because it structure and contents >> > change >> > quite frequently. This would not be a suggestable method to obtain >> > preferred list entries. >> > >> > With some simple parsing logic you find your preferred networks list in >> > the >> > WZCTRACE.LOG. You are looking for a set of strings like this: >> > >> > [2752] 10:26:16:189: [WZCCopySelectedConfigs(02E9EEE8->4/4, 0) >> > [2752] 10:26:16:189: WZCCopySelectedConfigs[2]: SSID=<9:MyNetwork> >> > From >> > List >> > [2752] 10:26:16:189: WZCCopySelectedConfigs[0]: SSID=<11:AnotherSSID> >> > From >> > List >> > [2752] 10:26:16:189: WZCCopySelectedConfigs[1]: SSID=<9:ThirdSSID> >> > From >> > List >> > [2752] 10:26:16:189: WZCCopySelectedConfigs[3]: SSID=<8:HomeSSID> >> > From >> > List >> > [2752] 10:26:16:189: WZCCopySelectedConfigs]=0, NumCopied=<4>, >> > Index=<4/4> >> > >> > Does this help narrow down your search? >> > >> > -- >> > Jerry Peterson >> > Windows Network Services - Wireless >> > >> > This posting is provided "AS IS" with no warranties, and confers no >> > rights. >> > "Priyko" <Priko@newsgroup.nospam> wrote in message >> > news:022CF49F-B122-4F54-B38C-3A367AF34DB7@microsoft.com... >> > >I see that the preferred network list is present under- >> > > >> > > [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WZCSVC\Parameters\Interfaces\{interface >> > > GUID}] >> > > >> > > There is a registry value "Static#....". This is REG_BINARY and has >> > > the >> > > preferred network name. Is the structure of this registry value >> > > available? >> > > If >> > > so, I can extract the preferred nw ssid from this. Please help. >> > > >> > > Thanks, >> > > Priya >> > > >> > > "Oliver Saal [MS]" wrote: >> > > >> > >> WPS is an component which is built into the WZCSVC service to >> > >> support >> > >> "hotspot" technologies. The WPSDDK documentation does not describe >> > >> how to >> > >> extract SSIDs but how to add or query your own hotspot XML files on >> > >> a >> > >> client. WPS is a something which you'd probably not need to examine >> > >> unless >> > >> you're a hotspot provider yourself. There is one exception to this >> > >> statement: there is an API "CreateProfile" included in the WPS >> > >> documentation >> > >> which you can use to create a wireless profile in the preferred >> > >> list. >> > >> Note, >> > >> this will not satisfy your initial problem but I may have a >> > >> workaround >> > >> solution. >> > >> >> > >> Personally, I don't know of a publicly documented API to extract the >> > >> properties of a wireless profile in XPSP2. So my suggestion to find >> > >> the >> > >> list >> > >> of preferred SSIDs is through the logs created by the wireless >> > >> service. >> > >> If >> > >> you enable wireless tracing: >> > >> >> > >> C:\>netsh ras set tracing WZCTrace enable >> > >> >> > >> you'll create a %SystemDrive%\Windows\Tracing\WZCTrace.log file >> > >> which is >> > >> spew generated from the WZCSVC service. You can parse this log file >> > >> for >> > >> the >> > >> SSIDs scanned based on the preferred list. This list will provide >> > >> you >> > >> with >> > >> the basic properties (read, SSID) of the preferred network list. >> > >> >> > >> -- >> > >> Oliver >> > >> This posting is provided "AS IS", with NO warranties and confers NO >> > >> rights >> > >> ----------------------------------------------------------------------------- >> > >> >> > >> "Arkady Frenkel" <arka***@hotmailxdotx.com> wrote in message >> > >> news:%23JAJcW0QFHA.4028@tk2msftngp13.phx.gbl... >> > >> > Did you downloaded WSPDDK with example of Query in it ? >> > >> > http://www.microsoft.com/whdc/device/network/wireless/wps.mspx >> > >> > Arkady >> > >> > >> > >> > "Prikko" <Priko@newsgroup.nospam> wrote in message >> > >> > news:C1AF1CCA-50B3-441C-BEE4-F552692F85D7@microsoft.com... >> > >> >>I am trying to read the list of SSIDs stored in the Zero Config's >> > >> >>preferred >> > >> >> network list. I believe this is possible through WPS - >> > >> >> IProvisioningDomain::Querry. But I am not able to find any >> > >> >> example for >> > >> >> this. >> > >> >> It would be helpful if you could direct me to a sample. >> > >> >> >> > >> >> Thanks, >> > >> >> Priya >> > >> > >> > >> > >> > >> >> > >> >> > >> >> > >> > >> > Jerry,
Thanks for your replies. Is this something that APIs will be available for at some point in the future? Priya Jerry Peterson[MSFT] wrote: Show quoteHide quote > No it is not possible because the Profiles are not stored in XML SSID=<9:MyNetwork>format. > XML format can be used for operations with the Provisioning API, but the > wireless service uses a unique structure in the profile store. Direct > modification of the profile store is not a method I can advocate or > recommend. > > -- > Jerry Peterson > Windows Network Services - Wireless > > This posting is provided "AS IS" with no warranties, and confers no rights. > "Priyko" <Priko@newsgroup.nospam> wrote in message > news:07352B21-BEE7-4F68-A842-9FD603850230@microsoft.com... > > Jerry, > > > > Is it possible to parse the XML file where zero config stores the profiles > > directly? Parsing the trace to get preferred networks might not work for > > me > > (for reasons mentioned below). > > > > Thanks, > > Priya > > > > > > "Priyko" wrote: > > > >> Jerry, > >> > >> Thanks for the reply. My concerns in doing this are- > >> > >> 1. My application would have to enable tracing and the user could turn > >> off > >> tracing anytime. In that case I might not be guaranteed to get the > >> preferred > >> list whenever I query. > >> > >> 2. If tracing is not enabled and I just enable tracing, I am not sure the > >> trace file will contain preferred list..meaning- I would have to wait for > >> WZCSVC to update the trace file before I can get the preferred list. > >> > >> 3. The trace file could be large and parsing might not be very efficient > >> method to get the preferred list. Especially since the log file becomes > >> huge > >> with time and my app would need this info more than once. > >> > >> Instead is it possible to directly parse the XML file where WZC stores > >> the > >> profiles? > >> > >> Thanks again, > >> Priya > >> > >> "Jerry Peterson[MSFT]" wrote: > >> > >> > This registry key is not public because it structure and contents > >> > change > >> > quite frequently. This would not be a suggestable method to obtain > >> > preferred list entries. > >> > > >> > With some simple parsing logic you find your preferred networks list in > >> > the > >> > WZCTRACE.LOG. You are looking for a set of strings like this: > >> > > >> > [2752] 10:26:16:189: [WZCCopySelectedConfigs(02E9EEE8->4/4, 0) > >> > [2752] 10:26:16:189: WZCCopySelectedConfigs[2]: > >> > From SSID=<11:AnotherSSID>> >> > List > >> > [2752] 10:26:16:189: WZCCopySelectedConfigs[0]: > >> > From SSID=<9:ThirdSSID>> >> > List > >> > [2752] 10:26:16:189: WZCCopySelectedConfigs[1]: > >> > From SSID=<8:HomeSSID>> >> > List > >> > [2752] 10:26:16:189: WZCCopySelectedConfigs[3]: Show quoteHide quote > >> > From [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WZCSVC\Parameters\Interfaces\{interface> >> > List > >> > [2752] 10:26:16:189: WZCCopySelectedConfigs]=0, NumCopied=<4>, > >> > Index=<4/4> > >> > > >> > Does this help narrow down your search? > >> > > >> > -- > >> > Jerry Peterson > >> > Windows Network Services - Wireless > >> > > >> > This posting is provided "AS IS" with no warranties, and confers no > >> > rights. > >> > "Priyko" <Priko@newsgroup.nospam> wrote in message > >> > news:022CF49F-B122-4F54-B38C-3A367AF34DB7@microsoft.com... > >> > >I see that the preferred network list is present under- > >> > > > >> > > Show quoteHide quote > >> > > GUID}] http://www.microsoft.com/whdc/device/network/wireless/wps.mspx> >> > > > >> > > There is a registry value "Static#....". This is REG_BINARY and has > >> > > the > >> > > preferred network name. Is the structure of this registry value > >> > > available? > >> > > If > >> > > so, I can extract the preferred nw ssid from this. Please help. > >> > > > >> > > Thanks, > >> > > Priya > >> > > > >> > > "Oliver Saal [MS]" wrote: > >> > > > >> > >> WPS is an component which is built into the WZCSVC service to > >> > >> support > >> > >> "hotspot" technologies. The WPSDDK documentation does not describe > >> > >> how to > >> > >> extract SSIDs but how to add or query your own hotspot XML files on > >> > >> a > >> > >> client. WPS is a something which you'd probably not need to examine > >> > >> unless > >> > >> you're a hotspot provider yourself. There is one exception to this > >> > >> statement: there is an API "CreateProfile" included in the WPS > >> > >> documentation > >> > >> which you can use to create a wireless profile in the preferred > >> > >> list. > >> > >> Note, > >> > >> this will not satisfy your initial problem but I may have a > >> > >> workaround > >> > >> solution. > >> > >> > >> > >> Personally, I don't know of a publicly documented API to extract the > >> > >> properties of a wireless profile in XPSP2. So my suggestion to find > >> > >> the > >> > >> list > >> > >> of preferred SSIDs is through the logs created by the wireless > >> > >> service. > >> > >> If > >> > >> you enable wireless tracing: > >> > >> > >> > >> C:\>netsh ras set tracing WZCTrace enable > >> > >> > >> > >> you'll create a %SystemDrive%\Windows\Tracing\WZCTrace.log file > >> > >> which is > >> > >> spew generated from the WZCSVC service. You can parse this log file > >> > >> for > >> > >> the > >> > >> SSIDs scanned based on the preferred list. This list will provide > >> > >> you > >> > >> with > >> > >> the basic properties (read, SSID) of the preferred network list. > >> > >> > >> > >> -- > >> > >> Oliver > >> > >> This posting is provided "AS IS", with NO warranties and confers NO > >> > >> rights > >> > >> ----------------------------------------------------------------------------- > >> > >> > >> > >> "Arkady Frenkel" <arka***@hotmailxdotx.com> wrote in message > >> > >> news:%23JAJcW0QFHA.4028@tk2msftngp13.phx.gbl... > >> > >> > Did you downloaded WSPDDK with example of Query in it ? > >> > >> > Show quoteHide quote > >> > >> > Arkady > >> > >> > > >> > >> > "Prikko" <Priko@newsgroup.nospam> wrote in message > >> > >> > news:C1AF1CCA-50B3-441C-BEE4-F552692F85D7@microsoft.com... > >> > >> >>I am trying to read the list of SSIDs stored in the Zero Config's > >> > >> >>preferred > >> > >> >> network list. I believe this is possible through WPS - > >> > >> >> IProvisioningDomain::Querry. But I am not able to find any > >> > >> >> example for > >> > >> >> this. > >> > >> >> It would be helpful if you could direct me to a sample. > >> > >> >> > >> > >> >> Thanks, > >> > >> >> Priya > >> > >> > > >> > >> > > >> > >> > >> > >> > >> > >> > >> > > >> > > >> > I understand that it is frustrating, but I cannot answer that question at
this time. -- Show quoteHide quoteJerry Peterson Windows Network Services - Wireless This posting is provided "AS IS" with no warranties, and confers no rights. "PriyKo" <K.Lakshmipr***@gmail.com> wrote in message news:1115221157.378961.157850@o13g2000cwo.googlegroups.com... > Jerry, > > Thanks for your replies. Is this something that APIs will be available > for at some point in the future? > > Priya > > > Jerry Peterson[MSFT] wrote: >> No it is not possible because the Profiles are not stored in XML > format. >> XML format can be used for operations with the Provisioning API, but > the >> wireless service uses a unique structure in the profile store. > Direct >> modification of the profile store is not a method I can advocate or >> recommend. >> >> -- >> Jerry Peterson >> Windows Network Services - Wireless >> >> This posting is provided "AS IS" with no warranties, and confers no > rights. >> "Priyko" <Priko@newsgroup.nospam> wrote in message >> news:07352B21-BEE7-4F68-A842-9FD603850230@microsoft.com... >> > Jerry, >> > >> > Is it possible to parse the XML file where zero config stores the > profiles >> > directly? Parsing the trace to get preferred networks might not > work for >> > me >> > (for reasons mentioned below). >> > >> > Thanks, >> > Priya >> > >> > >> > "Priyko" wrote: >> > >> >> Jerry, >> >> >> >> Thanks for the reply. My concerns in doing this are- >> >> >> >> 1. My application would have to enable tracing and the user could > turn >> >> off >> >> tracing anytime. In that case I might not be guaranteed to get the > >> >> preferred >> >> list whenever I query. >> >> >> >> 2. If tracing is not enabled and I just enable tracing, I am not > sure the >> >> trace file will contain preferred list..meaning- I would have to > wait for >> >> WZCSVC to update the trace file before I can get the preferred > list. >> >> >> >> 3. The trace file could be large and parsing might not be very > efficient >> >> method to get the preferred list. Especially since the log file > becomes >> >> huge >> >> with time and my app would need this info more than once. >> >> >> >> Instead is it possible to directly parse the XML file where WZC > stores >> >> the >> >> profiles? >> >> >> >> Thanks again, >> >> Priya >> >> >> >> "Jerry Peterson[MSFT]" wrote: >> >> >> >> > This registry key is not public because it structure and > contents >> >> > change >> >> > quite frequently. This would not be a suggestable method to > obtain >> >> > preferred list entries. >> >> > >> >> > With some simple parsing logic you find your preferred networks > list in >> >> > the >> >> > WZCTRACE.LOG. You are looking for a set of strings like this: >> >> > >> >> > [2752] 10:26:16:189: [WZCCopySelectedConfigs(02E9EEE8->4/4, 0) >> >> > [2752] 10:26:16:189: WZCCopySelectedConfigs[2]: > SSID=<9:MyNetwork> >> >> > From >> >> > List >> >> > [2752] 10:26:16:189: WZCCopySelectedConfigs[0]: > SSID=<11:AnotherSSID> >> >> > From >> >> > List >> >> > [2752] 10:26:16:189: WZCCopySelectedConfigs[1]: > SSID=<9:ThirdSSID> >> >> > From >> >> > List >> >> > [2752] 10:26:16:189: WZCCopySelectedConfigs[3]: > SSID=<8:HomeSSID> >> >> > From >> >> > List >> >> > [2752] 10:26:16:189: WZCCopySelectedConfigs]=0, NumCopied=<4>, >> >> > Index=<4/4> >> >> > >> >> > Does this help narrow down your search? >> >> > >> >> > -- >> >> > Jerry Peterson >> >> > Windows Network Services - Wireless >> >> > >> >> > This posting is provided "AS IS" with no warranties, and confers > no >> >> > rights. >> >> > "Priyko" <Priko@newsgroup.nospam> wrote in message >> >> > news:022CF49F-B122-4F54-B38C-3A367AF34DB7@microsoft.com... >> >> > >I see that the preferred network list is present under- >> >> > > >> >> > > > [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WZCSVC\Parameters\Interfaces\{interface >> >> > > GUID}] >> >> > > >> >> > > There is a registry value "Static#....". This is REG_BINARY > and has >> >> > > the >> >> > > preferred network name. Is the structure of this registry > value >> >> > > available? >> >> > > If >> >> > > so, I can extract the preferred nw ssid from this. Please > help. >> >> > > >> >> > > Thanks, >> >> > > Priya >> >> > > >> >> > > "Oliver Saal [MS]" wrote: >> >> > > >> >> > >> WPS is an component which is built into the WZCSVC service to > >> >> > >> support >> >> > >> "hotspot" technologies. The WPSDDK documentation does not > describe >> >> > >> how to >> >> > >> extract SSIDs but how to add or query your own hotspot XML > files on >> >> > >> a >> >> > >> client. WPS is a something which you'd probably not need to > examine >> >> > >> unless >> >> > >> you're a hotspot provider yourself. There is one exception to > this >> >> > >> statement: there is an API "CreateProfile" included in the > WPS >> >> > >> documentation >> >> > >> which you can use to create a wireless profile in the > preferred >> >> > >> list. >> >> > >> Note, >> >> > >> this will not satisfy your initial problem but I may have a >> >> > >> workaround >> >> > >> solution. >> >> > >> >> >> > >> Personally, I don't know of a publicly documented API to > extract the >> >> > >> properties of a wireless profile in XPSP2. So my suggestion > to find >> >> > >> the >> >> > >> list >> >> > >> of preferred SSIDs is through the logs created by the > wireless >> >> > >> service. >> >> > >> If >> >> > >> you enable wireless tracing: >> >> > >> >> >> > >> C:\>netsh ras set tracing WZCTrace enable >> >> > >> >> >> > >> you'll create a %SystemDrive%\Windows\Tracing\WZCTrace.log > file >> >> > >> which is >> >> > >> spew generated from the WZCSVC service. You can parse this > log file >> >> > >> for >> >> > >> the >> >> > >> SSIDs scanned based on the preferred list. This list will > provide >> >> > >> you >> >> > >> with >> >> > >> the basic properties (read, SSID) of the preferred network > list. >> >> > >> >> >> > >> -- >> >> > >> Oliver >> >> > >> This posting is provided "AS IS", with NO warranties and > confers NO >> >> > >> rights >> >> > >> > ----------------------------------------------------------------------------- >> >> > >> >> >> > >> "Arkady Frenkel" <arka***@hotmailxdotx.com> wrote in message >> >> > >> news:%23JAJcW0QFHA.4028@tk2msftngp13.phx.gbl... >> >> > >> > Did you downloaded WSPDDK with example of Query in it ? >> >> > >> > > http://www.microsoft.com/whdc/device/network/wireless/wps.mspx >> >> > >> > Arkady >> >> > >> > >> >> > >> > "Prikko" <Priko@newsgroup.nospam> wrote in message >> >> > >> > news:C1AF1CCA-50B3-441C-BEE4-F552692F85D7@microsoft.com... >> >> > >> >>I am trying to read the list of SSIDs stored in the Zero > Config's >> >> > >> >>preferred >> >> > >> >> network list. I believe this is possible through WPS - >> >> > >> >> IProvisioningDomain::Querry. But I am not able to find any > >> >> > >> >> example for >> >> > >> >> this. >> >> > >> >> It would be helpful if you could direct me to a sample. >> >> > >> >> >> >> > >> >> Thanks, >> >> > >> >> Priya >> >> > >> > >> >> > >> > >> >> > >> >> >> > >> >> >> > >> >> >> > >> >> > >> >> > >
Display of available BSSIDs for SSIDs
erratic signal File sharing from a WIFI PC with nobody logged on - How to keep it on the network? wireless disconnecting Authenticate as computer when computer information is availabel ICS unusual problem Secure Wireless Lan my nic sees the network but can't connect! gateway not resetting sudden loss of home wireless network? |
|||||||||||||||||||||||