Thread: password program

  1. #1
    Registered User Draco's Avatar
    Join Date
    Apr 2002
    Posts
    463

    password program

    How could I use dos or some other low level method of "locking" up the pc while my program is running, close up internet ports/sockets, etc. I want to make a program that basically keeps you from doing anything on the computer until you put in the right password.

  2. #2
    Just a Member ammar's Avatar
    Join Date
    Jun 2002
    Posts
    953
    That's great, but he was not asking about the programs to use, he was asking how to write that type of programs.
    none...

  3. #3
    Registered User Draco's Avatar
    Join Date
    Apr 2002
    Posts
    463
    Thank you for understanding my question ammar. I think I could get a lot of what I want done just with DOS commands (or if I can't please tell me, I don't know too much about dos' full capabilities). Is there a way I can invoke DOS commands in my program without having the user put them in?

  4. #4
    Casual Visitor
    Join Date
    Oct 2001
    Posts
    350
    stdlib.h, I believe it is, of most compilers has system(), you can use that to do some tasks in dos; however, under a Windows environment, dos is fairly useless to control input.

    system("command");

    I'd think that you could use autoexec.bat to launch your main program and then use spawn or something to launch a password program or by running a loop in you main program after certain tasks are completed to check for valid passwords.
    I haven't used a compiler in ages, so please be gentle as I try to reacclimate myself. :P

  5. #5
    Registered User Draco's Avatar
    Join Date
    Apr 2002
    Posts
    463
    ok, thanks. I still don't know how to do that but now I have a place to start.

  6. #6
    Registered User Draco's Avatar
    Join Date
    Apr 2002
    Posts
    463
    On a related note (sort of) when I try to run some of my programs (ones using Allegro mostly) some of them need to run under dos-only mode, not under windows. I went to the full screen command prompt and it still does not work. I am under XP. Is there a way to be in only dos?

  7. #7
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    This isn't dos, and this is going along with what someone else said, but if you do initialize your program as a screen saver you can effectively block a person from interacting with their pc. The screen saver technique is popular with people who don't want a person to be able to use Alt+F4 to kill their programs.

  8. #8
    Registered User Draco's Avatar
    Join Date
    Apr 2002
    Posts
    463
    ok, thanks. Now how would I make a Windows screensaver?(I know nothing about Windows programming).

  9. #9
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Its been a while since I've written one and I'm to lazy to look for source on the hd, so why not hit up on a search engine?

  10. #10
    Registered User Vber's Avatar
    Join Date
    Nov 2002
    Posts
    807

    ...

    ok, thanks. Now how would I make a Windows screensaver?(I know nothing about Windows programming).
    Go to the Windows Programming Board.
    http://cboard.cprogramming.com/forum...p?s=&forumid=7

    Good luck.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  2. insufficient memory for tsr
    By manmohan in forum C Programming
    Replies: 8
    Last Post: 01-02-2004, 09:48 AM
  3. Date program starts DOS's date
    By jrahhali in forum C++ Programming
    Replies: 1
    Last Post: 11-24-2003, 05:23 PM
  4. Beginner needs help with password program
    By dnottus in forum C++ Programming
    Replies: 6
    Last Post: 04-22-2002, 06:46 PM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM