restarting

i want to reboot or restart my computer from a program. could someone help me?
ralph78Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MadshiCommented:
Surely, but not for 1 point...   :-)

Well, okay, look at ExitWindowsEx. But next time you should give more points, otherwise nobody will be motivated to help you.

Regards, Madshi.
0
intheCommented:
Hi
if ShutdownReboot.Checked then
  ExitWindowsEx(EWX_REBOOT, 0)
else
if ShutdownRebootClose.Checked then
  ExitWindowsEx(EWX_FORCE or EWX_REBOOT, 0)

are you sure you mean 1 point ??
Regards Barry
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
intheCommented:
Hi
madshi
 i have my reasons for motivation(reason name is raymond and madshi:-))
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

MadshiCommented:
:-)
0
MotazCommented:
No Madshi, any one should help them even he asked with 0 points, don't forget we are Delphi programmers that we must differe from other programmers,

Motaz

but only 1 point!!!! :-)
0
MadshiCommented:
Well, Motaz, I *DID* help! But nevertheless I don't think that we should do everything for nothing...
0
MotazCommented:
Didn't you answer any question in News Group, there is no points in News Group, so that it is not sooo bad if you help any one without earning any points. Points may be a measurement of experts participation, but it is not a measurement of how much did you help the people.

Motaz
0
MadshiCommented:
Motaz, we all (at least most of us) like to play games. And here in EE the points you get for answering questions is like a kind of hiscore. Without these points I would not spend so much time here as I did the last months. Ask the other top15 experts, they'll say the same to you. The points are a good motivation.
And if you try to get a new job, you can even tell your (possibly) new boss to look at the top15 here.
If *you* think the points are useless, it's *your* opinion. I do have a different opinion.
If we answer here all 1 point questions (like this one) without moaning, then soon there will be *only* 1 point questions. That's not the sense of it. EE ranked 50 points for an easy question. So a 1 point question should be so easy that it answers itself!   :-)

Regards, Madshi.
0
MotazCommented:
I agree with you Madshi, but do not forget that the primary goal of such discussion group is to help people, the points here represent a measurement of excelence and makes the experts feel with competetion to do a good job, but it is a secondary goal so that do not make the secondary goal let you forget the primary one.

Motaz
0
MadshiCommented:
Of course, and if you read my first comment, you'll see that I both moaned about the points and helped nevertheless. So about what are you complaining?   :-)
0
MotazCommented:
I read your first comment now, it is an answer, sorry Madshi for mis understanding.

Motaz
www.geocities.com/motaz1
0
MotazCommented:
By the way Madshi, I open your homepages, some pages cann't be opened such as Madshi, when I click at it I see only Loading then no thing happen:
http://nettrash.com/users/madshi/

Motaz
0
MadshiCommented:
Yep, Motaz, the "Madshi" page at my homepage is really empty right now. I didn't update my homepage for ages. But I will do soon, since I will publish a lot of nice Delphi components soon.   :-)
0
MotazCommented:
I'll await this components :-)

Motaz
0
intheCommented:
hey your spamming my email box guys ;-)

ralph78 ,
where on earth are you?

ps.
i agree about the points issue :-)

whatever hapened to the proposal for e.e gold ? (cash for answers)
then i would live here ;-)

0
ralph78Author Commented:
err... thank u inthe, and all the others
i my question was just for 1 point because i would know if someone would respond to it!
so thanks u once again, and i promise u i will be more generous in the future!
regards

                     Ralph
0
ralph78Author Commented:
err... thank u inthe, and all the others
i my question was just for 1 point because i would know if someone would respond to it!
so thanks u once again, and i promise u i will be more generous in the future!
regards

                     Ralph
0
intheCommented:
so you will increase the points and accept the answer then ?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.