Thread: The Best thread EVER!

  1. #16
    Registered User heat511's Avatar
    Join Date
    Dec 2001
    Posts
    169

    didn't work

    the system("logoff"); thing didn't work

    i made a console app then used this code...

    Code:
    #include<windows.h>
    main()
    {
           system("logoff");
    }
    but a dos window popped up that says "Bad command or file name Press any key to continue_"

    also, how do you make a program that runs in the background of windows and doesn't create a window?
    "uh uh uh, you didn't say the magic word"
    -Jurassic Park

  2. #17
    Registered User
    Join Date
    Dec 2001
    Posts
    206
    what system are you running? i tested it on win XP and it worked :/

  3. #18
    Registered User
    Join Date
    Dec 2001
    Posts
    206
    Originally posted by dayknight


    1 thing is for sure, they do not work on windows
    (damn u BILL, soon i will own windows and make it ezier than ever for programmers to code)
    i know you're trying to look smart and all, but i rly think you dont know wtf u r talking about. Just in case you are confused:

    system("logoff"); works
    system("restart"); no worko
    system("shutdown"); no worko


    [ediT]and btw, microsoft does not own ar neither did he create c, c++, c#, vc++, borland, or any other c coding program or language[/ediT]
    Last edited by Denethor2000; 05-06-2002 at 09:21 AM.

  4. #19
    Registered User
    Join Date
    Dec 2001
    Posts
    206
    Hopefully Denethor2000 will reply to my post, he knows how to log off windows
    .... \

    .... \

    .... \
    Dont Mock Me

  5. #20
    Registered User
    Join Date
    Apr 2002
    Posts
    139
    hmm I have to dig through all my disks to find the code...
    "The most common form of insanity is a combination of disordered passions and disordered intellect with gradations and variations almost infinite."

  6. #21
    Pygmy Monkey ErionD's Avatar
    Join Date
    Feb 2002
    Posts
    408
    >and btw, microsoft does not own ar neither did he create c, c++,
    >c#, vc++, borland, or any other c coding program or language

    Aaand was he saying that?
    All i heard was he saying that programming for windows is strange.
    And windows ARE responsible for that.

  7. #22
    Registered User
    Join Date
    Apr 2002
    Posts
    139
    and btw microsoft is trying to take over all the coding languages...
    "The most common form of insanity is a combination of disordered passions and disordered intellect with gradations and variations almost infinite."

  8. #23
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065
    Still waiting to see the actual impact .NET has. I could care less about it. MSVC++ 6.0 is good enough for me.

  9. #24
    eat my shorts!
    Join Date
    Apr 2002
    Posts
    294

    Smile

    True is said about the OS

    and till now this thread hasnt got anygood, actually nothing
    system("logoff");
    doesnt work, i am running win98. it tells bad command or file name
    people next time plz give the right code (and maybe mention ur OS)!

  10. #25
    Registered User Dual-Catfish's Avatar
    Join Date
    Sep 2001
    Posts
    802
    dayknight, this is really lame. You're the kind of programmer that's just going to create viruses. First the hacking thread in GD, and now this.

    You're not looking for 'goodies' you're simply looking for code to shutdown or restart someones computer. Grow up.

    Edit:: It's obvious you can't handle information like this.
    Last edited by Dual-Catfish; 05-06-2002 at 04:55 PM.

  11. #26
    eat my shorts!
    Join Date
    Apr 2002
    Posts
    294
    Originally posted by Dual-Catfish
    dayknight, this is really lame. You're the kind of programmer that's just going to create viruses. First the hacking thread in GD, and now this.

    You're not looking for 'goodies' you're simply looking for code to shutdown or restart someones computer. Grow up.
    cat first HACKING post didnt contain anything illegal (as u know it too)
    second, my intentions are clean( or maybe not j/k )
    i think the more u knw the better u are
    and i also think that code such as shutdn or restart can be very efficint.

  12. #27
    Registered User
    Join Date
    Apr 2002
    Posts
    249

    Talking How about a this code...

    I used to have fun doing these things...

    Using pascal, I learn a code that can restart the computer for ever ... because the autoexec.bat will run my file and my file will run forever...

    thanx for the C++ code...
    I will try to find that pascal code in my old documents...

    it is a great idea to shar... I beleivein sharing information...
    That is why we are here.
    C++
    The best

  13. #28
    eat my shorts!
    Join Date
    Apr 2002
    Posts
    294
    system("C:\WINDOWS\RUNDLL user.exe,exitwindows");
    system("C:\WINDOWS\RUNDLL user.exe,exitwindowsexec");
    dont work either
    same error
    i have got borh windows.h and stdlib.h

  14. #29
    In The Light
    Join Date
    Oct 2001
    Posts
    598
    howdy,
    shutdown? logoff? format, rd, etc.....
    i dont think anything good can come out of this. or like someone said in another childish hacker thread..
    if you have to ask this question, you are not ready to know how it's done.
    just for the fun of it... a buddy of mine showed me how he takes care of people hacking his server, nasty VERY nasty.

    M.R.
    I don't like you very much. Please post a lot less.
    Cheez
    *and then*
    No, I know you were joking. My point still stands.

  15. #30
    "The Oldest Member Here" Xterria's Avatar
    Join Date
    Sep 2001
    Location
    Buffalo, NY
    Posts
    1,039
    Originally posted by Dual-Catfish
    dayknight, this is really lame. You're the kind of programmer that's just going to create viruses. First the hacking thread in GD, and now this.

    You're not looking for 'goodies' you're simply looking for code to shutdown or restart someones computer. Grow up.

    Edit:: It's obvious you can't handle information like this.
    grow up, 007.


    hehe hahaha

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Thread Synchronization in Win32
    By passionate_guy in forum C Programming
    Replies: 0
    Last Post: 02-06-2006, 05:34 AM
  2. [code] Win32 Thread Object
    By Codeplug in forum Windows Programming
    Replies: 0
    Last Post: 06-03-2005, 03:55 PM
  3. Win32 Thread Object Model Revisted
    By Codeplug in forum Windows Programming
    Replies: 5
    Last Post: 12-15-2004, 08:50 AM
  4. Simple thread object model (my first post)
    By Codeplug in forum Windows Programming
    Replies: 4
    Last Post: 12-12-2004, 11:34 PM
  5. Problem : Threads WILL NOT DIE!!
    By hanhao in forum C++ Programming
    Replies: 2
    Last Post: 04-16-2004, 01:37 PM