Possible Duplicate:
How to run a program automatically as admin on Windows startup?
I've a program written in C++ which requires administrator to run it(it can't be run as user). I'm trying to run this program whenever the user log in, I tried to add a "string" to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
and
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
but it works only with application that doesn't require administrator privileges, it has no effect on my program.
I've managed to solve it by creating a BAT file adding it to the registry, which starts my program.However, it launches the dialog which asks for Admin access. thus we can understand that I can not start it up using this method.
I guess there should be some method, for example an antivirus has administrator privileges. but it could find any thing about it.