mirror of https://github.com/dahall/Vanara.git
Potentially Breaking Change: Moved DEVMODE and supporting enums out from Gdi32 class to items under the Vanara.PInvoke namespace. Moved DM_SPECVERSION to const value under DEVMODE struct.
parent
d66462ca3e
commit
828cd47c12
|
@ -4,11 +4,6 @@ using System.Runtime.InteropServices;
|
|||
|
||||
namespace Vanara.PInvoke
|
||||
{
|
||||
public static partial class Gdi32
|
||||
{
|
||||
/// <summary>Version for XP and later.</summary>
|
||||
public const ushort DM_SPECVERSION = 0x0401;
|
||||
|
||||
/// <summary>Specifies whether collation should be used when printing multiple copies.</summary>
|
||||
[PInvokeData("wingdi.h", MSDNShortId = "85741025-9393-42ab-8a6d-27f1ae2c0f1b")]
|
||||
public enum DMCOLLATE : short
|
||||
|
@ -674,6 +669,9 @@ namespace Vanara.PInvoke
|
|||
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
|
||||
public struct DEVMODE
|
||||
{
|
||||
/// <summary>Version for XP and later.</summary>
|
||||
public const ushort DM_SPECVERSION = 0x0401;
|
||||
|
||||
/// <summary>
|
||||
/// A zero-terminated character array that specifies the "friendly" name of the printer or display; for example, "PCL/HP
|
||||
/// LaserJet" in the case of PCL/HP LaserJet. This string is unique among device drivers. Note that this name may be truncated to
|
||||
|
@ -1817,4 +1815,3 @@ namespace Vanara.PInvoke
|
|||
public static readonly DEVMODE Default = new DEVMODE { dmSize = (ushort)Marshal.SizeOf(typeof(DEVMODE)), dmSpecVersion = DM_SPECVERSION };
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue