
Q Registers/Subkeys Howto use?
Hello, a question about registers.
I'm trying to to understand a sample (SdiSquares) from 'Programming Windows
with MFC' from Jeff Prosise.
In InitInstance he uses SetRegisterKey(_T("Local AppWizard-Generated
Applications")) to create an entry in the register for this program.
From his explanation I understood that settings will be stored under the
following key:
HKEY_CURRENT_USER\Software\Local AppWizard-Generated
Applications\SdiSquares\Version 1.0
(HKEY_CURRENT_USER\Software\<companyname>\<productname>\<version>)
From MSDN documentation:
HKEY_CURRENT_USER\Software\<companyname>\<application name>\<section
name>\<value name>
Question 1
Checking the registry with regedit shows me a different key?
HKEY_CURRENT_USER\Software\Local AppWizard-Generated
Applications\SdiSquares\Recent File list
HKEY_CURRENT_USER\Software\Local AppWizard-Generated
Applications\SdiSquares\Settings
I understood that the first one comes automatically with SDI or MDI program,
but where does Setting come from. Is this a standard subkey, but when is it
generated?
Where is subkey 'Version 1.0' ?
Question 2
How do I add my own subkeys to the registry (not via regedit) ?
Question 3
What can be stored in the registry? (what values, only word-size values)
Question 4
How do you clean up the entered registry entries when uninstalling/removing
the program. (the best and savest way)
Question 5
Is this a good place to save a password (encrypted)? (low level security)
Question 6
Where can I find good documentation on the use of registers for my
application, and for the use in windows?
Many thanks in advance, Kimball