blob: c3f10a3d0bb58efb999cc2330cd0e8c2b36c7116 (
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
|
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
#include "MsOutlookDll.h"
#include "MAPISession.h"
#include <jni.h>
JNIEXPORT BOOL APIENTRY DllMain(
HINSTANCE /*hDLL*/,
DWORD dwReason,
LPVOID /*lpReserved*/)
{
switch (dwReason)
{
case DLL_PROCESS_ATTACH:
MAPISession_initLock();
break;
case DLL_PROCESS_DETACH:
MAPISession_freeLock();
break;
}
return TRUE;
}
|