Re: Using the registry



On Wed, 25 May 2005 20:23:30 +0100, "Jan"
<JanetMcDonald67@xxxxxxxxxxx> wrote:

>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.

Smart move

>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?

Not so smart move
- it makes your App hard to backup and restore
- /when/ the Registry goes down - your App is hosed
- RegMon is a very easy to use tool

Personally I would 'lock' the INI file with a CRC32

It drives people nuts being able to see the options in the INI file,
but also see a ruddy great warning saying :

EnterprizeUser=False
; WARNING machine generated file - DO NOT EDIT
LockCRC: 97649897546

A really adept cracker will simply frig your code, but this simple INI
file 'lock' will provide the less adept with hours of good clean
frustration.


.



Relevant Pages

  • Re: How to modify program files in Vista?
    ... You must change your program to store ... If there is an application ini file that is common to all users there ... What Microsoft would like developers to do is to store the configuration ... subdirectory of the user's user profile folder. ...
    (microsoft.public.vc.mfc)
  • Re: How to modify program files in Vista?
    ... You must change your program to store ... If there is an application ini file that is common to all users there ... What Microsoft would like developers to do is to store the configuration ... subdirectory of the user's user profile folder. ...
    (microsoft.public.vc.mfc)
  • Re: Exmerge Error Please Help
    ... >>PST of a single mailbox, ... >>Community College,CN=Microsoft ... > from INI file: 0 ... > store databases, read ...
    (microsoft.public.exchange2000.admin)
  • Re: Image Combo - Please help.
    ... > Controls do not have memory, so they don't know what you selected last ... You must store that information yourself (in ... > registry, an INI file, a plain text file, whatever... ... >>> combo has a ListIndex property anyway... ...
    (microsoft.public.vb.general.discussion)
  • Re: reading an ini file
    ... Once can use the WritePrivateProfileStructto store any kind of data ... > Also be aware of the fact that using a .INI file has certain limitations. ... See my Registry classes on my MVP ... >> CString strIntItem; ...
    (microsoft.public.vc.mfc)