Add SuppressUnmanagedCodeSecurity and SetLastError attributes.

This commit is contained in:
the_fiddler 2008-11-26 21:54:35 +00:00
parent baf3247afe
commit 73cb7a5dd2

View file

@ -470,11 +470,8 @@ namespace OpenTK.Platform.Windows
#region SwapBuffers #region SwapBuffers
/// <summary> [SuppressUnmanagedCodeSecurity]
/// [DllImport("gdi32.dll", SetLastError=true)]
/// </summary>
/// <param name="dc"></param>
[DllImport("gdi32.dll")]
[return: MarshalAs(UnmanagedType.Bool)] [return: MarshalAs(UnmanagedType.Bool)]
internal static extern bool SwapBuffers(IntPtr dc); internal static extern bool SwapBuffers(IntPtr dc);
@ -1433,8 +1430,8 @@ namespace OpenTK.Platform.Windows
#endregion #endregion
#region PixelFormatDescriptor #region PixelFormatDescriptor
#pragma warning disable 0169 #pragma warning disable 0169
/// <summary> /// <summary>
/// Describes a pixel format. It is used when interfacing with the WINAPI to create a new Context. /// Describes a pixel format. It is used when interfacing with the WINAPI to create a new Context.
@ -1469,8 +1466,8 @@ namespace OpenTK.Platform.Windows
internal int LayerMask; internal int LayerMask;
internal int VisibleMask; internal int VisibleMask;
internal int DamageMask; internal int DamageMask;
} }
#pragma warning restore 0169 #pragma warning restore 0169
#endregion #endregion