blob: ac1a85482425aa2a0a570cf2aaeb5beac05b3c64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
}
|