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);