[C] looking for the first value in a key
Hi to all ;)
I want to put in a x[..] the NAME and in y[...] the DATA of the first string (except the default) found in a given key.
I know how to open, create, delete keys but I dont know how to see how many strings there are in a key and how to copy the first (or second..) one.
Example:
(given key)
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Run
1. I want to know if there are some strings.
2. If there are strings, look for the first (after default):
Code:
AVGCtrl REG_SZ "C:\Programmi\AVPersonal\AVGNT.EXE" /min
3. I want to copy the string name(AVGCtrl) and value (C:\Prog..)
Any hints ?