Is it possible to enable WZC but disable its GUI?

I think I just uncovered a sad flaw with WZC: If you uncheck "Notify me
when new wireless networks are available", then WZC sets tmTf (periodic scan
freq) to INFINITE. Which is bad if you want your system to automatically
connect to preferred SSID's without any popup notification. And if you use
WZCSetContext() to set tmTf to something reasonable (like 30000ms), then the
next time you boot WZC sees that value in the registry and decides to check
that "Notify me..." checkbox. And you certainly don't want users to see the
network dialog if you're a kiosk application.

So I need a way to keep the WiFi periodic scan at ~30sec while disabling any
sort of WZC GUI. I'm a platform builder noob, but I imagine that I can fix
this in wzcpopup.c by either (A) prevent calling SetContext or (B) always
set pfPopup to FALSE. If I fix this, will it automatically get included
when I build/sysgen, or do I need to do something else (hopefully not
involving makefiles).

Thanks.

Re: How to use WZC but disable its GUI? by Kirk

Kirk
Tue Jun 20 10:48:11 CDT 2006

Out of curiosity, why is modifying PUBLIC verboten?

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> wrote in message news:ezG6F%23HlGHA.3776@TK2MSFTNGP03.phx.gbl...
> Don't modify things in the PUBLIC branch of the tree, ever!
>
> In this case, modifying NETUI, not WZC, is what you'd need to do, yes.
> You can arrange it so that, so WZC itself, it appears that it's displayed
> the dialog and you've tapped some innocuous option (OK or Cancel), while
> actually not displaying anything at all.
>
> Thanks for posting the info. I'm sure that will save someone else some
> work later...
>
> Paul T.
>
> "Kirk B" <a@b.c> wrote in message
> news:%236Pcks$kGHA.5036@TK2MSFTNGP02.phx.gbl...
>> Is it possible to enable WZC but disable its GUI?
>>
>> I think I just uncovered a sad flaw with WZC: If you uncheck "Notify me
>> when new wireless networks are available", then WZC sets tmTf (periodic
>> scan freq) to INFINITE. Which is bad if you want your system to
>> automatically connect to preferred SSID's without any popup notification.
>> And if you use WZCSetContext() to set tmTf to something reasonable (like
>> 30000ms), then the next time you boot WZC sees that value in the registry
>> and decides to check that "Notify me..." checkbox. And you certainly
>> don't want users to see the network dialog if you're a kiosk application.
>>
>> So I need a way to keep the WiFi periodic scan at ~30sec while disabling
>> any sort of WZC GUI. I'm a platform builder noob, but I imagine that I
>> can fix this in wzcpopup.c by either (A) prevent calling SetContext or
>> (B) always set pfPopup to FALSE. If I fix this, will it automatically
>> get included when I build/sysgen, or do I need to do something else
>> (hopefully not involving makefiles).
>>
>> Thanks.
>>
>>
>
>



Re: How to use WZC but disable its GUI? by Paul

Paul
Tue Jun 20 10:38:13 CDT 2006

Don't modify things in the PUBLIC branch of the tree, ever!

In this case, modifying NETUI, not WZC, is what you'd need to do, yes. You
can arrange it so that, so WZC itself, it appears that it's displayed the
dialog and you've tapped some innocuous option (OK or Cancel), while
actually not displaying anything at all.

Thanks for posting the info. I'm sure that will save someone else some work
later...

Paul T.

"Kirk B" <a@b.c> wrote in message
news:%236Pcks$kGHA.5036@TK2MSFTNGP02.phx.gbl...
> Is it possible to enable WZC but disable its GUI?
>
> I think I just uncovered a sad flaw with WZC: If you uncheck "Notify me
> when new wireless networks are available", then WZC sets tmTf (periodic
> scan freq) to INFINITE. Which is bad if you want your system to
> automatically connect to preferred SSID's without any popup notification.
> And if you use WZCSetContext() to set tmTf to something reasonable (like
> 30000ms), then the next time you boot WZC sees that value in the registry
> and decides to check that "Notify me..." checkbox. And you certainly
> don't want users to see the network dialog if you're a kiosk application.
>
> So I need a way to keep the WiFi periodic scan at ~30sec while disabling
> any sort of WZC GUI. I'm a platform builder noob, but I imagine that I
> can fix this in wzcpopup.c by either (A) prevent calling SetContext or (B)
> always set pfPopup to FALSE. If I fix this, will it automatically get
> included when I build/sysgen, or do I need to do something else (hopefully
> not involving makefiles).
>
> Thanks.
>
>



Re: How to use WZC but disable its GUI? by Paul

Paul
Tue Jun 20 11:00:59 CDT 2006

It's allowed, certainly, but an enormously bad idea. That folder *belongs*
to MS. This isn't the only example or even the worst, but they might come
along with a QFE (you *have* updated your code with the latest updates to
the OS, right?!), at any time and change the code in, say, NETUI to fix a
bug, add a feature, etc. Well, if you have modifications to that file, your
modifications just got destroyed and not in a way that's quickly and easily
detectable and undoable.

This has been discussed a lot and you can read the archived messages via
GoogleGroups, if you want more examples of how doing things what-seems-like
the easy way will stab you in the back later.

Paul T.

"Kirk B" <a@b.c> wrote in message
news:uFVDwDIlGHA.1320@TK2MSFTNGP04.phx.gbl...
> Out of curiosity, why is modifying PUBLIC verboten?
>
> "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
> com> wrote in message news:ezG6F%23HlGHA.3776@TK2MSFTNGP03.phx.gbl...
>> Don't modify things in the PUBLIC branch of the tree, ever!
>>
>> In this case, modifying NETUI, not WZC, is what you'd need to do, yes.
>> You can arrange it so that, so WZC itself, it appears that it's displayed
>> the dialog and you've tapped some innocuous option (OK or Cancel), while
>> actually not displaying anything at all.
>>
>> Thanks for posting the info. I'm sure that will save someone else some
>> work later...
>>
>> Paul T.
>>
>> "Kirk B" <a@b.c> wrote in message
>> news:%236Pcks$kGHA.5036@TK2MSFTNGP02.phx.gbl...
>>> Is it possible to enable WZC but disable its GUI?
>>>
>>> I think I just uncovered a sad flaw with WZC: If you uncheck "Notify me
>>> when new wireless networks are available", then WZC sets tmTf (periodic
>>> scan freq) to INFINITE. Which is bad if you want your system to
>>> automatically connect to preferred SSID's without any popup
>>> notification. And if you use WZCSetContext() to set tmTf to something
>>> reasonable (like 30000ms), then the next time you boot WZC sees that
>>> value in the registry and decides to check that "Notify me..." checkbox.
>>> And you certainly don't want users to see the network dialog if you're a
>>> kiosk application.
>>>
>>> So I need a way to keep the WiFi periodic scan at ~30sec while disabling
>>> any sort of WZC GUI. I'm a platform builder noob, but I imagine that I
>>> can fix this in wzcpopup.c by either (A) prevent calling SetContext or
>>> (B) always set pfPopup to FALSE. If I fix this, will it automatically
>>> get included when I build/sysgen, or do I need to do something else
>>> (hopefully not involving makefiles).
>>>
>>> Thanks.
>>>
>>>
>>
>>
>
>



Re: How to use WZC but disable its GUI? by Kirk

Kirk
Tue Jun 20 11:08:13 CDT 2006

Since NETUI and WZCPOPUP are both in the PUBLIC folder, is it equally bad to
modify either of them?

Also, if I modify one of them and then rebuild/sysgen, PB gives me an error
like this:

BUILD: [00:0000000004:ERRORI] Bad database entry: Copy of wzcpopup.c 41 0
1C45F9D9BB43800

Is PB checking hashes on the source code? How do I override this?

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> wrote in message news:%23Uu8zKIlGHA.1272@TK2MSFTNGP03.phx.gbl...
> It's allowed, certainly, but an enormously bad idea. That folder
> *belongs* to MS. This isn't the only example or even the worst, but they
> might come along with a QFE (you *have* updated your code with the latest
> updates to the OS, right?!), at any time and change the code in, say,
> NETUI to fix a bug, add a feature, etc. Well, if you have modifications
> to that file, your modifications just got destroyed and not in a way
> that's quickly and easily detectable and undoable.
>
> This has been discussed a lot and you can read the archived messages via
> GoogleGroups, if you want more examples of how doing things
> what-seems-like the easy way will stab you in the back later.
>
> Paul T.
>
> "Kirk B" <a@b.c> wrote in message
> news:uFVDwDIlGHA.1320@TK2MSFTNGP04.phx.gbl...
>> Out of curiosity, why is modifying PUBLIC verboten?
>>
>> "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam
>> DOT com> wrote in message news:ezG6F%23HlGHA.3776@TK2MSFTNGP03.phx.gbl...
>>> Don't modify things in the PUBLIC branch of the tree, ever!
>>>
>>> In this case, modifying NETUI, not WZC, is what you'd need to do, yes.
>>> You can arrange it so that, so WZC itself, it appears that it's
>>> displayed the dialog and you've tapped some innocuous option (OK or
>>> Cancel), while actually not displaying anything at all.
>>>
>>> Thanks for posting the info. I'm sure that will save someone else some
>>> work later...
>>>
>>> Paul T.
>>>
>>> "Kirk B" <a@b.c> wrote in message
>>> news:%236Pcks$kGHA.5036@TK2MSFTNGP02.phx.gbl...
>>>> Is it possible to enable WZC but disable its GUI?
>>>>
>>>> I think I just uncovered a sad flaw with WZC: If you uncheck "Notify
>>>> me when new wireless networks are available", then WZC sets tmTf
>>>> (periodic scan freq) to INFINITE. Which is bad if you want your system
>>>> to automatically connect to preferred SSID's without any popup
>>>> notification. And if you use WZCSetContext() to set tmTf to something
>>>> reasonable (like 30000ms), then the next time you boot WZC sees that
>>>> value in the registry and decides to check that "Notify me..."
>>>> checkbox. And you certainly don't want users to see the network dialog
>>>> if you're a kiosk application.
>>>>
>>>> So I need a way to keep the WiFi periodic scan at ~30sec while
>>>> disabling any sort of WZC GUI. I'm a platform builder noob, but I
>>>> imagine that I can fix this in wzcpopup.c by either (A) prevent calling
>>>> SetContext or (B) always set pfPopup to FALSE. If I fix this, will it
>>>> automatically get included when I build/sysgen, or do I need to do
>>>> something else (hopefully not involving makefiles).
>>>>
>>>> Thanks.
>>>>
>>>>
>>>
>>>
>>
>>
>
>



Re: How to use WZC but disable its GUI? by Dean

Dean
Tue Jun 20 11:22:37 CDT 2006

It's equally bad to modify anything in any MS provided directory. Some
directories may be more prone than others to be updated, but that's
irrelevant.

The bad data base entry is because you have a space in the path name. The
build tools can't handle that. Delete the build.dat file to get rid of the
error.

--
Dean Ramsier - eMVP
BSQUARE Corporation


"Kirk B" <a@b.c> wrote in message
news:edmu8OIlGHA.1456@TK2MSFTNGP04.phx.gbl...
> Since NETUI and WZCPOPUP are both in the PUBLIC folder, is it equally bad
> to modify either of them?
>
> Also, if I modify one of them and then rebuild/sysgen, PB gives me an
> error like this:
>
> BUILD: [00:0000000004:ERRORI] Bad database entry: Copy of wzcpopup.c 41 0
> 1C45F9D9BB43800
>
> Is PB checking hashes on the source code? How do I override this?
>
> "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
> com> wrote in message news:%23Uu8zKIlGHA.1272@TK2MSFTNGP03.phx.gbl...
>> It's allowed, certainly, but an enormously bad idea. That folder
>> *belongs* to MS. This isn't the only example or even the worst, but they
>> might come along with a QFE (you *have* updated your code with the latest
>> updates to the OS, right?!), at any time and change the code in, say,
>> NETUI to fix a bug, add a feature, etc. Well, if you have modifications
>> to that file, your modifications just got destroyed and not in a way
>> that's quickly and easily detectable and undoable.
>>
>> This has been discussed a lot and you can read the archived messages via
>> GoogleGroups, if you want more examples of how doing things
>> what-seems-like the easy way will stab you in the back later.
>>
>> Paul T.
>>
>> "Kirk B" <a@b.c> wrote in message
>> news:uFVDwDIlGHA.1320@TK2MSFTNGP04.phx.gbl...
>>> Out of curiosity, why is modifying PUBLIC verboten?
>>>
>>> "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam
>>> DOT com> wrote in message
>>> news:ezG6F%23HlGHA.3776@TK2MSFTNGP03.phx.gbl...
>>>> Don't modify things in the PUBLIC branch of the tree, ever!
>>>>
>>>> In this case, modifying NETUI, not WZC, is what you'd need to do, yes.
>>>> You can arrange it so that, so WZC itself, it appears that it's
>>>> displayed the dialog and you've tapped some innocuous option (OK or
>>>> Cancel), while actually not displaying anything at all.
>>>>
>>>> Thanks for posting the info. I'm sure that will save someone else some
>>>> work later...
>>>>
>>>> Paul T.
>>>>
>>>> "Kirk B" <a@b.c> wrote in message
>>>> news:%236Pcks$kGHA.5036@TK2MSFTNGP02.phx.gbl...
>>>>> Is it possible to enable WZC but disable its GUI?
>>>>>
>>>>> I think I just uncovered a sad flaw with WZC: If you uncheck "Notify
>>>>> me when new wireless networks are available", then WZC sets tmTf
>>>>> (periodic scan freq) to INFINITE. Which is bad if you want your
>>>>> system to automatically connect to preferred SSID's without any popup
>>>>> notification. And if you use WZCSetContext() to set tmTf to something
>>>>> reasonable (like 30000ms), then the next time you boot WZC sees that
>>>>> value in the registry and decides to check that "Notify me..."
>>>>> checkbox. And you certainly don't want users to see the network dialog
>>>>> if you're a kiosk application.
>>>>>
>>>>> So I need a way to keep the WiFi periodic scan at ~30sec while
>>>>> disabling any sort of WZC GUI. I'm a platform builder noob, but I
>>>>> imagine that I can fix this in wzcpopup.c by either (A) prevent
>>>>> calling SetContext or (B) always set pfPopup to FALSE. If I fix this,
>>>>> will it automatically get included when I build/sysgen, or do I need
>>>>> to do something else (hopefully not involving makefiles).
>>>>>
>>>>> Thanks.
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>



Re: How to use WZC but disable its GUI? by Kirk

Kirk
Tue Jun 20 11:45:09 CDT 2006

Done. Thanks.

And FWIW, I think I'm going to avoid messing with PUBLIC and will solve my
problem by fondling NDIS instead.


"Dean Ramsier" <ramsiernospam@nospam.com> wrote in message
news:Orf4tWIlGHA.2200@TK2MSFTNGP05.phx.gbl...
> It's equally bad to modify anything in any MS provided directory. Some
> directories may be more prone than others to be updated, but that's
> irrelevant.
>
> The bad data base entry is because you have a space in the path name. The
> build tools can't handle that. Delete the build.dat file to get rid of
> the error.
>
> --
> Dean Ramsier - eMVP
> BSQUARE Corporation
>
>
> "Kirk B" <a@b.c> wrote in message
> news:edmu8OIlGHA.1456@TK2MSFTNGP04.phx.gbl...
>> Since NETUI and WZCPOPUP are both in the PUBLIC folder, is it equally bad
>> to modify either of them?
>>
>> Also, if I modify one of them and then rebuild/sysgen, PB gives me an
>> error like this:
>>
>> BUILD: [00:0000000004:ERRORI] Bad database entry: Copy of wzcpopup.c 41 0
>> 1C45F9D9BB43800
>>
>> Is PB checking hashes on the source code? How do I override this?
>>
>> "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam
>> DOT com> wrote in message news:%23Uu8zKIlGHA.1272@TK2MSFTNGP03.phx.gbl...
>>> It's allowed, certainly, but an enormously bad idea. That folder
>>> *belongs* to MS. This isn't the only example or even the worst, but
>>> they might come along with a QFE (you *have* updated your code with the
>>> latest updates to the OS, right?!), at any time and change the code in,
>>> say, NETUI to fix a bug, add a feature, etc. Well, if you have
>>> modifications to that file, your modifications just got destroyed and
>>> not in a way that's quickly and easily detectable and undoable.
>>>
>>> This has been discussed a lot and you can read the archived messages via
>>> GoogleGroups, if you want more examples of how doing things
>>> what-seems-like the easy way will stab you in the back later.
>>>
>>> Paul T.
>>>
>>> "Kirk B" <a@b.c> wrote in message
>>> news:uFVDwDIlGHA.1320@TK2MSFTNGP04.phx.gbl...
>>>> Out of curiosity, why is modifying PUBLIC verboten?
>>>>
>>>> "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam
>>>> DOT com> wrote in message
>>>> news:ezG6F%23HlGHA.3776@TK2MSFTNGP03.phx.gbl...
>>>>> Don't modify things in the PUBLIC branch of the tree, ever!
>>>>>
>>>>> In this case, modifying NETUI, not WZC, is what you'd need to do, yes.
>>>>> You can arrange it so that, so WZC itself, it appears that it's
>>>>> displayed the dialog and you've tapped some innocuous option (OK or
>>>>> Cancel), while actually not displaying anything at all.
>>>>>
>>>>> Thanks for posting the info. I'm sure that will save someone else
>>>>> some work later...
>>>>>
>>>>> Paul T.
>>>>>
>>>>> "Kirk B" <a@b.c> wrote in message
>>>>> news:%236Pcks$kGHA.5036@TK2MSFTNGP02.phx.gbl...
>>>>>> Is it possible to enable WZC but disable its GUI?
>>>>>>
>>>>>> I think I just uncovered a sad flaw with WZC: If you uncheck "Notify
>>>>>> me when new wireless networks are available", then WZC sets tmTf
>>>>>> (periodic scan freq) to INFINITE. Which is bad if you want your
>>>>>> system to automatically connect to preferred SSID's without any popup
>>>>>> notification. And if you use WZCSetContext() to set tmTf to something
>>>>>> reasonable (like 30000ms), then the next time you boot WZC sees that
>>>>>> value in the registry and decides to check that "Notify me..."
>>>>>> checkbox. And you certainly don't want users to see the network
>>>>>> dialog if you're a kiosk application.
>>>>>>
>>>>>> So I need a way to keep the WiFi periodic scan at ~30sec while
>>>>>> disabling any sort of WZC GUI. I'm a platform builder noob, but I
>>>>>> imagine that I can fix this in wzcpopup.c by either (A) prevent
>>>>>> calling SetContext or (B) always set pfPopup to FALSE. If I fix
>>>>>> this, will it automatically get included when I build/sysgen, or do I
>>>>>> need to do something else (hopefully not involving makefiles).
>>>>>>
>>>>>> Thanks.
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>



Re: How to use WZC but disable its GUI? by Paul

Paul
Tue Jun 20 12:00:46 CDT 2006

You can *clone* stuff in the PUBLIC folders with no problem. I replace the
shell, NetUI, and several other Microsoft-provided PUBLIC things on our
devices. You just don't want to modify them in-place. You can copy them to
the OTHERS folder, to a separate folder just under PUBLIC which Microsoft
didn't provide (MYCOMMON or something), or to your PLATFORM folder. The
problem is not replacing Microsoft code with your code, but trying to do it
"on the cheap" right in the PUBLIC folder.

Paul T.

"Kirk B" <a@b.c> wrote in message
news:eXhIljIlGHA.984@TK2MSFTNGP05.phx.gbl...
> Done. Thanks.
>
> And FWIW, I think I'm going to avoid messing with PUBLIC and will solve my
> problem by fondling NDIS instead.
>
>
> "Dean Ramsier" <ramsiernospam@nospam.com> wrote in message
> news:Orf4tWIlGHA.2200@TK2MSFTNGP05.phx.gbl...
>> It's equally bad to modify anything in any MS provided directory. Some
>> directories may be more prone than others to be updated, but that's
>> irrelevant.
>>
>> The bad data base entry is because you have a space in the path name.
>> The build tools can't handle that. Delete the build.dat file to get rid
>> of the error.
>>
>> --
>> Dean Ramsier - eMVP
>> BSQUARE Corporation
>>
>>
>> "Kirk B" <a@b.c> wrote in message
>> news:edmu8OIlGHA.1456@TK2MSFTNGP04.phx.gbl...
>>> Since NETUI and WZCPOPUP are both in the PUBLIC folder, is it equally
>>> bad to modify either of them?
>>>
>>> Also, if I modify one of them and then rebuild/sysgen, PB gives me an
>>> error like this:
>>>
>>> BUILD: [00:0000000004:ERRORI] Bad database entry: Copy of wzcpopup.c 41
>>> 0 1C45F9D9BB43800
>>>
>>> Is PB checking hashes on the source code? How do I override this?
>>>
>>> "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam
>>> DOT com> wrote in message
>>> news:%23Uu8zKIlGHA.1272@TK2MSFTNGP03.phx.gbl...
>>>> It's allowed, certainly, but an enormously bad idea. That folder
>>>> *belongs* to MS. This isn't the only example or even the worst, but
>>>> they might come along with a QFE (you *have* updated your code with the
>>>> latest updates to the OS, right?!), at any time and change the code in,
>>>> say, NETUI to fix a bug, add a feature, etc. Well, if you have
>>>> modifications to that file, your modifications just got destroyed and
>>>> not in a way that's quickly and easily detectable and undoable.
>>>>
>>>> This has been discussed a lot and you can read the archived messages
>>>> via GoogleGroups, if you want more examples of how doing things
>>>> what-seems-like the easy way will stab you in the back later.
>>>>
>>>> Paul T.
>>>>
>>>> "Kirk B" <a@b.c> wrote in message
>>>> news:uFVDwDIlGHA.1320@TK2MSFTNGP04.phx.gbl...
>>>>> Out of curiosity, why is modifying PUBLIC verboten?
>>>>>
>>>>> "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam
>>>>> DOT com> wrote in message
>>>>> news:ezG6F%23HlGHA.3776@TK2MSFTNGP03.phx.gbl...
>>>>>> Don't modify things in the PUBLIC branch of the tree, ever!
>>>>>>
>>>>>> In this case, modifying NETUI, not WZC, is what you'd need to do,
>>>>>> yes. You can arrange it so that, so WZC itself, it appears that it's
>>>>>> displayed the dialog and you've tapped some innocuous option (OK or
>>>>>> Cancel), while actually not displaying anything at all.
>>>>>>
>>>>>> Thanks for posting the info. I'm sure that will save someone else
>>>>>> some work later...
>>>>>>
>>>>>> Paul T.
>>>>>>
>>>>>> "Kirk B" <a@b.c> wrote in message
>>>>>> news:%236Pcks$kGHA.5036@TK2MSFTNGP02.phx.gbl...
>>>>>>> Is it possible to enable WZC but disable its GUI?
>>>>>>>
>>>>>>> I think I just uncovered a sad flaw with WZC: If you uncheck
>>>>>>> "Notify me when new wireless networks are available", then WZC sets
>>>>>>> tmTf (periodic scan freq) to INFINITE. Which is bad if you want
>>>>>>> your system to automatically connect to preferred SSID's without any
>>>>>>> popup notification. And if you use WZCSetContext() to set tmTf to
>>>>>>> something reasonable (like 30000ms), then the next time you boot WZC
>>>>>>> sees that value in the registry and decides to check that "Notify
>>>>>>> me..." checkbox. And you certainly don't want users to see the
>>>>>>> network dialog if you're a kiosk application.
>>>>>>>
>>>>>>> So I need a way to keep the WiFi periodic scan at ~30sec while
>>>>>>> disabling any sort of WZC GUI. I'm a platform builder noob, but I
>>>>>>> imagine that I can fix this in wzcpopup.c by either (A) prevent
>>>>>>> calling SetContext or (B) always set pfPopup to FALSE. If I fix
>>>>>>> this, will it automatically get included when I build/sysgen, or do
>>>>>>> I need to do something else (hopefully not involving makefiles).
>>>>>>>
>>>>>>> Thanks.
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>



Re: How to use WZC but disable its GUI? by Kirk

Kirk
Tue Jun 20 12:07:51 CDT 2006

Gotcha. Thank you very much for your help.

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> wrote in message news:uFS7NsIlGHA.4512@TK2MSFTNGP04.phx.gbl...
> You can *clone* stuff in the PUBLIC folders with no problem. I replace the
> shell, NetUI, and several other Microsoft-provided PUBLIC things on our
> devices. You just don't want to modify them in-place. You can copy them
> to the OTHERS folder, to a separate folder just under PUBLIC which
> Microsoft didn't provide (MYCOMMON or something), or to your PLATFORM
> folder. The problem is not replacing Microsoft code with your code, but
> trying to do it "on the cheap" right in the PUBLIC folder.
>
> Paul T.
>
> "Kirk B" <a@b.c> wrote in message
> news:eXhIljIlGHA.984@TK2MSFTNGP05.phx.gbl...
>> Done. Thanks.
>>
>> And FWIW, I think I'm going to avoid messing with PUBLIC and will solve
>> my problem by fondling NDIS instead.
>>
>>
>> "Dean Ramsier" <ramsiernospam@nospam.com> wrote in message
>> news:Orf4tWIlGHA.2200@TK2MSFTNGP05.phx.gbl...
>>> It's equally bad to modify anything in any MS provided directory. Some
>>> directories may be more prone than others to be updated, but that's
>>> irrelevant.
>>>
>>> The bad data base entry is because you have a space in the path name.
>>> The build tools can't handle that. Delete the build.dat file to get rid
>>> of the error.
>>>
>>> --
>>> Dean Ramsier - eMVP
>>> BSQUARE Corporation
>>>
>>>
>>> "Kirk B" <a@b.c> wrote in message
>>> news:edmu8OIlGHA.1456@TK2MSFTNGP04.phx.gbl...
>>>> Since NETUI and WZCPOPUP are both in the PUBLIC folder, is it equally
>>>> bad to modify either of them?
>>>>
>>>> Also, if I modify one of them and then rebuild/sysgen, PB gives me an
>>>> error like this:
>>>>
>>>> BUILD: [00:0000000004:ERRORI] Bad database entry: Copy of wzcpopup.c 41
>>>> 0 1C45F9D9BB43800
>>>>
>>>> Is PB checking hashes on the source code? How do I override this?
>>>>
>>>> "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam
>>>> DOT com> wrote in message
>>>> news:%23Uu8zKIlGHA.1272@TK2MSFTNGP03.phx.gbl...
>>>>> It's allowed, certainly, but an enormously bad idea. That folder
>>>>> *belongs* to MS. This isn't the only example or even the worst, but
>>>>> they might come along with a QFE (you *have* updated your code with
>>>>> the latest updates to the OS, right?!), at any time and change the
>>>>> code in, say, NETUI to fix a bug, add a feature, etc. Well, if you
>>>>> have modifications to that file, your modifications just got destroyed
>>>>> and not in a way that's quickly and easily detectable and undoable.
>>>>>
>>>>> This has been discussed a lot and you can read the archived messages
>>>>> via GoogleGroups, if you want more examples of how doing things
>>>>> what-seems-like the easy way will stab you in the back later.
>>>>>
>>>>> Paul T.
>>>>>
>>>>> "Kirk B" <a@b.c> wrote in message
>>>>> news:uFVDwDIlGHA.1320@TK2MSFTNGP04.phx.gbl...
>>>>>> Out of curiosity, why is modifying PUBLIC verboten?
>>>>>>
>>>>>> "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no
>>>>>> spam DOT com> wrote in message
>>>>>> news:ezG6F%23HlGHA.3776@TK2MSFTNGP03.phx.gbl...
>>>>>>> Don't modify things in the PUBLIC branch of the tree, ever!
>>>>>>>
>>>>>>> In this case, modifying NETUI, not WZC, is what you'd need to do,
>>>>>>> yes. You can arrange it so that, so WZC itself, it appears that it's
>>>>>>> displayed the dialog and you've tapped some innocuous option (OK or
>>>>>>> Cancel), while actually not displaying anything at all.
>>>>>>>
>>>>>>> Thanks for posting the info. I'm sure that will save someone else
>>>>>>> some work later...
>>>>>>>
>>>>>>> Paul T.
>>>>>>>
>>>>>>> "Kirk B" <a@b.c> wrote in message
>>>>>>> news:%236Pcks$kGHA.5036@TK2MSFTNGP02.phx.gbl...
>>>>>>>> Is it possible to enable WZC but disable its GUI?
>>>>>>>>
>>>>>>>> I think I just uncovered a sad flaw with WZC: If you uncheck
>>>>>>>> "Notify me when new wireless networks are available", then WZC sets
>>>>>>>> tmTf (periodic scan freq) to INFINITE. Which is bad if you want
>>>>>>>> your system to automatically connect to preferred SSID's without
>>>>>>>> any popup notification. And if you use WZCSetContext() to set tmTf
>>>>>>>> to something reasonable (like 30000ms), then the next time you boot
>>>>>>>> WZC sees that value in the registry and decides to check that
>>>>>>>> "Notify me..." checkbox. And you certainly don't want users to see
>>>>>>>> the network dialog if you're a kiosk application.
>>>>>>>>
>>>>>>>> So I need a way to keep the WiFi periodic scan at ~30sec while
>>>>>>>> disabling any sort of WZC GUI. I'm a platform builder noob, but I
>>>>>>>> imagine that I can fix this in wzcpopup.c by either (A) prevent
>>>>>>>> calling SetContext or (B) always set pfPopup to FALSE. If I fix
>>>>>>>> this, will it automatically get included when I build/sysgen, or do
>>>>>>>> I need to do something else (hopefully not involving makefiles).
>>>>>>>>
>>>>>>>> Thanks.
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>



Re: How to use WZC but disable its GUI? by Remi

Remi
Wed Jun 21 02:56:13 CDT 2006

> BUILD: [00:0000000004:ERRORI] Bad database entry: Copy of wzcpopup.c 41 0
> 1C45F9D9BB43800

Just one trick: avoid creating filenames with spaces in it, such as "Copy of
wzcpopup.c"; it confuses the build system.
For quick and dirty patches, I usually create a subfolder named "Original"
or so and I copy the original files to it.

HTH
Remi