| | |
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
| Thread Tools | Search this Thread |
adobe ansi api array arrays asterisks binarysearch calculate centimeter char convert copyimagefile copypdffile cprogramme creafecopyofanytypeoffileinc createcopyoffile csyntax directory dynamic fflush file fork forloop frequency getlasterror givemetehcodez graphics gtkgcurlcompiling hacking hardware highest homework i/o inches incrementoperators infiniteloop initialization interest kernel km linked linkedlist linux linuxsegmentationfault list lists locate logical_drives match matrix microsoft motherboard multi mysql number open opendocumentformat opensource owf pattern pdf performance pointer pointers posix power problem probleminc program programming pyramidusingturboccodes radix read recursion recv repetition research scanf scheduling scripting segmentationfault send sequential shape socketprograming stack standard string strings structures systemcall testautomation turboc unix user variable voidmain() wab win32api windows.h





