mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 14:03:23 -07:00
Removed more dead code
This commit is contained in:
parent
601236833b
commit
2bbaa4a9a7
38 changed files with 66 additions and 943 deletions
|
@ -26,15 +26,7 @@ namespace GreenshotPlugin.UnmanagedHelpers.Enums
|
|||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
public enum ClassLongIndex
|
||||
{
|
||||
GCL_CBCLSEXTRA = -20, // the size, in bytes, of the extra memory associated with the class. Setting this value does not change the number of extra bytes already allocated.
|
||||
GCL_CBWNDEXTRA = -18, // the size, in bytes, of the extra window memory associated with each window in the class. Setting this value does not change the number of extra bytes already allocated. For information on how to access this memory, see SetWindowLong.
|
||||
GCL_HBRBACKGROUND = -10, // a handle to the background brush associated with the class.
|
||||
GCL_HCURSOR = -12, // a handle to the cursor associated with the class.
|
||||
GCL_HICON = -14, // a handle to the icon associated with the class.
|
||||
GCL_HICONSM = -34, // a handle to the small icon associated with the class.
|
||||
GCL_HMODULE = -16, // a handle to the module that registered the class.
|
||||
GCL_MENUNAME = -8, // the address of the menu name string. The string identifies the menu resource associated with the class.
|
||||
GCL_STYLE = -26, // the window-class style bits.
|
||||
GCL_WNDPROC = -24, // the address of the window procedure, or a handle representing the address of the window procedure. You must use the CallWindowProc function to call the window procedure.
|
||||
}
|
||||
}
|
|
@ -29,166 +29,15 @@ namespace GreenshotPlugin.UnmanagedHelpers.Enums
|
|||
/// </summary>
|
||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
public enum DeviceCaps {
|
||||
/// <summary>
|
||||
/// Device driver version
|
||||
/// </summary>
|
||||
DRIVERVERSION = 0,
|
||||
/// <summary>
|
||||
/// Device classification
|
||||
/// </summary>
|
||||
TECHNOLOGY = 2,
|
||||
/// <summary>
|
||||
/// Horizontal size in millimeters
|
||||
/// </summary>
|
||||
HORZSIZE = 4,
|
||||
/// <summary>
|
||||
/// Vertical size in millimeters
|
||||
/// </summary>
|
||||
VERTSIZE = 6,
|
||||
/// <summary>
|
||||
/// Horizontal width in pixels
|
||||
/// </summary>
|
||||
HORZRES = 8,
|
||||
/// <summary>
|
||||
/// Vertical height in pixels
|
||||
/// </summary>
|
||||
VERTRES = 10,
|
||||
/// <summary>
|
||||
/// Number of bits per pixel
|
||||
/// </summary>
|
||||
BITSPIXEL = 12,
|
||||
/// <summary>
|
||||
/// Number of planes
|
||||
/// </summary>
|
||||
PLANES = 14,
|
||||
/// <summary>
|
||||
/// Number of brushes the device has
|
||||
/// </summary>
|
||||
NUMBRUSHES = 16,
|
||||
/// <summary>
|
||||
/// Number of pens the device has
|
||||
/// </summary>
|
||||
NUMPENS = 18,
|
||||
/// <summary>
|
||||
/// Number of markers the device has
|
||||
/// </summary>
|
||||
NUMMARKERS = 20,
|
||||
/// <summary>
|
||||
/// Number of fonts the device has
|
||||
/// </summary>
|
||||
NUMFONTS = 22,
|
||||
/// <summary>
|
||||
/// Number of colors the device supports
|
||||
/// </summary>
|
||||
NUMCOLORS = 24,
|
||||
/// <summary>
|
||||
/// Size required for device descriptor
|
||||
/// </summary>
|
||||
PDEVICESIZE = 26,
|
||||
/// <summary>
|
||||
/// Curve capabilities
|
||||
/// </summary>
|
||||
CURVECAPS = 28,
|
||||
/// <summary>
|
||||
/// Line capabilities
|
||||
/// </summary>
|
||||
LINECAPS = 30,
|
||||
/// <summary>
|
||||
/// Polygonal capabilities
|
||||
/// </summary>
|
||||
POLYGONALCAPS = 32,
|
||||
/// <summary>
|
||||
/// Text capabilities
|
||||
/// </summary>
|
||||
TEXTCAPS = 34,
|
||||
/// <summary>
|
||||
/// Clipping capabilities
|
||||
/// </summary>
|
||||
CLIPCAPS = 36,
|
||||
/// <summary>
|
||||
/// Bitblt capabilities
|
||||
/// </summary>
|
||||
RASTERCAPS = 38,
|
||||
/// <summary>
|
||||
/// Length of the X leg
|
||||
/// </summary>
|
||||
ASPECTX = 40,
|
||||
/// <summary>
|
||||
/// Length of the Y leg
|
||||
/// </summary>
|
||||
ASPECTY = 42,
|
||||
/// <summary>
|
||||
/// Length of the hypotenuse
|
||||
/// </summary>
|
||||
ASPECTXY = 44,
|
||||
/// <summary>
|
||||
/// Shading and Blending caps
|
||||
/// </summary>
|
||||
SHADEBLENDCAPS = 45,
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Logical pixels inch in X
|
||||
/// </summary>
|
||||
LOGPIXELSX = 88,
|
||||
/// <summary>
|
||||
/// Logical pixels inch in Y
|
||||
/// </summary>
|
||||
LOGPIXELSY = 90,
|
||||
|
||||
/// <summary>
|
||||
/// Number of entries in physical palette
|
||||
/// </summary>
|
||||
SIZEPALETTE = 104,
|
||||
/// <summary>
|
||||
/// Number of reserved entries in palette
|
||||
/// </summary>
|
||||
NUMRESERVED = 106,
|
||||
/// <summary>
|
||||
/// Actual color resolution
|
||||
/// </summary>
|
||||
COLORRES = 108,
|
||||
|
||||
// Printing related DeviceCaps. These replace the appropriate Escapes
|
||||
/// <summary>
|
||||
/// Physical Width in device units
|
||||
/// </summary>
|
||||
PHYSICALWIDTH = 110,
|
||||
/// <summary>
|
||||
/// Physical Height in device units
|
||||
/// </summary>
|
||||
PHYSICALHEIGHT = 111,
|
||||
/// <summary>
|
||||
/// Physical Printable Area x margin
|
||||
/// </summary>
|
||||
PHYSICALOFFSETX = 112,
|
||||
/// <summary>
|
||||
/// Physical Printable Area y margin
|
||||
/// </summary>
|
||||
PHYSICALOFFSETY = 113,
|
||||
/// <summary>
|
||||
/// Scaling factor x
|
||||
/// </summary>
|
||||
SCALINGFACTORX = 114,
|
||||
/// <summary>
|
||||
/// Scaling factor y
|
||||
/// </summary>
|
||||
SCALINGFACTORY = 115,
|
||||
|
||||
/// <summary>
|
||||
/// Current vertical refresh rate of the display device (for displays only) in Hz
|
||||
/// </summary>
|
||||
VREFRESH = 116,
|
||||
/// <summary>
|
||||
/// Horizontal width of entire desktop in pixels
|
||||
/// </summary>
|
||||
DESKTOPVERTRES = 117,
|
||||
/// <summary>
|
||||
/// Vertical height of entire desktop in pixels
|
||||
/// </summary>
|
||||
DESKTOPHORZRES = 118,
|
||||
/// <summary>
|
||||
/// Preferred blt alignment
|
||||
/// </summary>
|
||||
BLTALIGNMENT = 119
|
||||
VREFRESH = 116
|
||||
}
|
||||
}
|
|
@ -30,17 +30,6 @@ namespace GreenshotPlugin.UnmanagedHelpers.Enums
|
|||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
public enum EventObjects
|
||||
{
|
||||
OBJID_ALERT = -10,
|
||||
OBJID_CARET = -8,
|
||||
OBJID_CLIENT = -4,
|
||||
OBJID_CURSOR = -9,
|
||||
OBJID_HSCROLL = -6,
|
||||
OBJID_MENU = -3,
|
||||
OBJID_SIZEGRIP = -7,
|
||||
OBJID_SOUND = -11,
|
||||
OBJID_SYSMENU = -1,
|
||||
OBJID_TITLEBAR = -2,
|
||||
OBJID_VSCROLL = -5,
|
||||
OBJID_WINDOW = 0
|
||||
}
|
||||
}
|
|
@ -27,38 +27,7 @@ namespace GreenshotPlugin.UnmanagedHelpers.Enums
|
|||
[Flags]
|
||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
public enum ExtendedWindowStyleFlags : uint {
|
||||
WS_EX_DLGMODALFRAME = 0x00000001,
|
||||
WS_EX_NOPARENTNOTIFY = 0x00000004,
|
||||
WS_EX_TOPMOST = 0x00000008,
|
||||
WS_EX_ACCEPTFILES = 0x00000010,
|
||||
WS_EX_TRANSPARENT = 0x00000020,
|
||||
|
||||
//#if(WINVER >= 0x0400)
|
||||
WS_EX_MDICHILD = 0x00000040,
|
||||
WS_EX_TOOLWINDOW = 0x00000080,
|
||||
WS_EX_WINDOWEDGE = 0x00000100,
|
||||
WS_EX_CLIENTEDGE = 0x00000200,
|
||||
WS_EX_CONTEXTHELP = 0x00000400,
|
||||
|
||||
WS_EX_RIGHT = 0x00001000,
|
||||
WS_EX_LEFT = 0x00000000,
|
||||
WS_EX_RTLREADING = 0x00002000,
|
||||
WS_EX_LTRREADING = 0x00000000,
|
||||
WS_EX_LEFTSCROLLBAR = 0x00004000,
|
||||
WS_EX_RIGHTSCROLLBAR = 0x00000000,
|
||||
|
||||
WS_EX_CONTROLPARENT = 0x00010000,
|
||||
WS_EX_STATICEDGE = 0x00020000,
|
||||
WS_EX_APPWINDOW = 0x00040000,
|
||||
|
||||
//WS_EX_OVERLAPPEDWINDOW = (WS_EX_WINDOWEDGE | WS_EX_CLIENTEDGE),
|
||||
//WS_EX_PALETTEWINDOW = (WS_EX_WINDOWEDGE | WS_EX_TOOLWINDOW | WS_EX_TOPMOST),
|
||||
|
||||
WS_EX_LAYERED = 0x00080000,
|
||||
WS_EX_NOINHERITLAYOUT = 0x00100000, // Disable inheritence of mirroring by children
|
||||
WS_EX_NOREDIRECTIONBITMAP = 0x00200000, //The window does not render to a redirection surface. This is for windows that do not have visible content or that use mechanisms other than surfaces to provide their visual.
|
||||
WS_EX_LAYOUTRTL = 0x00400000, // Right to left mirroring
|
||||
WS_EX_COMPOSITED = 0x02000000,
|
||||
WS_EX_NOACTIVATE = 0x08000000 // A top-level window created with this style does not become the foreground window when the user clicks it. The system does not bring this window to the foreground when the user minimizes or closes the foreground window.
|
||||
}
|
||||
}
|
|
@ -1,36 +0,0 @@
|
|||
/*
|
||||
* Greenshot - a free and open source screenshot tool
|
||||
* Copyright (C) 2007-2021 Thomas Braun, Jens Klingen, Robin Krom
|
||||
*
|
||||
* For more information see: http://getgreenshot.org/
|
||||
* The Greenshot project is hosted on GitHub https://github.com/greenshot/greenshot
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 1 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace GreenshotPlugin.UnmanagedHelpers.Enums
|
||||
{
|
||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
public enum GetWindowCommand : uint {
|
||||
GW_HWNDFIRST = 0,
|
||||
GW_HWNDLAST = 1,
|
||||
GW_HWNDNEXT = 2,
|
||||
GW_HWNDPREV = 3,
|
||||
GW_OWNER = 4,
|
||||
GW_CHILD = 5,
|
||||
GW_ENABLEDPOPUP = 6
|
||||
}
|
||||
}
|
|
@ -27,15 +27,7 @@ namespace GreenshotPlugin.UnmanagedHelpers.Enums
|
|||
[Flags]
|
||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
public enum ProcessAccessFlags : uint {
|
||||
All = 0x001F0FFF,
|
||||
Terminate = 0x00000001,
|
||||
CreateThread = 0x00000002,
|
||||
VMOperation = 0x00000008,
|
||||
VMRead = 0x00000010,
|
||||
VMWrite = 0x00000020,
|
||||
DupHandle = 0x00000040,
|
||||
SetInformation = 0x00000200,
|
||||
QueryInformation = 0x00000400,
|
||||
Synchronize = 0x00100000
|
||||
}
|
||||
}
|
|
@ -27,7 +27,5 @@ namespace GreenshotPlugin.UnmanagedHelpers.Enums
|
|||
public enum RegionResult {
|
||||
REGION_ERROR = 0,
|
||||
REGION_NULLREGION = 1,
|
||||
REGION_SIMPLEREGION = 2,
|
||||
REGION_COMPLEXREGION = 3
|
||||
}
|
||||
}
|
|
@ -30,9 +30,6 @@ namespace GreenshotPlugin.UnmanagedHelpers.Enums
|
|||
[Flags]
|
||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
public enum SendMessageTimeoutFlags : uint {
|
||||
SMTO_NORMAL = 0x0,
|
||||
SMTO_BLOCK = 0x1,
|
||||
SMTO_ABORTIFHUNG = 0x2,
|
||||
SMTO_NOTIMEOUTIFNOTHUNG = 0x8
|
||||
SMTO_NORMAL = 0x0
|
||||
}
|
||||
}
|
|
@ -31,15 +31,9 @@ namespace GreenshotPlugin.UnmanagedHelpers.Enums
|
|||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
public enum SoundFlags
|
||||
{
|
||||
SND_SYNC = 0x0000, // play synchronously (default)
|
||||
SND_ASYNC = 0x0001, // play asynchronously
|
||||
SND_NODEFAULT = 0x0002, // silence (!default) if sound not found
|
||||
SND_MEMORY = 0x0004, // pszSound points to a memory file
|
||||
SND_LOOP = 0x0008, // loop the sound until next sndPlaySound
|
||||
SND_NOSTOP = 0x0010, // don't stop any currently playing sound
|
||||
SND_NOWAIT = 0x00002000, // don't wait if the driver is busy
|
||||
SND_ALIAS = 0x00010000, // name is a registry alias
|
||||
SND_ALIAS_ID = 0x00110000, // alias is a predefined id
|
||||
SND_FILENAME = 0x00020000, // name is file name
|
||||
}
|
||||
}
|
|
@ -27,10 +27,6 @@ namespace GreenshotPlugin.UnmanagedHelpers.Enums
|
|||
public enum WindowLongIndex
|
||||
{
|
||||
GWL_EXSTYLE = -20, // Sets a new extended window style.
|
||||
GWL_HINSTANCE = -6, // Sets a new application instance handle.
|
||||
GWL_ID = -12, // Sets a new identifier of the child window. The window cannot be a top-level window.
|
||||
GWL_STYLE = -16, // Sets a new window style.
|
||||
GWL_USERDATA = -21, // Sets the user data associated with the window. This data is intended for use by the application that created the window. Its value is initially zero.
|
||||
GWL_WNDPROC = -4 // Sets a new address for the window procedure. You cannot change this attribute if the window does not belong to the same process as the calling thread.
|
||||
}
|
||||
}
|
|
@ -29,58 +29,6 @@ namespace GreenshotPlugin.UnmanagedHelpers.Enums {
|
|||
[Flags]
|
||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
public enum WindowStyleFlags : long {
|
||||
//WS_OVERLAPPED = 0x00000000,
|
||||
WS_POPUP = 0x80000000,
|
||||
WS_CHILD = 0x40000000,
|
||||
WS_MINIMIZE = 0x20000000,
|
||||
WS_VISIBLE = 0x10000000,
|
||||
WS_DISABLED = 0x08000000,
|
||||
WS_CLIPSIBLINGS = 0x04000000,
|
||||
WS_CLIPCHILDREN = 0x02000000,
|
||||
WS_MAXIMIZE = 0x01000000,
|
||||
WS_BORDER = 0x00800000,
|
||||
WS_DLGFRAME = 0x00400000,
|
||||
WS_VSCROLL = 0x00200000,
|
||||
WS_HSCROLL = 0x00100000,
|
||||
WS_SYSMENU = 0x00080000,
|
||||
WS_THICKFRAME = 0x00040000,
|
||||
WS_GROUP = 0x00020000,
|
||||
WS_TABSTOP = 0x00010000,
|
||||
|
||||
WS_UNK8000 = 0x00008000,
|
||||
WS_UNK4000 = 0x00004000,
|
||||
WS_UNK2000 = 0x00002000,
|
||||
WS_UNK1000 = 0x00001000,
|
||||
WS_UNK800 = 0x00000800,
|
||||
WS_UNK400 = 0x00000400,
|
||||
WS_UNK200 = 0x00000200,
|
||||
WS_UNK100 = 0x00000100,
|
||||
WS_UNK80 = 0x00000080,
|
||||
WS_UNK40 = 0x00000040,
|
||||
WS_UNK20 = 0x00000020,
|
||||
WS_UNK10 = 0x00000010,
|
||||
WS_UNK8 = 0x00000008,
|
||||
WS_UNK4 = 0x00000004,
|
||||
WS_UNK2 = 0x00000002,
|
||||
WS_UNK1 = 0x00000001,
|
||||
|
||||
//WS_MINIMIZEBOX = 0x00020000,
|
||||
//WS_MAXIMIZEBOX = 0x00010000,
|
||||
|
||||
//WS_CAPTION = WS_BORDER | WS_DLGFRAME,
|
||||
//WS_TILED = WS_OVERLAPPED,
|
||||
//WS_ICONIC = WS_MINIMIZE,
|
||||
//WS_SIZEBOX = WS_THICKFRAME,
|
||||
//WS_TILEDWINDOW = WS_OVERLAPPEDWINDOW,
|
||||
|
||||
//WS_OVERLAPPEDWINDOW = WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX,
|
||||
//WS_POPUPWINDOW = WS_POPUP | WS_BORDER | WS_SYSMENU
|
||||
//WS_CHILDWINDOW = WS_CHILD
|
||||
}
|
||||
|
||||
// See http://msdn.microsoft.com/en-us/library/aa969530(v=vs.85).aspx
|
||||
|
||||
// Get/Set WindowLong Enum See: http://msdn.microsoft.com/en-us/library/ms633591.aspx
|
||||
|
||||
// See: http://msdn.microsoft.com/en-us/library/ms633545.aspx
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue