The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: thomasantony on July 20, 2005, 02:31:51 PM

Title: when is prog run at startup?
Post by: thomasantony on July 20, 2005, 02:31:51 PM
Hi,
  If I had a program that changes the display resolution at startup using LOCAL_MACHINE\Software\Microsoft\Windows\Run, will the program run before the user logs in and will the change of res work before the login?

THomas
Title: Re: when is prog run at startup?
Post by: sluggy on July 21, 2005, 01:41:00 AM
No, it will only run when the user logs in, not before. That area is still kind of user specific, it is just aimed at *all* users (IOW it isn't a machine specific area, not like the HKLM/System/CurrentControlSet001 for instance).
Title: Re: when is prog run at startup?
Post by: Mark Jones on July 21, 2005, 04:30:26 AM
Might need to look into windows services/video drivers to do that before a user logs in. Perhaps.
Title: Re: when is prog run at startup?
Post by: Vortex on July 21, 2005, 05:29:30 AM
Hi Thomas,

Exactly, what are you trying to do?
Title: Re: when is prog run at startup?
Post by: Farabi on July 21, 2005, 07:39:13 AM
Thomas seems want to change the windows resolution.
Title: Re: when is prog run at startup?
Post by: PBrennick on July 21, 2005, 12:41:40 PM
As I think about it, I can see where this would be VERY useful if there are several users on the system and they each have there own preferences when it comes to video resolution.  I wonder if there is a way to do this?

Paul
Title: Re: when is prog run at startup?
Post by: thomasantony on July 21, 2005, 04:29:27 PM
Hi,
   There must be SOME regkey value for startup programs, that are used b4 login. Can some one list the ways in which progs can be run at startup. I suppose one way would be to rename an essential system file. MAke into and EXe that changes the RES and then loads the original EXE :bdg :bdg

Thomas