OSDN Git Service

Updated Delphi language bindings.
[mhash384/mhash384.git] / bindings / Delphi / native / src / dllmain.cpp
1 /* ---------------------------------------------------------------------------------------------- */
2 /* MHash-384 - Language bindings for Delphi                                                       */
3 /* Copyright(c) 2016 LoRd_MuldeR <mulder2@gmx.de>                                                 */
4 /*                                                                                                */
5 /* Permission is hereby granted, free of charge, to any person obtaining a copy of this software  */
6 /* and associated documentation files (the "Software"), to deal in the Software without           */
7 /* restriction, including without limitation the rights to use, copy, modify, merge, publish,     */
8 /* distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the  */
9 /* Software is furnished to do so, subject to the following conditions:                           */
10 /*                                                                                                */
11 /* The above copyright notice and this permission notice shall be included in all copies or       */
12 /* substantial portions of the Software.                                                          */
13 /*                                                                                                */
14 /* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING  */
15 /* BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND     */
16 /* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   */
17 /* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, */
18 /* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.        */
19 /* ---------------------------------------------------------------------------------------------- */
20
21 #define WIN32_LEAN_AND_MEAN 1
22 #include <Windows.h>
23
24 BOOL APIENTRY DllMain(HMODULE hModule, DWORD  ul_reason_for_call, LPVOID lpReserved)
25 {
26         switch (ul_reason_for_call)
27         {
28         case DLL_PROCESS_ATTACH:
29         case DLL_THREAD_ATTACH:
30         case DLL_THREAD_DETACH:
31         case DLL_PROCESS_DETACH:
32                 break;
33         }
34         return TRUE;
35 }