|
1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // f32test\loader\exetifc.h |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef __EXETIFC_H__ |
|
19 #define __EXETIFC_H__ |
|
20 #include <e32base.h> |
|
21 #include "dlltifc.h" |
|
22 |
|
23 class RLoaderTest : public RSessionBase |
|
24 { |
|
25 public: |
|
26 enum TMessage |
|
27 { |
|
28 EMsgLoadDll, |
|
29 EMsgGetExeDepList, |
|
30 EMsgCloseDll, |
|
31 EMsgCallBlkI, |
|
32 EMsgCallRBlkI, |
|
33 EMsgGetCDList, |
|
34 EMsgCheckReadable, |
|
35 EMsgExit, |
|
36 }; |
|
37 public: |
|
38 TInt Connect(TInt aExeNum); |
|
39 TInt Connect(TInt aExeNum, TInt aSuffix); |
|
40 TInt GetExeDepList(SDllInfo* aInfo); |
|
41 TInt GetCDList(SDllInfo* aInfo); |
|
42 TInt LoadDll(TInt aDllNum, SDllInfo* aInfo); |
|
43 TInt CallBlkI(TInt aHandle, TInt aIn); |
|
44 TInt CallRBlkI(TInt aHandle, TInt aIn); |
|
45 TInt CloseDll(TInt aHandle); |
|
46 TInt CheckReadable(TLinAddr aAddr); |
|
47 TInt Exit(); |
|
48 }; |
|
49 |
|
50 GLREF_C TInt LoadExe(TInt aModuleNum, TInt aSuffix, RProcess& aProcess, TUint32& aTimeTaken); |
|
51 |
|
52 #ifdef __WINS__ |
|
53 static const TUint8 SpecialDriveList[] = |
|
54 { |
|
55 // drives A-Z |
|
56 0,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 |
|
57 }; |
|
58 #elif defined(__X86__) |
|
59 static const TUint8 SpecialDriveList[] = |
|
60 { |
|
61 // drives C,A,B,D only |
|
62 2,0,1,3 |
|
63 }; |
|
64 #else |
|
65 static const TUint8 SpecialDriveList[] = |
|
66 { |
|
67 // drives A,B,D-Y,C,Z |
|
68 0,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,2,25 |
|
69 }; |
|
70 #endif |
|
71 #endif |