/[NexusPowerControl]/trunk/NexusPowerCommand/win32api.cs
ViewVC logotype

Diff of /trunk/NexusPowerCommand/win32api.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/NexusPowerCommand/win32api.cs	2011/10/25 09:24:35	34
+++ trunk/NexusPowerCommand/win32api.cs	2011/10/25 09:25:32	35
@@ -29,7 +29,7 @@
                      mcWin32.GetMethodParameters("Win32Shutdown");
 
             // Flag 1 means we want to shut down the system. Use "2" to reboot.
-            mboShutdownParams["Flags"] = flags.ToString();
+            mboShutdownParams["Flags"] = (int)flags;
             mboShutdownParams["Reserved"] = "0";
             foreach (ManagementObject manObj in mcWin32.GetInstances())
             {

 

  ViewVC Help
Powered by ViewVC 1.1.22