mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 18:11:27 -07:00
saving this here so i can see if there's a better way to do stuff first before adding functionality
26 lines
769 B
C#
26 lines
769 B
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace Bloxstrap.Utility
|
|
{
|
|
static class NativeMethods
|
|
{
|
|
[DllImport("user32.dll")]
|
|
public static extern bool SetForegroundWindow(IntPtr hWnd);
|
|
|
|
[DllImport("user32.dll")]
|
|
public static extern bool FlashWindow(IntPtr hWnd, bool bInvert);
|
|
|
|
[DllImport("user32.dll")]
|
|
public static extern IntPtr GetWindowLongPtr(IntPtr hWnd, int nIndex);
|
|
|
|
[DllImport("user32.dll")]
|
|
public static extern IntPtr SetWindowLongPtr(IntPtr hWnd, int nIndex, IntPtr dwNewLong);
|
|
|
|
// i only bothered to add the constants that im using lol
|
|
|
|
public const int GWL_EXSTYLE = -20;
|
|
|
|
public const int WS_EX_TOOLWINDOW = 0x00000080;
|
|
}
|
|
}
|