how can i shutdown the cpu from dotnet framework?

  • Thread starter Thread starter mohamed farouk
  • Start date Start date
M

mohamed farouk

hi everone
i want to put button on windows application to shut down
the pc from dot net framework not to use api's
thanks
 
Hi,
i want to put button on windows application to shut down
the pc from dot net framework not to use api's

There is an old Yiddish joke which goes like this.

Mosh comes at the rabbi and asks "rabbi can God make everything"

And the Rabbi says: "Of course can God make everything he did make the
world"

Than Mosh ask to the rabbi: "rabbi can God make a stone that he cannot raise
himself?



In that joke is a lot of wisdom for me.



A VB.net program needs the framework.



I think the only thing he can do is give command to an Api.

And die when the computer is shut down.



But I can be wrong.

Cor
 
mohamed farouk said:
hi everone
i want to put button on windows application to shut down
the pc from dot net framework not to use api's
thanks

You can not do it without API calls. Also have a look at the thread "Turn
off a PC" from yesterday.
 
Hello,

[Joke]

LOL

I always love the questions asking to do something without PInvoke...

;-)
 
Back
Top