Article View: borland.public.cppbuilder.nativeapi
Article #13057Re: BHO question
From: Remy Lebeau (TeamB)
Date: Fri, 31 Oct 2003 21:20
Date: Fri, 31 Oct 2003 21:20
43 lines
3743 bytes
3743 bytes
"Martin C" <martinc@aol.com> wrote in message news:3fa2c796@newsgroups.borland.com... > 1- Save the user selection in the Registry, and my BHO dll, will > check on this value in the registry before it kill any popup window > so if this value = Enabled then the bho will start killing poup > windows, else it will just ignore it That is exactly what my own BHO does. I then have a separate app that sits in the System Tray and allows the user to enable/disable the BHO at any time by simply updating the Registry with the necessary values. I use a separate app only because I haven't integrated my BHO into IE's own toolbar/popupmenu yet. > 2- Save the user selection in INI file That is the same principle as the Registry approach, only with a file instead of the Registry. I prefer the Registry instead, because 1) that is Microsoft's recommended place to store program settings, 2) it allows per-user configurations without writing code to load user settings manually depending on which user is actually logged in (if you have a multi-user setup on your machine), and 3) the Registry is stored in memory, so it is faster than file I/O. > Will it be a problem to access a registry key to read its value > for several time No. In fact, if you go to http://www.sysinternals.com and get their Registry Monitor utility, you can see just how often the system actually accesses the Registry during all of the operations that you perform during the course of a day. The Registry is hammered frequently with accesses. The system won't care if you add a few extra of your own to the mix as well. > in other words some times there are sites that have a lot of > popup windows and the bho dll will have to read the registry > value before killing each one of these popup windows That will work just fine. Gambit Gambit
Technical Details
Message-ID:
<3fa2d16e$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3f84957c@newsgroups.borland.com> <3f897b9a@newsgroups.borland.com> <3f89c56f$1@newsgroups.borland.com> <3f8af683@newsgroups.borland.com> <3f8af95a$3@newsgroups.borland.com> <3f8affad@newsgroups.borland.com> <3f8b009f$3@newsgroups.borland.com> <3f8ed9f0$1@newsgroups.borland.com> <3f8edeb3$1@newsgroups.borland.com> <3f93f0e3@newsgroups.borland.com> <3f941ba4$1@newsgroups.borland.com> <3f9472ab@newsgroups.borland.com> <3f94782e$1@newsgroups.borland.com> <3f9487b0@newsgroups.borland.com> <3f94933e$1@newsgroups.borland.com> <3f949421$1@newsgroups.borland.com> <3f9496e6$1@newsgroups.borland.com> <3f9565e3@newsgroups.borland.com> <3f9570dd@newsgroups.borland.com> <3f95da49@newsgroups.borland.com> <3f95e02e$1@newsgroups.borland.com> <3f967065@newsgroups.borland.com> <3f96c2d7@newsgroups.borland.com> <3f99d769@newsgroups.borland.com> <3f99e7a4$1@newsgroups.borland.com> <3f9b0463@newsgroups.borland.com> <3f9c322a$1@newsgroups.borland.com> <3fa2c796@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,15b7dd6889830f4f X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-10-31 13:19:45 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f84957c@newsgroups.borland.com> <3f897b9a@newsgroups.borland.com> <3f89c56f$1@newsgroups.borland.com> <3f8af683@newsgroups.borland.com> <3f8af95a$3@newsgroups.borland.com> <3f8affad@newsgroups.borland.com> <3f8b009f$3@newsgroups.borland.com> <3f8ed9f0$1@newsgroups.borland.com> <3f8edeb3$1@newsgroups.borland.com> <3f93f0e3@newsgroups.borland.com> <3f941ba4$1@newsgroups.borland.com> <3f9472ab@newsgroups.borland.com> <3f94782e$1@newsgroups.borland.com> <3f9487b0@newsgroups.borland.com> <3f94933e$1@newsgroups.borland.com> <3f949421$1@newsgroups.borland.com> <3f9496e6$1@newsgroups.borland.com> <3f9565e3@newsgroups.borland.com> <3f9570dd@newsgroups.borland.com> <3f95da49@newsgroups.borland.com> <3f95e02e$1@newsgroups.borland.com> <3f967065@newsgroups.borland.com> <3f96c2d7@newsgroups.borland.com> <3f99d769@newsgroups.borland.com> <3f99e7a4$1@newsgroups.borland.com> <3f9b0463@newsgroups.borland.com> <3f9c322a$1@newsgroups.borland.com> <3fa2c796@newsgroups.borland.com> Subject: Re: BHO question Date: Fri, 31 Oct 2003 13:20:30 -0800 Lines: 45 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.22.137.75 Message-ID: <3fa2d16e$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1067635054 67.22.137.75 (31 Oct 2003 13:17:34 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail