aboutsummaryrefslogtreecommitdiffstats
path: root/WarframeClock/Native.cs
diff options
context:
space:
mode:
Diffstat (limited to 'WarframeClock/Native.cs')
-rw-r--r--WarframeClock/Native.cs9
1 files changed, 4 insertions, 5 deletions
diff --git a/WarframeClock/Native.cs b/WarframeClock/Native.cs
index c83bac9..8fccd5c 100644
--- a/WarframeClock/Native.cs
+++ b/WarframeClock/Native.cs
@@ -6,17 +6,16 @@ namespace WarframeClock
class Native
{
[DllImport("user32.dll")]
- public static extern int SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int x, int y, int cx, int cy,
+ [return: MarshalAs(UnmanagedType.Bool)]
+ public static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int x, int y, int cx, int cy,
uint uFlags);
[DllImport("user32.dll")]
- public static extern int IsWindow(IntPtr hWnd);
-
- [DllImport("user32.dll")]
public static extern IntPtr GetForegroundWindow();
[DllImport("user32.dll")]
- public static extern int GetWindowRect(IntPtr hwnd, out Rect lpRect);
+ [return: MarshalAs(UnmanagedType.Bool)]
+ public static extern bool GetWindowRect(IntPtr hwnd, out Rect lpRect);
[StructLayout(LayoutKind.Sequential)]
public struct Rect