mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-10-07 15:52:20 -04:00
Repo-wide sweep with the pinned CSharpier 1.3.0 tool. Whitespace and line-wrapping only; OpenNest.Engine.Tests (109) and OpenNest.IO.Tests pass after reformat, full solution builds 0 errors. Added .csharpierignore so csproj/config XML keeps its existing layout (CSharpier's XML wrapping churns attributes with zero benefit). Formatting is now enforceable: dotnet csharpier check . passes.
63 lines
1.8 KiB
C#
63 lines
1.8 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using System.Text;
|
|
|
|
namespace OpenNest
|
|
{
|
|
public static class Win32
|
|
{
|
|
[DllImport("kernel32")]
|
|
public static extern long WritePrivateProfileString(
|
|
string section,
|
|
string key,
|
|
string val,
|
|
string filePath
|
|
);
|
|
|
|
[DllImport("kernel32")]
|
|
public static extern int GetPrivateProfileString(
|
|
string section,
|
|
string key,
|
|
string def,
|
|
StringBuilder retVal,
|
|
int size,
|
|
string filePath
|
|
);
|
|
|
|
[DllImport("user32.dll")]
|
|
public static extern int GetWindowLong(IntPtr hWnd, int nIndex);
|
|
|
|
[DllImport("user32.dll")]
|
|
public static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong);
|
|
|
|
[DllImport("user32.dll", ExactSpelling = true)]
|
|
public static extern int SetWindowPos(
|
|
IntPtr hWnd,
|
|
IntPtr hWndInsertAfter,
|
|
int X,
|
|
int Y,
|
|
int cx,
|
|
int cy,
|
|
uint uFlags
|
|
);
|
|
|
|
#region Constants
|
|
|
|
public const int GWL_EXSTYLE = -20;
|
|
public const int WS_EX_CLIENTEDGE = 0x200;
|
|
public const uint SWP_NOSIZE = 0x0001;
|
|
public const uint SWP_NOMOVE = 0x0002;
|
|
public const uint SWP_NOZORDER = 0x0004;
|
|
public const uint SWP_NOREDRAW = 0x0008;
|
|
public const uint SWP_NOACTIVATE = 0x0010;
|
|
public const uint SWP_FRAMECHANGED = 0x0020;
|
|
public const uint SWP_SHOWWINDOW = 0x0040;
|
|
public const uint SWP_HIDEWINDOW = 0x0080;
|
|
public const uint SWP_NOCOPYBITS = 0x0100;
|
|
public const uint SWP_NOOWNERZORDER = 0x0200;
|
|
public const uint SWP_NOSENDCHANGING = 0x0400;
|
|
|
|
#endregion Constants
|
|
}
|
|
}
|