From 696f9321abbee611fa6a6d54da488a6eb7666b5a Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 13:01:53 +0000 Subject: Utilisateur : Fcolin Date : 16/06/00 Heure : 10:14 Créé (vss 1) --- Bus/Ivy/IvyDllMain.cpp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Bus/Ivy/IvyDllMain.cpp (limited to 'Bus') diff --git a/Bus/Ivy/IvyDllMain.cpp b/Bus/Ivy/IvyDllMain.cpp new file mode 100644 index 0000000..ac1a854 --- /dev/null +++ b/Bus/Ivy/IvyDllMain.cpp @@ -0,0 +1,29 @@ +// libIvy.cpp : Defines the initialization routines for the DLL. +// + +#include "stdafx.h" + + +extern "C" int APIENTRY +DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved) +{ + // Remove this if you use lpReserved + UNREFERENCED_PARAMETER(lpReserved); + + if (dwReason == DLL_PROCESS_ATTACH) + { + TRACE("LIBIVY.DLL Initializing!\n"); + + // Extension DLL one-time initialization + //if (WSAInit) + // return 0; + + + } + else if (dwReason == DLL_PROCESS_DETACH) + { + TRACE("LIBIVY.DLL Terminating!\n"); + // Terminate the library before destructors are called + } + return 1; // ok +} -- cgit v1.1