Browse Subversion Repository
Contents of /trunk/TTProxy/TTProxy.cpp
Parent Directory
| Revision Log
Revision 3227 -
( show annotations)
( download)
( as text)
Tue Mar 24 15:10:33 2009 UTC
(15 years, 2 months ago)
by maya
File MIME type: text/x-c++src
File size: 750 byte(s)
CVS から SVN へ移行: 改行コードを LF から CR+LF へ変換
1 |
// ttx.cpp : DLL アプリケーション用のエントリ ポイントを定義します。 |
2 |
// |
3 |
|
4 |
#include "stdafx.h" |
5 |
|
6 |
#include "resource.h" |
7 |
|
8 |
#include "TTProxy.h" |
9 |
|
10 |
#include "compat_w95.h" |
11 |
|
12 |
static HINSTANCE myInstance = NULL; |
13 |
|
14 |
namespace yebisuya { |
15 |
HINSTANCE GetInstanceHandle() { |
16 |
return myInstance; |
17 |
} |
18 |
} |
19 |
|
20 |
BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved) { |
21 |
switch (reason) { |
22 |
case DLL_PROCESS_ATTACH: |
23 |
myInstance = instance; |
24 |
return TTProxy::getInstance().processAttach(); |
25 |
case DLL_PROCESS_DETACH: |
26 |
return TTProxy::getInstance().processDetach(); |
27 |
case DLL_THREAD_ATTACH: |
28 |
return TTProxy::getInstance().threadAttach(); |
29 |
case DLL_THREAD_DETACH: |
30 |
return TTProxy::getInstance().threadDetach(); |
31 |
} |
32 |
return FALSE; |
33 |
} |
34 |
|
|