Hey,
I want to Shutdown the computer using Registry in c++..
i have googled and only one thing that i see about ExitWindowEx()..
But i have no idea about to implement in c++ program...
So please help me ....

What do you mean "using Registry"?
Do you mean the Windows System Registry?
Are you trying to enter a value in the registry that will trigger the system to shut down?

What do you mean "using Registry"?
Do you mean the Windows System Registry?
Are you trying to enter a value in the registry that will trigger the system to shut down?

Yeah windows system registry,...
yeah, when i press any button at runtime then system shutdown...

Are you trying to enter a value in the registry that will trigger the system to shut down?

That's catastrophic, if it is possible the system will fail to boot the OS whatsoever. All i know points to the assumption that, you can only manipulate what OS does once it is shut downed, Like, should it restart Or Should Wait for a initiation etc......

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.