Browse Subversion Repository
Diff of /trunk/TTProxy/TTProxy.cpp
Parent Directory
| Revision Log
| Patch
1 |
// ttx.cpp : DLL アプリケーション用のエントリ ポイントを定義します。 |
// ttx.cpp : DLL アプリケーション用のエントリ ポイントを定義します。 |
2 |
// |
// |
3 |
|
|
4 |
#include "stdafx.h" |
#include "stdafx.h" |
5 |
|
|
6 |
#include "resource.h" |
#include "resource.h" |
7 |
|
|
8 |
#include "TTProxy.h" |
#include "TTProxy.h" |
9 |
|
|
10 |
#include "compat_w95.h" |
#include "compat_w95.h" |
11 |
|
|
12 |
static HINSTANCE myInstance = NULL; |
static HINSTANCE myInstance = NULL; |
13 |
|
|
14 |
namespace yebisuya { |
namespace yebisuya { |
15 |
HINSTANCE GetInstanceHandle() { |
HINSTANCE GetInstanceHandle() { |
16 |
return myInstance; |
return myInstance; |
17 |
} |
} |
18 |
} |
} |
19 |
|
|
20 |
BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved) { |
BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved) { |
21 |
switch (reason) { |
switch (reason) { |
22 |
case DLL_PROCESS_ATTACH: |
case DLL_PROCESS_ATTACH: |
23 |
myInstance = instance; |
myInstance = instance; |
24 |
return TTProxy::getInstance().processAttach(); |
return TTProxy::getInstance().processAttach(); |
25 |
case DLL_PROCESS_DETACH: |
case DLL_PROCESS_DETACH: |
26 |
return TTProxy::getInstance().processDetach(); |
return TTProxy::getInstance().processDetach(); |
27 |
case DLL_THREAD_ATTACH: |
case DLL_THREAD_ATTACH: |
28 |
return TTProxy::getInstance().threadAttach(); |
return TTProxy::getInstance().threadAttach(); |
29 |
case DLL_THREAD_DETACH: |
case DLL_THREAD_DETACH: |
30 |
return TTProxy::getInstance().threadDetach(); |
return TTProxy::getInstance().threadDetach(); |
31 |
} |
} |
32 |
return FALSE; |
return FALSE; |
33 |
} |
} |
34 |
|
|
|
Legend:
Removed from v.3226 |
|
changed lines |
|
Added in v.3227 |
|
|
|