equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 // TCFProtOST.cpp : Defines the entry point for the DLL application. |
|
18 // |
|
19 |
|
20 #include "stdafx.h" |
|
21 #include "TCFProtOST.h" |
|
22 #include "OSTProtocol.h" |
|
23 |
|
24 static const char* pProtocol="ost"; |
|
25 static COSTProtocol* pProtocolClass=NULL; |
|
26 |
|
27 BOOL APIENTRY DllMain( HANDLE hModule, |
|
28 DWORD ul_reason_for_call, |
|
29 LPVOID lpReserved |
|
30 ) |
|
31 { |
|
32 switch (ul_reason_for_call) |
|
33 { |
|
34 case DLL_PROCESS_ATTACH: |
|
35 case DLL_THREAD_ATTACH: |
|
36 case DLL_THREAD_DETACH: |
|
37 case DLL_PROCESS_DETACH: |
|
38 break; |
|
39 } |
|
40 return TRUE; |
|
41 } |
|
42 |
|
43 TCFPROTOST_API const char* RegisterProtocol() |
|
44 { |
|
45 return pProtocol; |
|
46 } |
|
47 |
|
48 TCFPROTOST_API CBaseProtocol* CreateProtocol() |
|
49 { |
|
50 pProtocolClass = new COSTProtocol(); |
|
51 return pProtocolClass; |
|
52 } |