|
-
Dec 31st, 1999, 09:41 PM
#1
Thread Starter
Lively Member
I am writing some security software, and would like my program to be run before the shell has been loaded and ran from somewhere which is not easily accessible to remove the program starting. Is there any way I can do this?
-
Dec 31st, 1999, 10:01 PM
#2
Lively Member
You could find a way of changing the master boot records and make you app load instead of windows like linux does.
But then you would have to write your own opperating system in system code.
But if you can do that you wouldn't really be posting on this board.
Sorry but that is all I can think of
Unless you make the program load by putting it in the registry, and set up a user account so windows stops at the logon prompt but you program is on top.
You could disable the Ctrl + Alt + Del list as well so you couln't be shutdown
Hope I was some help
-
Dec 31st, 1999, 10:23 PM
#3
Junior Member
If you put your program in the StartUp folder it will automatically execute when Windows starts up. In your program you would have to make Cntrl+Alt+Delete disabled as well as Alt+Tab. Also, you would want it to be on top of everything else and maximized so that any other window could not be accessed.
-B4
-
Jan 1st, 2000, 11:48 AM
#4
Member
I was going to suggest adding your program to autoexec.bat, but since I assume you are programming in VB, it won't work in DOS. The earliest you could have your program run is during Windows startup, using VB. There are a couple of options - one is to put a reference to your program in the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run section of the registry. Another is to add a line with Run=yourprogram.exe to the win.ini file. Both are fairly difficult to remove the program from starting, especially for an inexperienced user. However, someone who knows their way around the registry or MSConfig could shut it down. Hope this helps! 
Happy New Year!
------------------
Mike Wellems
PowerQuery
-
Jan 1st, 2000, 11:53 AM
#5
Member
I thought of a few more things about those methods - first, booting in Safe Mode will not launch the program with either method. I actually think VB is not the language to be using to accomplish what you want (although I don't know any others, so can't help you there). If you do use one of those methods, I would suggest that your program confirm that the launch commands are still there when it is shut down. For instance, McAfee AntiVirus rewrites itself into the Run section of the registry every time it is shut down, so if you remove it from the registry while VirusScan is running, it's back in there when you shut your computer off.
------------------
Mike Wellems
PowerQuery
-
Jan 1st, 2000, 12:27 PM
#6
-
Jan 1st, 2000, 12:38 PM
#7
-
Jan 1st, 2000, 02:15 PM
#8
Thread Starter
Lively Member
Thanks for everyones help. I really appreciate it. I was aware that the shell could be changed, but I wanted something to make sure that my program is still the shell before windows loads. Does anyone know which runs first, services (things in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunServices) or things in run(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run).
Thanks in advance,
Mark
-
Jan 1st, 2000, 03:34 PM
#9
Guru
Make a few quick EXEs and have them pop up a message box when they load or something and record it. Place each one in a different startup location. Let us know the order if you do it!
Thanks
-
Jan 1st, 2000, 04:59 PM
#10
Thread Starter
Lively Member
Thanks, great idea. I've done as you suggested and found that the first to run is a service. This executes even before the shell is executed. Things in the startup folder run at the same time as things in the run part of the registry. The only advantage of having things in the run part of the registry is to mean that the end user is less likely to delete it.
Thanks everyone
Mark
-
Jan 2nd, 2000, 01:28 AM
#11
Guru
Thanks for the follow-up Mark. That was interesting to learn
Good luck on your project!
Tom
-
Jan 2nd, 2000, 01:54 AM
#12
Thread Starter
Lively Member
Cheers. And thankyou everyone for their help.
-
Jan 2nd, 2000, 06:02 AM
#13
Junior Member
Security Software my ass! i did this to my school comps... have fun.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|