943,519 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 1602
  • C RSS
Sep 25th, 2005
0

Some Help

Expand Post »
I was wondering if anyone could help me with some things, im planning on making a little security program that comes up after logon to windows through the logon screen, reads a password from a file specified (for example 'E:\password.txt', and asks you to put in your password, if its the same as the one in password.txt it lets you in, if not it shuts the computer down,
now what i need to know is:
1. how can you get the program to start straight after logon?
2. how can you get it to communicate with the password.txt file to check passwords?
3. how can you get it to shutdown the computer, whats the command for it, i know it would be an if/else loop, just need the command

Anyone who can help me i will be much indebted to ^^
Reputation Points: 10
Solved Threads: 0
Light Poster
Mike182 is offline Offline
34 posts
since Jul 2005
Sep 25th, 2005
0

Re: Some Help

1) the standard way to do this is to replace userinit.exe in a certain registry key with your app. at the end of your app you must start userinit.exe to complete the bootup.details at msdn just search for userinit.exe.
2) make a hash function. store password as a hash. get your user input. hash it. compare to the stored hash value. if not same goto 3.
3)look into ExitWindowsEx. check details in your help files or at msdn.
Reputation Points: 19
Solved Threads: 5
Junior Poster
Stoned_coder is offline Offline
164 posts
since Jul 2005
Sep 28th, 2005
0

Re: Some Help

Hmmm is there an easier way than registry editing? For example spybot/adaware can start straight after logon and run their scan..
And thanks for the rest of the info ^^
Reputation Points: 10
Solved Threads: 0
Light Poster
Mike182 is offline Offline
34 posts
since Jul 2005
Sep 28th, 2005
0

Re: Some Help

Quote ...
For example spybot/adaware can start straight after logon and run their scan..
And I have told you how they do that. Part of the bootup process is a process called userinit.exe. This is the process that basically starts off the shell once the OS has loaded. You replace the reference to userinit.exe with a reference to your app and the last thing your app does is to start userinit.exe so the bootup can continue. This is how spybot/adaware do that and no there is no easier way.
Reputation Points: 19
Solved Threads: 5
Junior Poster
Stoned_coder is offline Offline
164 posts
since Jul 2005
Sep 28th, 2005
0

Re: Some Help

Hmmm alright ill give it a shot, thanks for the help.
Reputation Points: 10
Solved Threads: 0
Light Poster
Mike182 is offline Offline
34 posts
since Jul 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: Magical Vanishing text issue.
Next Thread in C Forum Timeline: Replacing '\' with "\\" for strings





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC