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
/// <summary>
///
/// </summary>
/// <param name="dc"></param>
[DllImport("gdi32.dll")]
[SuppressUnmanagedCodeSecurity]
[DllImport("gdi32.dll", SetLastError=true)]
[return: MarshalAs(UnmanagedType.Bool)]
internal static extern bool SwapBuffers(IntPtr dc);
@ -1433,8 +1430,8 @@ namespace OpenTK.Platform.Windows
#endregion
#region PixelFormatDescriptor
#pragma warning disable 0169
#pragma warning disable 0169
/// <summary>
/// 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 VisibleMask;
internal int DamageMask;
}
}
#pragma warning restore 0169
#endregion