This commit is contained in:
Andrew Arnott 2016-09-04 12:56:07 -07:00
Родитель 8d3da2b064
Коммит 2a7c2a4408
5 изменённых файлов: 142 добавлений и 138 удалений

6
.gitattributes поставляемый
Просмотреть файл

@ -1,7 +1,11 @@
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto
* text=auto
*.cs text
*.sln text
*.proj text
*.ps1 text
###############################################################################
# Set default behavior for command prompt diff.

Просмотреть файл

@ -1,46 +1,46 @@
// Copyright (c) to owners found in https://github.com/AArnott/pinvoke/blob/master/COPYRIGHT.md. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. namespace PInvoke { using System.Runtime.InteropServices; /// <content> /// Contains the <see cref="DLGITEMTEMPLATE"/> nested type. /// </content> public partial class User32 { /// <summary>
/// Defines the dimensions and style of a control in a dialog box. One or more of these structures are combined with a
/// <see cref="DLGTEMPLATE" /> structure to form a standard template for a dialog box.
/// </summary>
[StructLayout(LayoutKind.Sequential, Pack = 2)]
public struct DLGITEMTEMPLATE
{
/// <summary>
/// The style of the control. This member can be a combination of window style values (such as WS_BORDER) and one or
/// more of the control style values (such as BS_PUSHBUTTON and ES_LEFT).
/// </summary>
public int style;
/// <summary>
/// The extended styles for a window. This member is not used to create controls in dialog boxes, but applications that
/// use dialog box templates can use it to create other types of windows.
/// </summary>
public int dwExtendedStyle;
/// <summary>
/// The x-coordinate, in dialog box units, of the upper-left corner of the control. This coordinate is always relative
/// to the upper-left corner of the dialog box's client area.
/// </summary>
public byte x;
/// <summary>
/// The y-coordinate, in dialog box units, of the upper-left corner of the control. This coordinate is always relative
/// to the upper-left corner of the dialog box's client area.
/// </summary>
public byte y;
/// <summary>
/// The width, in dialog box units, of the control.
/// </summary>
public byte cx;
/// <summary>
/// The height, in dialog box units, of the control.
/// </summary>
public byte cy;
/// <summary>
/// The control identifier.
/// </summary>
public short id;
// Copyright (c) to owners found in https://github.com/AArnott/pinvoke/blob/master/COPYRIGHT.md. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. namespace PInvoke { using System.Runtime.InteropServices; /// <content> /// Contains the <see cref="DLGITEMTEMPLATE"/> nested type. /// </content> public partial class User32 { /// <summary>
/// Defines the dimensions and style of a control in a dialog box. One or more of these structures are combined with a
/// <see cref="DLGTEMPLATE" /> structure to form a standard template for a dialog box.
/// </summary>
[StructLayout(LayoutKind.Sequential, Pack = 2)]
public struct DLGITEMTEMPLATE
{
/// <summary>
/// The style of the control. This member can be a combination of window style values (such as WS_BORDER) and one or
/// more of the control style values (such as BS_PUSHBUTTON and ES_LEFT).
/// </summary>
public int style;
/// <summary>
/// The extended styles for a window. This member is not used to create controls in dialog boxes, but applications that
/// use dialog box templates can use it to create other types of windows.
/// </summary>
public int dwExtendedStyle;
/// <summary>
/// The x-coordinate, in dialog box units, of the upper-left corner of the control. This coordinate is always relative
/// to the upper-left corner of the dialog box's client area.
/// </summary>
public byte x;
/// <summary>
/// The y-coordinate, in dialog box units, of the upper-left corner of the control. This coordinate is always relative
/// to the upper-left corner of the dialog box's client area.
/// </summary>
public byte y;
/// <summary>
/// The width, in dialog box units, of the control.
/// </summary>
public byte cx;
/// <summary>
/// The height, in dialog box units, of the control.
/// </summary>
public byte cy;
/// <summary>
/// The control identifier.
/// </summary>
public short id;
} } }

Просмотреть файл

@ -1,54 +1,54 @@
// Copyright (c) to owners found in https://github.com/AArnott/pinvoke/blob/master/COPYRIGHT.md. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. namespace PInvoke { using System.Runtime.InteropServices; /// <content> /// Contains the <see cref="DLGTEMPLATE"/> nested type. /// </content> public partial class User32 { /// <summary>
/// Defines the dimensions and style of a dialog box. This structure, always the first in a standard template for a
/// dialog box, also specifies the number of controls in the dialog box and therefore specifies the number of
/// subsequent <see cref="DLGITEMTEMPLATE" /> structures in the template.
/// </summary>
[StructLayout(LayoutKind.Sequential, Pack = 2)]
public struct DLGTEMPLATE
{
/// <summary>
/// The style of the dialog box. This member can be a combination of window style values (such as WS_CAPTION and
/// WS_SYSMENU) and dialog box style values (such as DS_CENTER).
/// <para>
/// If the style member includes the DS_SETFONT style, the header of the dialog box template contains additional
/// data specifying the font to use for text in the client area and controls of the dialog box. The font data
/// begins on the WORD boundary that follows the title array. The font data specifies a 16-bit point size value and
/// a Unicode font name string. If possible, the system creates a font according to the specified values. Then the
/// system sends a WM_SETFONT message to the dialog box and to each control to provide a handle to the font. If
/// DS_SETFONT is not specified, the dialog box template does not include the font data.
/// </para>
/// <para>The DS_SHELLFONT style is not supported in the DLGTEMPLATE header.</para>
/// </summary>
public int style;
/// <summary>
/// The extended styles for a window. This member is not used to create dialog boxes, but applications that use dialog
/// box templates can use it to create other types of windows.
/// </summary>
public int dwExtendedStyle;
/// <summary>
/// The number of items in the dialog box.
/// </summary>
public short cdit;
/// <summary>
/// The x-coordinate, in dialog box units, of the upper-left corner of the dialog box.
/// </summary>
public byte x;
/// <summary>
/// The y-coordinate, in dialog box units, of the upper-left corner of the dialog box.
/// </summary>
public byte y;
/// <summary>
/// The width, in dialog box units, of the dialog box.
/// </summary>
public byte cx;
/// <summary>
/// The height, in dialog box units, of the dialog box.
/// </summary>
public byte cy;
// Copyright (c) to owners found in https://github.com/AArnott/pinvoke/blob/master/COPYRIGHT.md. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. namespace PInvoke { using System.Runtime.InteropServices; /// <content> /// Contains the <see cref="DLGTEMPLATE"/> nested type. /// </content> public partial class User32 { /// <summary>
/// Defines the dimensions and style of a dialog box. This structure, always the first in a standard template for a
/// dialog box, also specifies the number of controls in the dialog box and therefore specifies the number of
/// subsequent <see cref="DLGITEMTEMPLATE" /> structures in the template.
/// </summary>
[StructLayout(LayoutKind.Sequential, Pack = 2)]
public struct DLGTEMPLATE
{
/// <summary>
/// The style of the dialog box. This member can be a combination of window style values (such as WS_CAPTION and
/// WS_SYSMENU) and dialog box style values (such as DS_CENTER).
/// <para>
/// If the style member includes the DS_SETFONT style, the header of the dialog box template contains additional
/// data specifying the font to use for text in the client area and controls of the dialog box. The font data
/// begins on the WORD boundary that follows the title array. The font data specifies a 16-bit point size value and
/// a Unicode font name string. If possible, the system creates a font according to the specified values. Then the
/// system sends a WM_SETFONT message to the dialog box and to each control to provide a handle to the font. If
/// DS_SETFONT is not specified, the dialog box template does not include the font data.
/// </para>
/// <para>The DS_SHELLFONT style is not supported in the DLGTEMPLATE header.</para>
/// </summary>
public int style;
/// <summary>
/// The extended styles for a window. This member is not used to create dialog boxes, but applications that use dialog
/// box templates can use it to create other types of windows.
/// </summary>
public int dwExtendedStyle;
/// <summary>
/// The number of items in the dialog box.
/// </summary>
public short cdit;
/// <summary>
/// The x-coordinate, in dialog box units, of the upper-left corner of the dialog box.
/// </summary>
public byte x;
/// <summary>
/// The y-coordinate, in dialog box units, of the upper-left corner of the dialog box.
/// </summary>
public byte y;
/// <summary>
/// The width, in dialog box units, of the dialog box.
/// </summary>
public byte cx;
/// <summary>
/// The height, in dialog box units, of the dialog box.
/// </summary>
public byte cy;
} } }

Просмотреть файл

@ -1,37 +1,37 @@
// Copyright (c) to owners found in https://github.com/AArnott/pinvoke/blob/master/COPYRIGHT.md. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. namespace PInvoke { using System; using System.Runtime.InteropServices; /// <content> /// Contains the <see cref="MSG"/> nested type. /// </content> public partial class User32 { /// <summary>
/// Contains message information from a thread's message queue.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public struct MSG
{
/// <summary>
/// A handle to the window whose window procedure receives the message. This member is <see cref="IntPtr.Zero" /> when
/// the message is a thread message.
/// </summary>
public IntPtr hwnd;
/// <summary>
/// The message identifier. Applications can only use the low word; the high word is reserved by the system.
/// </summary>
public WindowMessage message;
/// <summary>
/// Additional information about the message. The exact meaning depends on the value of the message member.
/// </summary>
public IntPtr wParam;
/// <summary>
/// Additional information about the message. The exact meaning depends on the value of the message member.
/// </summary>
public IntPtr lParam;
/// <summary>
/// The time at which the message was posted.
/// </summary>
public int time;
/// <summary>
/// The cursor position, in screen coordinates, when the message was posted.
/// </summary>
public POINT pt;
// Copyright (c) to owners found in https://github.com/AArnott/pinvoke/blob/master/COPYRIGHT.md. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. namespace PInvoke { using System; using System.Runtime.InteropServices; /// <content> /// Contains the <see cref="MSG"/> nested type. /// </content> public partial class User32 { /// <summary>
/// Contains message information from a thread's message queue.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public struct MSG
{
/// <summary>
/// A handle to the window whose window procedure receives the message. This member is <see cref="IntPtr.Zero" /> when
/// the message is a thread message.
/// </summary>
public IntPtr hwnd;
/// <summary>
/// The message identifier. Applications can only use the low word; the high word is reserved by the system.
/// </summary>
public WindowMessage message;
/// <summary>
/// Additional information about the message. The exact meaning depends on the value of the message member.
/// </summary>
public IntPtr wParam;
/// <summary>
/// Additional information about the message. The exact meaning depends on the value of the message member.
/// </summary>
public IntPtr lParam;
/// <summary>
/// The time at which the message was posted.
/// </summary>
public int time;
/// <summary>
/// The cursor position, in screen coordinates, when the message was posted.
/// </summary>
public POINT pt;
} } }

Просмотреть файл

@ -1,4 +1,4 @@
// Copyright (c) to owners found in https://github.com/AArnott/pinvoke/blob/master/COPYRIGHT.md. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. namespace PInvoke { using System; /// <content> /// Contains the <see cref="PeekMessageRemoveFlags"/> nested type. /// </content> public partial class User32 { /// <summary> /// Flags to be passed to the <code>wRemoveMsg</code> parameter of /// <see cref="PeekMessage(IntPtr, IntPtr, WindowMessage, WindowMessage, PeekMessageRemoveFlags)" /> /// </summary> [Flags]
public enum PeekMessageRemoveFlags : uint
{ /// <summary> /// Messages are not removed from the queue after processing by /// <see cref="PeekMessage(IntPtr, IntPtr, WindowMessage, WindowMessage, PeekMessageRemoveFlags)" />. /// </summary> PM_NOREMOVE = 0x0000, /// <summary> /// Messages are removed from the queue after processing by /// <see cref="PeekMessage(IntPtr, IntPtr, WindowMessage, WindowMessage, PeekMessageRemoveFlags)" />. /// </summary> PM_REMOVE = 0x0001, /// <summary> /// Prevents the system from releasing any thread that is waiting for the caller to go idle (see /// WaitForInputIdle). Combine this value with either <see cref="PM_NOREMOVE" /> or <see cref="PM_REMOVE" />. /// </summary> PM_NOYIELD = 0x0002, /// <summary>Process mouse and keyboard messages.</summary> PM_QS_INPUT = QueueStatusFlags.QS_INPUT << 16, /// <summary>Process paint messages.</summary> PM_QS_PAINT = QueueStatusFlags.QS_PAINT << 16, /// <summary>Process all posted messages, including timers and hotkeys.</summary> PM_QS_POSTMESSAGE = (QueueStatusFlags.QS_POSTMESSAGE | QueueStatusFlags.QS_HOTKEY | QueueStatusFlags.QS_TIMER) << 16, /// <summary>Process all sent messages.</summary> PM_QS_SENDMESSAGE = QueueStatusFlags.QS_SENDMESSAGE << 16
// Copyright (c) to owners found in https://github.com/AArnott/pinvoke/blob/master/COPYRIGHT.md. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. namespace PInvoke { using System; /// <content> /// Contains the <see cref="PeekMessageRemoveFlags"/> nested type. /// </content> public partial class User32 { /// <summary> /// Flags to be passed to the <code>wRemoveMsg</code> parameter of /// <see cref="PeekMessage(IntPtr, IntPtr, WindowMessage, WindowMessage, PeekMessageRemoveFlags)" /> /// </summary> [Flags]
public enum PeekMessageRemoveFlags : uint
{ /// <summary> /// Messages are not removed from the queue after processing by /// <see cref="PeekMessage(IntPtr, IntPtr, WindowMessage, WindowMessage, PeekMessageRemoveFlags)" />. /// </summary> PM_NOREMOVE = 0x0000, /// <summary> /// Messages are removed from the queue after processing by /// <see cref="PeekMessage(IntPtr, IntPtr, WindowMessage, WindowMessage, PeekMessageRemoveFlags)" />. /// </summary> PM_REMOVE = 0x0001, /// <summary> /// Prevents the system from releasing any thread that is waiting for the caller to go idle (see /// WaitForInputIdle). Combine this value with either <see cref="PM_NOREMOVE" /> or <see cref="PM_REMOVE" />. /// </summary> PM_NOYIELD = 0x0002, /// <summary>Process mouse and keyboard messages.</summary> PM_QS_INPUT = QueueStatusFlags.QS_INPUT << 16, /// <summary>Process paint messages.</summary> PM_QS_PAINT = QueueStatusFlags.QS_PAINT << 16, /// <summary>Process all posted messages, including timers and hotkeys.</summary> PM_QS_POSTMESSAGE = (QueueStatusFlags.QS_POSTMESSAGE | QueueStatusFlags.QS_HOTKEY | QueueStatusFlags.QS_TIMER) << 16, /// <summary>Process all sent messages.</summary> PM_QS_SENDMESSAGE = QueueStatusFlags.QS_SENDMESSAGE << 16
} } }