473,385 Members | 1,872 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,385 software developers and data experts.

Restarting the Computer?

Is there a way in C++ to restart the computer? This is very import to me and i have been trying for 3 days to figure it out. Im using windows xp
Sep 27 '07 #1
6 1351
weaknessforcats
9,208 Expert Mod 8TB
Is this Windows??

If not stop reading here.

Otherwise, begin your research here.
Sep 27 '07 #2
Banfa
9,065 Expert Mod 8TB
Look up ExitWindowsEx
Sep 27 '07 #3
i have ExitWindowsEx(); but its not doing anything
Sep 28 '07 #4
weaknessforcats
9,208 Expert Mod 8TB
You are using EWX_SHUTDOWN with the correct privileges?
Sep 28 '07 #5
what privileges do i need?
Oct 1 '07 #6
weaknessforcats
9,208 Expert Mod 8TB
Read this.

And this.
Oct 1 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: serge | last post by:
We have an ASP application installed on one powerful Win 2003 and the SQL Server on another Win 2003. We have two copies of the application (identical, one for production and one for test...
3
by: Nick | last post by:
Hi, I would like to make my application to automatically check on updates from a source and if any, downloads it and automatically updates itself with the new version. Now because the...
8
by: CRE | last post by:
Or more exactly, how does one access the windows API to do things like shutdowns ? --chris -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
0
by: LJ | last post by:
I have been getting this message and can't resolve the problem. I have checked the AntiVirus software and added the application directory to the exculsion list. The application is on a web farm,...
9
by: woolley.dean | last post by:
The problem we are having is with the worker process restarting after one minute of being started up. We had a website running in .Net 1.1 and switched it over to .Net 2.0. The site is running on...
4
by: =?Utf-8?B?TWFyaw==?= | last post by:
Hi... Following the samples online, we implemented a windows service in .Net. Like most services, there's a worker thread actually doing stuff in the background. The problem we've run into is...
8
by: SAL | last post by:
Hello, I have a web app (asp.net 2.0) that I'm loosing Session variables in. I implemented: Application_End in Global.asax using the following code: Sub Application_End(ByVal sender As Object,...
2
by: sheperson | last post by:
Hi, Does anyone know how to restart a computer using C# code? I can use shutdown -r command but this is not a good choice because it takes 30 seconds to restart. I have made a wizard for one of...
8
by: K Viltersten | last post by:
I've found a number of pages describing how to restart the computer that my service runs on. The nicest one was the Black Wasp's but even there, i need to play with C++-like looking code. Is it...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.