// Copyright (C) Stichting Deltares 2020. All rights reserved.
//
// This file is part of the Dam Engine.
//
// The Dam Engine is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program 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 Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
// All names, logos, and references to "Deltares" are registered trademarks of
// Stichting Deltares and remain full property of Stichting Deltares at all times.
// All rights reserved.
using System.Runtime.InteropServices;
namespace Deltares.LayerOnSlopeTool.StiFileCreator
{
///
/// Structure for dll information
///
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct DllVersionInfoStructure
{
///
/// Size of the structure, in bytes
///
public uint CbSize;
///
/// Major version of the DLL
///
public uint DwMajorVersion;
///
/// Minor version of the DLL
///
public uint DwMinorVersion;
///
/// Release number of the DLL
///
public uint DwReleaseNumber;
///
/// Build number of the DLL
///
public uint DwBuildNumber;
///
/// Identifies the platform for which the DLL was built
///
public uint DwPlatformID;
}
///
/// The standard DLL interface for DGS.
///
public class DgsStandardDllInterface
{
///
/// No Licence error
///
public const int DllUErrorNoLicense = 1;
///
/// User has aborted error
///
public const int DllErrorUserAborted = 2;
///
/// Non compliant xml error
///
public const int DllErrorNonCompliantXml = 3;
///
/// Invalid input data error
///
public const int DllErrorInvalidInputData = 4;
///
/// Handled fatal error
///
public const int DllErrorHandledFatal = 5;
///
/// Unhandled fatal error
///
public const int DllErrorUnhandledFatal = 6;
///
/// Invalid handle for dll error
///
public const int DllErrorInvalidHandle = 7;
///
/// Output buffer too small error
///
public const int DllErrorOutputBufferTooSmall = 8;
///
/// Error constants
///
public static int DllErrorNone = 0;
///
/// Used to hold the last error encountered
///
public static int DllErrorLastErrorCode = 0;
///
/// Example! (remove this wrapper if not needed)
///
///
public string GetDllVersion()
{
return "To be implemented";
}
///
/// List of errormessages
///
///
public string ErrorMessage()
{
return "To be implemented";
}
}
}