OSDN Git Service

Dropped "native" Delphi wrapper.
authorLoRd_MuldeR <mulder2@gmx.de>
Sun, 2 Jul 2017 19:56:14 +0000 (21:56 +0200)
committerLoRd_MuldeR <mulder2@gmx.de>
Sun, 2 Jul 2017 19:56:14 +0000 (21:56 +0200)
bindings/Delphi/example/Example.dpr
bindings/Delphi/example/src/Main.pas
bindings/Delphi/library/MHash384.dcu [new file with mode: 0644]
bindings/Delphi/library/MHash384.pas [moved from bindings/Delphi/wrapper/MHash384.pas with 99% similarity]
bindings/Delphi/native/MHashDelphi384.sln [deleted file]
bindings/Delphi/native/MHashDelphi384.vcxproj [deleted file]
bindings/Delphi/native/MHashDelphi384.vcxproj.filters [deleted file]
bindings/Delphi/native/src/MHashDelphi384.cpp [deleted file]
bindings/Delphi/native/src/dllmain.cpp [deleted file]

index c49ce06..97bece5 100644 (file)
@@ -3,7 +3,7 @@ program Example;
 uses
   Forms,
   Main in 'src\Main.pas' {MainForm},
-  MHash384 in '..\wrapper\MHash384.pas';
+  MHash384 in '..\library\MHash384.pas';
 
 {$R *.res}
 
index af0b368..79cfb68 100644 (file)
@@ -1,5 +1,5 @@
 { ---------------------------------------------------------------------------------------------- }
-{ MHash-384 - Language bindings for Delphi                                                       }
+{ MHash-384 for Delphi/Pascal                                                                    }
 { Copyright(c) 2016-2017 LoRd_MuldeR <mulder2@gmx.de>                                            }
 {                                                                                                }
 { Permission is hereby granted, free of charge, to any person obtaining a copy of this software  }
diff --git a/bindings/Delphi/library/MHash384.dcu b/bindings/Delphi/library/MHash384.dcu
new file mode 100644 (file)
index 0000000..7ad1552
Binary files /dev/null and b/bindings/Delphi/library/MHash384.dcu differ
similarity index 99%
rename from bindings/Delphi/wrapper/MHash384.pas
rename to bindings/Delphi/library/MHash384.pas
index 87d08bd..d1dd9f8 100644 (file)
@@ -1,5 +1,5 @@
 { ---------------------------------------------------------------------------------------------- }
-{ MHash-384 - Language bindings for Delphi                                                       }
+{ MHash-384 for Delphi/Pascal                                                                    }
 { Copyright(c) 2016-2017 LoRd_MuldeR <mulder2@gmx.de>                                            }
 {                                                                                                }
 { Permission is hereby granted, free of charge, to any person obtaining a copy of this software  }
diff --git a/bindings/Delphi/native/MHashDelphi384.sln b/bindings/Delphi/native/MHashDelphi384.sln
deleted file mode 100644 (file)
index 07aeb92..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 14
-VisualStudioVersion = 14.0.24720.0
-MinimumVisualStudioVersion = 10.0.40219.1
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MHashDelphi384", "MHashDelphi384.vcxproj", "{1E5E659E-F63B-4C04-BA22-371783C54D85}"
-EndProject
-Global
-       GlobalSection(SolutionConfigurationPlatforms) = preSolution
-               Debug|x64 = Debug|x64
-               Debug|x86 = Debug|x86
-               Release|x64 = Release|x64
-               Release|x86 = Release|x86
-       EndGlobalSection
-       GlobalSection(ProjectConfigurationPlatforms) = postSolution
-               {1E5E659E-F63B-4C04-BA22-371783C54D85}.Debug|x64.ActiveCfg = Debug|x64
-               {1E5E659E-F63B-4C04-BA22-371783C54D85}.Debug|x64.Build.0 = Debug|x64
-               {1E5E659E-F63B-4C04-BA22-371783C54D85}.Debug|x86.ActiveCfg = Debug|Win32
-               {1E5E659E-F63B-4C04-BA22-371783C54D85}.Debug|x86.Build.0 = Debug|Win32
-               {1E5E659E-F63B-4C04-BA22-371783C54D85}.Release|x64.ActiveCfg = Release|x64
-               {1E5E659E-F63B-4C04-BA22-371783C54D85}.Release|x64.Build.0 = Release|x64
-               {1E5E659E-F63B-4C04-BA22-371783C54D85}.Release|x86.ActiveCfg = Release|Win32
-               {1E5E659E-F63B-4C04-BA22-371783C54D85}.Release|x86.Build.0 = Release|Win32
-       EndGlobalSection
-       GlobalSection(SolutionProperties) = preSolution
-               HideSolutionNode = FALSE
-       EndGlobalSection
-EndGlobal
diff --git a/bindings/Delphi/native/MHashDelphi384.vcxproj b/bindings/Delphi/native/MHashDelphi384.vcxproj
deleted file mode 100644 (file)
index 8a96ff4..0000000
+++ /dev/null
@@ -1,188 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <ItemGroup Label="ProjectConfigurations">
-    <ProjectConfiguration Include="Debug|Win32">
-      <Configuration>Debug</Configuration>
-      <Platform>Win32</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Release|Win32">
-      <Configuration>Release</Configuration>
-      <Platform>Win32</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Debug|x64">
-      <Configuration>Debug</Configuration>
-      <Platform>x64</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Release|x64">
-      <Configuration>Release</Configuration>
-      <Platform>x64</Platform>
-    </ProjectConfiguration>
-  </ItemGroup>
-  <ItemGroup>
-    <ClCompile Include="src\dllmain.cpp" />
-    <ClCompile Include="src\MHashDelphi384.cpp" />
-  </ItemGroup>
-  <PropertyGroup Label="Globals">
-    <ProjectGuid>{1E5E659E-F63B-4C04-BA22-371783C54D85}</ProjectGuid>
-    <Keyword>Win32Proj</Keyword>
-    <RootNamespace>MHashDelphi384</RootNamespace>
-    <WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
-    <ProjectName>MHashDelphi384</ProjectName>
-  </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
-    <ConfigurationType>DynamicLibrary</ConfigurationType>
-    <UseDebugLibraries>true</UseDebugLibraries>
-    <PlatformToolset>v140_xp</PlatformToolset>
-    <CharacterSet>Unicode</CharacterSet>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
-    <ConfigurationType>DynamicLibrary</ConfigurationType>
-    <UseDebugLibraries>false</UseDebugLibraries>
-    <PlatformToolset>v140_xp</PlatformToolset>
-    <WholeProgramOptimization>true</WholeProgramOptimization>
-    <CharacterSet>Unicode</CharacterSet>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
-    <ConfigurationType>DynamicLibrary</ConfigurationType>
-    <UseDebugLibraries>true</UseDebugLibraries>
-    <PlatformToolset>v140_xp</PlatformToolset>
-    <CharacterSet>Unicode</CharacterSet>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
-    <ConfigurationType>DynamicLibrary</ConfigurationType>
-    <UseDebugLibraries>false</UseDebugLibraries>
-    <PlatformToolset>v140_xp</PlatformToolset>
-    <WholeProgramOptimization>true</WholeProgramOptimization>
-    <CharacterSet>Unicode</CharacterSet>
-  </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
-  <ImportGroup Label="ExtensionSettings">
-  </ImportGroup>
-  <ImportGroup Label="Shared">
-  </ImportGroup>
-  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-  </ImportGroup>
-  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-  </ImportGroup>
-  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-  </ImportGroup>
-  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-  </ImportGroup>
-  <PropertyGroup Label="UserMacros" />
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
-    <LinkIncremental>true</LinkIncremental>
-    <OutDir>$(SolutionDir)\bin\$(PlatformShortName)\$(Configuration)\</OutDir>
-    <IntDir>$(SolutionDir)\obj\$(PlatformShortName)\$(Configuration)\</IntDir>
-    <TargetName>$(ProjectName).$(PlatformShortName)</TargetName>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
-    <LinkIncremental>true</LinkIncremental>
-    <OutDir>$(SolutionDir)\bin\$(PlatformShortName)\$(Configuration)\</OutDir>
-    <IntDir>$(SolutionDir)\obj\$(PlatformShortName)\$(Configuration)\</IntDir>
-    <TargetName>$(ProjectName).$(PlatformShortName)</TargetName>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
-    <LinkIncremental>false</LinkIncremental>
-    <OutDir>$(SolutionDir)\bin\$(PlatformShortName)\$(Configuration)\</OutDir>
-    <IntDir>$(SolutionDir)\obj\$(PlatformShortName)\$(Configuration)\</IntDir>
-    <TargetName>$(ProjectName).$(PlatformShortName)</TargetName>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
-    <LinkIncremental>false</LinkIncremental>
-    <OutDir>$(SolutionDir)\bin\$(PlatformShortName)\$(Configuration)\</OutDir>
-    <IntDir>$(SolutionDir)\obj\$(PlatformShortName)\$(Configuration)\</IntDir>
-    <TargetName>$(ProjectName).$(PlatformShortName)</TargetName>
-  </PropertyGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
-    <ClCompile>
-      <PrecompiledHeader>
-      </PrecompiledHeader>
-      <WarningLevel>Level3</WarningLevel>
-      <Optimization>Disabled</Optimization>
-      <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;CONSOLEAPPLICATION1_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories>$(SolutionDir)\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-    </ClCompile>
-    <Link>
-      <SubSystem>Windows</SubSystem>
-      <GenerateDebugInformation>true</GenerateDebugInformation>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
-    <ClCompile>
-      <PrecompiledHeader>
-      </PrecompiledHeader>
-      <WarningLevel>Level3</WarningLevel>
-      <Optimization>Disabled</Optimization>
-      <PreprocessorDefinitions>_DEBUG;_WINDOWS;_USRDLL;CONSOLEAPPLICATION1_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories>$(SolutionDir)\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-    </ClCompile>
-    <Link>
-      <SubSystem>Windows</SubSystem>
-      <GenerateDebugInformation>true</GenerateDebugInformation>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
-    <ClCompile>
-      <WarningLevel>Level3</WarningLevel>
-      <PrecompiledHeader>
-      </PrecompiledHeader>
-      <Optimization>Full</Optimization>
-      <FunctionLevelLinking>true</FunctionLevelLinking>
-      <IntrinsicFunctions>true</IntrinsicFunctions>
-      <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;CONSOLEAPPLICATION1_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories>$(SolutionDir)\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
-      <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
-      <OmitFramePointers>true</OmitFramePointers>
-      <WholeProgramOptimization>true</WholeProgramOptimization>
-      <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
-      <BufferSecurityCheck>false</BufferSecurityCheck>
-      <FloatingPointModel>Fast</FloatingPointModel>
-      <CreateHotpatchableImage>false</CreateHotpatchableImage>
-      <EnableEnhancedInstructionSet>StreamingSIMDExtensions</EnableEnhancedInstructionSet>
-    </ClCompile>
-    <Link>
-      <SubSystem>Windows</SubSystem>
-      <EnableCOMDATFolding>true</EnableCOMDATFolding>
-      <OptimizeReferences>true</OptimizeReferences>
-      <GenerateDebugInformation>No</GenerateDebugInformation>
-      <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
-    <ClCompile>
-      <WarningLevel>Level3</WarningLevel>
-      <PrecompiledHeader>
-      </PrecompiledHeader>
-      <Optimization>Full</Optimization>
-      <FunctionLevelLinking>true</FunctionLevelLinking>
-      <IntrinsicFunctions>true</IntrinsicFunctions>
-      <PreprocessorDefinitions>NDEBUG;_WINDOWS;_USRDLL;CONSOLEAPPLICATION1_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories>$(SolutionDir)\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
-      <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
-      <OmitFramePointers>true</OmitFramePointers>
-      <WholeProgramOptimization>true</WholeProgramOptimization>
-      <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
-      <BufferSecurityCheck>false</BufferSecurityCheck>
-      <FloatingPointModel>Fast</FloatingPointModel>
-      <CreateHotpatchableImage>false</CreateHotpatchableImage>
-      <EnableEnhancedInstructionSet>NotSet</EnableEnhancedInstructionSet>
-    </ClCompile>
-    <Link>
-      <SubSystem>Windows</SubSystem>
-      <EnableCOMDATFolding>true</EnableCOMDATFolding>
-      <OptimizeReferences>true</OptimizeReferences>
-      <GenerateDebugInformation>No</GenerateDebugInformation>
-      <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
-    </Link>
-  </ItemDefinitionGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
-  <ImportGroup Label="ExtensionTargets">
-  </ImportGroup>
-</Project>
\ No newline at end of file
diff --git a/bindings/Delphi/native/MHashDelphi384.vcxproj.filters b/bindings/Delphi/native/MHashDelphi384.vcxproj.filters
deleted file mode 100644 (file)
index 5fb5013..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <ItemGroup>
-    <ClCompile Include="src\MHashDelphi384.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="src\dllmain.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <Filter Include="Source Files">
-      <UniqueIdentifier>{28444a57-9f58-4f43-a2b5-2d1df13a3b59}</UniqueIdentifier>
-    </Filter>
-  </ItemGroup>
-</Project>
\ No newline at end of file
diff --git a/bindings/Delphi/native/src/MHashDelphi384.cpp b/bindings/Delphi/native/src/MHashDelphi384.cpp
deleted file mode 100644 (file)
index a7cb4cc..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-/* ---------------------------------------------------------------------------------------------- */
-/* MHash-384 - Language bindings for Delphi                                                       */
-/* Copyright(c) 2016-2017 LoRd_MuldeR <mulder2@gmx.de>                                            */
-/*                                                                                                */
-/* Permission is hereby granted, free of charge, to any person obtaining a copy of this software  */
-/* and associated documentation files (the "Software"), to deal in the Software without           */
-/* restriction, including without limitation the rights to use, copy, modify, merge, publish,     */
-/* distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the  */
-/* Software is furnished to do so, subject to the following conditions:                           */
-/*                                                                                                */
-/* The above copyright notice and this permission notice shall be included in all copies or       */
-/* substantial portions of the Software.                                                          */
-/*                                                                                                */
-/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING  */
-/* BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND     */
-/* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   */
-/* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, */
-/* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.        */
-/* ---------------------------------------------------------------------------------------------- */
-
-#define MHASH_DISABLE_STL 1
-#include <mhash_384.h>
-
-#ifdef __cplusplus
-#define EXPORT_FUNC(NAME,TYPE,...) extern "C" __declspec(dllexport) TYPE NAME(__VA_ARGS__)
-#else
-#define EXPORT_FUNC(NAME,TYPE,...) __declspec(dllexport) TYPE NAME(__VA_ARGS__)
-#endif
-
-EXPORT_FUNC(mhash384_create, uintptr_t, void)
-{
-       return (uintptr_t) new mhash_384::MHash384();
-}
-
-EXPORT_FUNC(mhash384_update, void, const uintptr_t instance, uint8_t *const input, const size_t offset, const size_t len)
-{
-       reinterpret_cast<mhash_384::MHash384*>(instance)->update(input + offset, len);
-}
-
-EXPORT_FUNC(mhash384_result, void, const uintptr_t instance, uint8_t *const buffer)
-{
-       reinterpret_cast<mhash_384::MHash384*>(instance)->finalize(buffer);
-}
-
-EXPORT_FUNC(mhash384_freeup, void, const uintptr_t instance)
-{
-       delete reinterpret_cast<mhash_384::MHash384*>(instance);
-}
-
-EXPORT_FUNC(mhash384_getver, void, uint32_t *const major, uint32_t *const minor, uint32_t *const patch)
-{
-       uint16_t version_major, version_minor, version_patch;
-       mhash_384::MHash384::version(version_major, version_minor, version_patch);
-       *major = static_cast<uint16_t>(version_major);
-       *minor = static_cast<uint16_t>(version_minor);
-       *patch = static_cast<uint16_t>(version_patch);
-}
diff --git a/bindings/Delphi/native/src/dllmain.cpp b/bindings/Delphi/native/src/dllmain.cpp
deleted file mode 100644 (file)
index d408c2d..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-/* ---------------------------------------------------------------------------------------------- */
-/* MHash-384 - Language bindings for Delphi                                                       */
-/* Copyright(c) 2016-2017 LoRd_MuldeR <mulder2@gmx.de>                                            */
-/*                                                                                                */
-/* Permission is hereby granted, free of charge, to any person obtaining a copy of this software  */
-/* and associated documentation files (the "Software"), to deal in the Software without           */
-/* restriction, including without limitation the rights to use, copy, modify, merge, publish,     */
-/* distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the  */
-/* Software is furnished to do so, subject to the following conditions:                           */
-/*                                                                                                */
-/* The above copyright notice and this permission notice shall be included in all copies or       */
-/* substantial portions of the Software.                                                          */
-/*                                                                                                */
-/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING  */
-/* BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND     */
-/* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   */
-/* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, */
-/* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.        */
-/* ---------------------------------------------------------------------------------------------- */
-
-#define WIN32_LEAN_AND_MEAN 1
-#include <Windows.h>
-
-BOOL APIENTRY DllMain(HMODULE hModule, DWORD  ul_reason_for_call, LPVOID lpReserved)
-{
-       switch (ul_reason_for_call)
-       {
-       case DLL_PROCESS_ATTACH:
-       case DLL_THREAD_ATTACH:
-       case DLL_THREAD_DETACH:
-       case DLL_PROCESS_DETACH:
-               break;
-       }
-       return TRUE;
-}