Thank u sir, thank u for ur kind reply. and i am haveing one more doubt. plz clear that.wher to call that function "UpdateRegistryLocalMachine("SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "Notepad", "C:\WINDOWS\NOTEPAD.EXE", True)". In that Main() function or some where else. and how can i execute this?. plz help me sir.

with thanks and Regards
MMary