| | |
Some Help
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
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 ^^
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 ^^
•
•
Join Date: Jul 2005
Posts: 164
Reputation:
Solved Threads: 5
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.
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.
•
•
Join Date: Jul 2005
Posts: 164
Reputation:
Solved Threads: 5
•
•
•
•
For example spybot/adaware can start straight after logon and run their scan..
![]() |
Other Threads in the C Forum
- Previous Thread: Magical Vanishing text issue.
- Next Thread: Replacing '\' with "\\" for strings
Views: 1431 | Replies: 4
| Thread Tools | Search this Thread |
Tag cloud for C
#include * append array arrays bash binarysearch changingto char character cm copyanyfile copypdffile createprocess() database directory drawing dynamic execv feet fgets file floatingpointvalidation fork framework function functions getlogicaldrivestrin givemetehcodez global grade graphics gtkwinlinux histogram homework i/o ide include infiniteloop initialization input interest intmain() iso keyboard kilometer lazy license linked linkedlist linux list looping loopinsideloop. lowest matrix meter microsoft mqqueue mysql oddnumber odf open openwebfoundation overwrite pause pdf pointer pointers posix power process program programming pyramidusingturboccodes read recursion recv recvblocked reversing segmentationfault single socket socketprogramming spoonfeeding standard strchr string student suggestions system test testing threads unix urboc user whythiscodecausesegmentationfault win32api windowsapi





