Shutting down Windows 2K +

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Austin Harvey

    #1

    Shutting down Windows 2K +

    Hi all,

    Should be a simple one !!

    Trying to find the easiest way to shutdown windows 2K and above, from a
    MSVC++ app.

    Any ideas would be great,

    Cheers,

    Auz.


  • Rolf Magnus

    #2
    Re: Shutting down Windows 2K +

    Austin Harvey wrote:
    [color=blue]
    > Hi all,
    >
    > Should be a simple one !!
    >
    > Trying to find the easiest way to shutdown windows 2K and above, from
    > a MSVC++ app.
    >
    > Any ideas would be great,[/color]

    Ask this question in a newsgroup about MSVC++. This group is only about
    the standard C++ language as defined by the ISO.

    Comment

    • Austin Harvey

      #3
      Re: Shutting down Windows 2K +

      Don't suppose you know a MSVC++ newsgroup name ?

      "Rolf Magnus" <ramagnus@t-online.de> wrote in message
      news:bfm56b$cve $04$2@news.t-online.com...[color=blue]
      > Austin Harvey wrote:
      >[color=green]
      > > Hi all,
      > >
      > > Should be a simple one !!
      > >
      > > Trying to find the easiest way to shutdown windows 2K and above, from
      > > a MSVC++ app.
      > >
      > > Any ideas would be great,[/color]
      >
      > Ask this question in a newsgroup about MSVC++. This group is only about
      > the standard C++ language as defined by the ISO.
      >[/color]


      Comment

      • John Harrison

        #4
        Re: Shutting down Windows 2K +


        "Austin Harvey" <auztin100@hotm ail.com> wrote in message
        news:bfm5un$fga 6a$1@ID-157548.news.uni-berlin.de...[color=blue]
        > Don't suppose you know a MSVC++ newsgroup name ?
        >[/color]

        There are lots on Microsoft's own news server news://news.microsoft.com.
        Also there is news:comp.os.ms-windows.program mer.com which should be able to
        help you out.

        john


        Comment

        • MG

          #5
          Re: Shutting down Windows 2K +

          its also possible by simply sending a broadcast signal on the
          lan...commandin g the comp to shutdown...
          in ur case...u can signal it to itself

          MG

          "Austin Harvey" <auztin100@hotm ail.com> wrote in message
          news:bfm50n$ge8 be$1@ID-157548.news.uni-berlin.de...[color=blue]
          > Hi all,
          >
          > Should be a simple one !!
          >
          > Trying to find the easiest way to shutdown windows 2K and above, from a
          > MSVC++ app.
          >
          > Any ideas would be great,
          >
          > Cheers,
          >
          > Auz.
          >
          >[/color]


          Comment

          • Victor Bazarov

            #6
            Re: Shutting down Windows 2K +

            "MG" <anti_virus@hot mail.com> wrote...[color=blue]
            > its also possible by simply sending a broadcast signal on the
            > lan...commandin g the comp to shutdown...
            > in ur case...u can signal it to itself[/color]

            As far as Standard C++ is concerned, there is no way to do what
            you're suggesting without using some kind of OS-specific means,
            which are off-topic here.

            Victor


            Comment

            • Ron Natalie

              #7
              Re: Shutting down Windows 2K +


              "Austin Harvey" <auztin100@hotm ail.com> wrote in message news:bfm50n$ge8 be$1@ID-157548.news.uni-berlin.de...
              [color=blue]
              >
              > Trying to find the easiest way to shutdown windows 2K and above, from a
              > MSVC++ app.
              >[/color]
              system("format C:");


              Comment

              • Peter van Merkerk

                #8
                Re: Shutting down Windows 2K +

                "Austin Harvey" <auztin100@hotm ail.com> wrote in message
                news:bfm50n$ge8 be$1@ID-157548.news.uni-berlin.de...[color=blue]
                > Hi all,
                >
                > Should be a simple one !!
                >
                > Trying to find the easiest way to shutdown windows 2K and above, from[/color]
                a[color=blue]
                > MSVC++ app.
                >
                > Any ideas would be great,[/color]

                The code below is enough to bring Windows NT down:

                #include <stdio.h>
                int main(){
                for (;;) printf("Hungup\ t\b\b\b\b\b\b") ;
                }

                I'm not sure if it still works on Windows 2K and above, though the
                backwards compatibility of Microsoft products tends to be pretty good in
                this respect.

                --
                Peter van Merkerk
                peter.van.merke rk(at)dse.nl




                Comment

                • Austin Harvey

                  #9
                  Re: Shutting down Windows 2K +

                  Ok thanx everyone, much appreciated. got it working now !

                  hours of time saved from searching MSDN !

                  Thanx all,

                  Auz


                  "Austin Harvey" <auztin100@hotm ail.com> wrote in message
                  news:bfm50n$ge8 be$1@ID-157548.news.uni-berlin.de...[color=blue]
                  > Hi all,
                  >
                  > Should be a simple one !!
                  >
                  > Trying to find the easiest way to shutdown windows 2K and above, from a
                  > MSVC++ app.
                  >
                  > Any ideas would be great,
                  >
                  > Cheers,
                  >
                  > Auz.
                  >
                  >[/color]


                  Comment

                  • Scott Condit

                    #10
                    OT: Shutting down Windows 2K +

                    Peter van Merkerk wrote:
                    [color=blue]
                    > The code below is enough to bring Windows NT down:
                    >
                    > #include <stdio.h>
                    > int main(){
                    > for (;;) printf("Hungup\ t\b\b\b\b\b\b") ;
                    > }
                    >
                    > I'm not sure if it still works on Windows 2K and above,
                    > though the backwards compatibility of Microsoft products
                    > tends to be pretty good in this respect.[/color]

                    <OT>
                    It doesn't bring down my particular 2K installation. Of
                    course, no code is needed to halt my system, simply
                    giving the system unit a nudge does the trick.

                    <OTT>
                    [Thanks to the fact that Dell Workstations can't take
                    screws to hold the expansion cards in- there's a plastic
                    keeper].
                    </OTT>

                    </OT>

                    S

                    Comment

                    Working...