Sounds like "regedit.exe" time to me.
Start\run regedit.exe
goto: My
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Win dows\CurrentVersion\Run
After going to that location, Add a string Value from the edit menu.
You should see a lot of other programs, hence you will have lots of
examples, and probably a few spy ware and other *cough* "great" software.
As for waiting for the logout event........ I think you could find that in
the dotnet frameworks, or you *might* have to use a pinvoke.
(goto
www.pinvoke.net for those)
On the other hand..... if this is going to be a service..... maybe you should
look up how to design a windows service.
If you want to make the whole run on login stuff easier.... you could just
put it
in the start menu: Start\Programs\Startup\YourProgram
"venkat" wrote:
Hi,
Is there any way to start my own process as soon as the user logs into
computer. I want to run my process as hidden and i need to show it before
logging out of the computer.
Please help me. Better if any one can provide a sample.
Thanks in advance,
Venkat