Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with InitiateSystemShutdown function

Status
Not open for further replies.

MirceaVleju

Programmer
Oct 10, 2003
32
RO
I have tried for the past week to Restart my comuter from an application but i can't get the parameters that i need!I suspect that i have the IPmachinename from the registry but i'm not sure!Please help me!

P.S i don't know if this function also can be used to log off an user!Could you tell me if this function does the trick or if it doesn't the could you show me how to log off an user,please?
 
You could try the following code:
Code:
  ExitWindowsEx(EWX_REBOOT,EWX_REBOOT);
Depending on your windows it will most probably work.
[smile]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top