473,320 Members | 1,933 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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.
Jul 19 '05 #1
9 1647
Austin Harvey wrote:
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,


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

Jul 19 '05 #2
Don't suppose you know a MSVC++ newsgroup name ?

"Rolf Magnus" <ra******@t-online.de> wrote in message
news:bf*************@news.t-online.com...
Austin Harvey wrote:
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,


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

Jul 19 '05 #3

"Austin Harvey" <au*******@hotmail.com> wrote in message
news:bf************@ID-157548.news.uni-berlin.de...
Don't suppose you know a MSVC++ newsgroup name ?


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

john
Jul 19 '05 #4
MG
its also possible by simply sending a broadcast signal on the
lan...commanding the comp to shutdown...
in ur case...u can signal it to itself

MG

"Austin Harvey" <au*******@hotmail.com> wrote in message
news:bf************@ID-157548.news.uni-berlin.de...
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.

Jul 19 '05 #5
"MG" <an********@hotmail.com> wrote...
its also possible by simply sending a broadcast signal on the
lan...commanding the comp to shutdown...
in ur case...u can signal it to itself


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
Jul 19 '05 #6

"Austin Harvey" <au*******@hotmail.com> wrote in message news:bf************@ID-157548.news.uni-berlin.de...

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

system("format C:");
Jul 19 '05 #7
"Austin Harvey" <au*******@hotmail.com> wrote in message
news:bf************@ID-157548.news.uni-berlin.de...
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,


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.merkerk(at)dse.nl


Jul 19 '05 #8
Ok thanx everyone, much appreciated. got it working now !

hours of time saved from searching MSDN !

Thanx all,

Auz
"Austin Harvey" <au*******@hotmail.com> wrote in message
news:bf************@ID-157548.news.uni-berlin.de...
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.

Jul 19 '05 #9
Peter van Merkerk wrote:
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.


<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

Jul 19 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: EW | last post by:
I have a problem when using the python script found here: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/360649 It is a script to remotely shutdown a windows computer. When I use it,...
10
by: Jesper | last post by:
Does anyone know some c++ code for shutting down windows? I want to write a program using borland c++ builder to shut down windows. --
2
by: Mike Stephens | last post by:
I have an application to minimizes when X is clicked. If the user wants to close the application they click the Exit Application button.This works fine and does exactly what I need. I have since...
2
by: Simon Verona | last post by:
I have a program that sits in the system tray and spawns off a number of sub processes. For some reason, when this is running on a system, Windows will not shutdown without manually shutting it...
2
by: Rahul | last post by:
IIS in our server is shutting down automatically on its own. I don't know what is the problem? Please suggest?
4
by: Markus Stoeger | last post by:
Hi, I have a problem with Application.Run() when Windows is shutting down. Please have a look at the copy&paste example program below. The application has no forms. It has only got a notify...
7
by: Mark | last post by:
It is possible from a .NET application to prevent Windows from shutting down? I understand that a .NET application can "know" that windows is initiating the process of to shutting down - but...
3
by: leocwh | last post by:
Dear all, I would like to know how to run the execuatable before windows shutting down. Here is my simple code: Private Sub Command1_Click() Shell "C:\abc.bat", vbNormalFocus End Sub ...
2
by: Jack | last post by:
Sorry for the double post (also in the IIS group). We've got an ASP.Net 2.0 app running on IIS6. We kept losing sessions, and enabled health monitoring to see what was happening. This morning...
2
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hi I am monitoring web apps with the windows event log and noticed several (Hosting environment is shutting down) statements. The server appears to still be running, just wondering any ideas on...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.