diff options
author | sr55 <[email protected]> | 2009-06-15 14:56:23 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2009-06-15 14:56:23 +0000 |
commit | 24780596a9e62e823d619792445a784094f904a2 (patch) | |
tree | 79909eb55db5bf00acd2466a32d7da343949d8f5 /win/C#/Functions/Win32.cs | |
parent | b023bb532c17e1284230172b660baa32b5750318 (diff) |
WinGui:
- Picture Settings: Height of 0 allows for no -l to be passed to the CLI
- Picture Settings / pre-sets now set 0 when no Height specified. Prevents the panel from using incorrect values when pre-sets are selected.
- Simplified the Encode.cs set-up. Includes changes to QueueHandler
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2534 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions/Win32.cs')
-rw-r--r-- | win/C#/Functions/Win32.cs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/win/C#/Functions/Win32.cs b/win/C#/Functions/Win32.cs index 2bc47e619..bf0bde69c 100644 --- a/win/C#/Functions/Win32.cs +++ b/win/C#/Functions/Win32.cs @@ -6,7 +6,7 @@ namespace Handbrake.Functions class Win32
{
[DllImport("user32.dll")]
- public static extern int SetForegroundWindow(int hWnd);
+ public static extern bool SetForegroundWindow(int hWnd);
[DllImport("user32.dll")]
public static extern void LockWorkStation();
@@ -14,7 +14,7 @@ namespace Handbrake.Functions [DllImport("user32.dll")]
public static extern int ExitWindowsEx(int uFlags, int dwReason);
- public struct MEMORYSTATUS // Unused var's are requred here.
+ public struct MEMORYSTATUS // Unused var's are required here.
{
public UInt32 dwLength;
public UInt32 dwMemoryLoad;
@@ -31,5 +31,15 @@ namespace Handbrake.Functions (
ref MEMORYSTATUS lpBuffer
);
+
+ [DllImport("kernel32.dll", SetLastError = true)]
+ public static extern bool GenerateConsoleCtrlEvent(ConsoleCtrlEvent sigevent, int dwProcessGroupId);
+
+ public enum ConsoleCtrlEvent
+ {
+ CTRL_C = 0,
+ CTRL_BREAK = 1,
+ CTRL_CLOSE = 2,
+ }
}
}
|