Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
54 lines (49 sloc) 1.73 KB
// Dapplo - building blocks for desktop applications
// Copyright (C) 2017-2019 Dapplo
//
// For more information see: http://dapplo.net/
// Dapplo repositories are hosted on GitHub: https://github.com/dapplo
//
// This file is part of Dapplo.Windows
//
// Dapplo.Windows is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Dapplo.Windows is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have a copy of the GNU Lesser General Public License
// along with Dapplo.Windows. If not, see <http://www.gnu.org/licenses/lgpl.txt>.
#region using
using System;
using System.Security;
#endregion
namespace Dapplo.Windows.Gdi32.SafeHandles
{
/// <summary>
/// A DIB Section SafeHandle implementation
/// </summary>
public class SafeDibSectionHandle : SafeObjectHandle
{
/// <summary>
/// Default constructor is needed to support marshalling!!
/// </summary>
[SecurityCritical]
public SafeDibSectionHandle() : base(true)
{
}
/// <summary>
/// Create a SafeDibSectionHandle for an existing DIB Section
/// </summary>
/// <param name="preexistingHandle"></param>
[SecurityCritical]
public SafeDibSectionHandle(IntPtr preexistingHandle) : base(true)
{
SetHandle(preexistingHandle);
}
}
}
You can’t perform that action at this time.