What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Request: Shutdown

Blinker1234

Member
Joined
Jan 29, 2010
Messages
48
Reaction score
0
Hi, would it be possible to have an addon that shutsdown the pc when wow either crashes or disconnects?

Asking as I have had some crashes/disconnections but pc remains on, would like to use a relogger but I use an authenticator.

Any ideas?

Tyvm
 
i dont think that there is an addon for this
if you can log from another pc or a pda you can check your desktop throught Teamviewer
 
Ive been thinking about getting an iphone now just cause teamviewer works on it for this reason.

Would it be too complicated to create a plugin for it? Or maybe another program to detect when wow dies and then shutdown the pc?
 
people tried, and had problems with the actual run command...

but this will get you started:

public static void ShutDownComputer()
{
ManagementBaseObject outParameters = null;
ManagementClass sysOS = new ManagementClass("Win32_OperatingSystem");
sysOS.Get();
// enables required security privilege.
sysOS.Scope.Options.EnablePrivileges = true;
// get our in parameters
ManagementBaseObject inParameters = sysOS.GetMethodParameters("Win32Shutdown");
// pass the flag of 0 = System Shutdown
inParameters["Flags"] = "1";
inParameters["Reserved"] = "0";
foreach (ManagementObject manObj in sysOS.GetInstances())
{
outParameters = manObj.InvokeMethod("Win32Shutdown", inParameters, null);
}
}
 
Back
Top