Skip to content

Commit

Permalink
Added missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
dremin committed Sep 7, 2010
1 parent 917f6ca commit 36de406
Showing 1 changed file with 45 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace CairoDesktop.SupportingClasses
{
public sealed class NativeMethods
{
public const int HWND_TOPMOST = -1; // 0xffff
public const int HWND_BOTTOMMOST = 1;
public const int SWP_NOSIZE = 1; // 0x0001
public const int SWP_NOMOVE = 2; // 0x0002
public const int SWP_NOZORDER = 4; // 0x0004
public const int SWP_NOACTIVATE = 16; // 0x0010
public const int SWP_SHOWWINDOW = 64; // 0x0040
public const int SWP_HIDEWINDOW = 128; // 0x0080
public const int SWP_DRAWFRAME = 32; // 0x0020


static NativeMethods()
{
}

// Handling the close splash screen event
[DllImport("kernel32.dll")]
public static extern Int32 OpenEvent(Int32 DesiredAccess, bool InheritHandle, string Name);

// OpenEvent DesiredAccess defines
public const int EVENT_MODIFY_STATE = 0x00000002;

[DllImport("kernel32.dll")]
public static extern Int32 SetEvent(Int32 Handle);

[DllImport("kernel32.dll")]
public static extern Int32 CloseHandle(Int32 Handle);

[DllImport("user32.dll")]
public static extern Int32 SetShellWindow(IntPtr hWnd);

[DllImport("USER32.dll")]
extern public static bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int X, int Y, int cx, int cy, int uFlags);
}
}

2 comments on commit 36de406

@josuave
Copy link
Collaborator

@josuave josuave commented on 36de406 Apr 7, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sam, im trying to get in contact with you

@dremin
Copy link
Collaborator Author

@dremin dremin commented on 36de406 Nov 20, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's up?

Please sign in to comment.