Hi, I am writing a code in C. My program writes in the Windows registry so that it can be run when the computer starts:
HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Run and HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Run The problem is that when restart my computer, appears in the list of cases two instances of my program. I tried to make it write only in one of the above records, but he does not run. Windows only runs when you start it if it is written in two rows above. How to be loaded only a single instance of my program in memory when Windows starts? Thank you. Cristiano
