Re: Using the registry



On Wed, 25 May 2005 20:23:30 +0100, "Jan"
<JanetMcDonald67@xxxxxxxxxxx> waffled on about something:

>Hi
>
>I have been using the old TurboPower Onguard components to implement reduced
>functionality demo's that can be released via a key. I followed the basic
>idea in their tutorials and used ini files to store data.
>
>I would like the option to store the data in the registry so that it is less
>obvious, but what keys should I generate do store this info?
>What happens if by some fluke I try generating a key that already exists?

There are specific areas of the registry for your program to store
it's config data.

If you want to store for the current user (an nobody else on that
machine), you want
HKEY_CURRENT_USER\Software\Your company name\Your application name

If you want the key to work for every user on the machine use
HKEY_LOCAL_MACHINE\SOFTWARE\Your company name\Your application name

You can store whatever you like under these keys, but as this is the
legit way of doing things (as defined by Microsoft) and the way all
programs are supposed to do things, it's the first place a
hacker/cracker will look. (Okay, maybe the second after the ini file).

>Does anyone else use the Onguard components? They seemed quite good in their
>day, but I don't see much about them anymore.

Dunno. Never used them

Dodgy
--
MUSHROOMS ARE THE OPIATE OF THE MOOSES
.



Relevant Pages

  • Re: Registry verses INI
    ... If a user doesn't have admin rights on the PC, where is the best place to store the INI file? ... With the registry, I can tell the app to write to the HKEY_CURRENT_USERS area. ... MS said "Don't use INI files anymore. ...
    (microsoft.public.vb.general.discussion)
  • Re: Registry verses INI
    ... With the registry, I can tell the app to write to the HKEY_CURRENT_USERS ... So wouldn't this be a better place to store configuration data ... Blame Microsoft for changing ... MS said "Don't use INI files anymore. ...
    (microsoft.public.vb.general.discussion)
  • Re: .ini .dat or registry question
    ... > Which is better used to store 2 or 3 simple program settings, an ini file, dat file or the registry. ... implementing this with INI files is possible but not as clean. ... you should be fairly restrained about what and how much information you do store in the registry - there ...
    (microsoft.public.vb.winapi)
  • Using the registry
    ... I have been using the old TurboPower Onguard components to implement reduced ... functionality demo's that can be released via a key. ... idea in their tutorials and used ini files to store data. ... I would like the option to store the data in the registry so that it is less ...
    (comp.lang.pascal.delphi.misc)
  • Re: Final installation
    ... Saving the registry is part of the OS design. ... you might store it there. ... you'll need some form of a bootloader to handle loading the OS ...
    (microsoft.public.windowsce.embedded)