diff options
Diffstat (limited to 'win/C#/EncodeQueue')
-rw-r--r-- | win/C#/EncodeQueue/Encode.cs | 11 | ||||
-rw-r--r-- | win/C#/EncodeQueue/QueueHandler.cs | 1 |
2 files changed, 2 insertions, 10 deletions
diff --git a/win/C#/EncodeQueue/Encode.cs b/win/C#/EncodeQueue/Encode.cs index 77b2b2957..22518bfb2 100644 --- a/win/C#/EncodeQueue/Encode.cs +++ b/win/C#/EncodeQueue/Encode.cs @@ -8,19 +8,12 @@ using System; using System.Diagnostics;
using System.Windows.Forms;
using System.IO;
-using System.Runtime.InteropServices;
using Handbrake.Functions;
namespace Handbrake.EncodeQueue
{
public class Encode
{
- // DLL Imports
- [DllImport("user32.dll")]
- private static extern void LockWorkStation();
- [DllImport("user32.dll")]
- private static extern int ExitWindowsEx(int uFlags, int dwReason);
-
/// <summary>
/// Execute a HandBrakeCLI process.
/// </summary>
@@ -121,7 +114,7 @@ namespace Handbrake.EncodeQueue Process.Start("Shutdown", "-s -t 60");
break;
case "Log Off":
- ExitWindowsEx(0, 0);
+ Win32.ExitWindowsEx(0, 0);
break;
case "Suspend":
Application.SetSuspendState(PowerState.Suspend, true, true);
@@ -130,7 +123,7 @@ namespace Handbrake.EncodeQueue Application.SetSuspendState(PowerState.Hibernate, true, true);
break;
case "Lock System":
- LockWorkStation();
+ Win32.LockWorkStation();
break;
case "Quit HandBrake":
Application.Exit();
diff --git a/win/C#/EncodeQueue/QueueHandler.cs b/win/C#/EncodeQueue/QueueHandler.cs index f34de0190..d16f10ffb 100644 --- a/win/C#/EncodeQueue/QueueHandler.cs +++ b/win/C#/EncodeQueue/QueueHandler.cs @@ -10,7 +10,6 @@ using System.IO; using System.Windows.Forms;
using System.Xml.Serialization;
using System.Threading;
-using System.Diagnostics;
namespace Handbrake.EncodeQueue
{
|