You need more code
using System;
using System.Runtime.InteropServices;
using System.Windows.Forms;
public class Main : wManager.Plugin.IPlugin
{
[DllImport("user32.dll", SetLastError = true)]
static extern int GetWindowLong(IntPtr hWnd, int nIndex);
public const uint WS_MINIMIZE = 0x20000000;
public const uint WS_MAXIMIZE = 0x01000000;
public const int GWL_STYLE = -16;
void GetState()
{
int style = GetWindowLong(wManager.Wow.Memory.WowMemory.Memory.WindowHandle, GWL_STYLE);
if ((style & WS_MAXIMIZE) == WS_MAXIMIZE)
{
MessageBox.Show("maximized");
}
else if ((style & WS_MINIMIZE) == WS_MINIMIZE)
{
MessageBox.Show("minimized");
}
else
{
// normal style?
MessageBox.Show("Normal??? > style=" + style.ToString("x8"));
}
}
public void Initialize()
{
GetState();
robotManager.Helpful.Win32.Native.ShowWindow(wManager.Wow.Memory.WowMemory.Memory.WindowHandle, 6);
GetState();
robotManager.Helpful.Win32.Native.ShowWindow(wManager.Wow.Memory.WowMemory.Memory.WindowHandle, 3);
GetState();
robotManager.Helpful.Win32.Native.ShowWindow(wManager.Wow.Memory.WowMemory.Memory.WindowHandle, 4);
GetState();
}
public void Dispose()
{
}
public void Settings()
{
}
}