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 |
|
18 /* |
|
19 * |
|
20 * This file starts the HOSTFS local drive mapping |
|
21 * |
|
22 */ |
|
23 |
|
24 #include <e32std.h> |
|
25 #include "estart.h" |
|
26 |
|
27 #define __ENABLE_HOSTFS |
|
28 |
|
29 /*! |
|
30 * Customised estart class |
|
31 */ |
|
32 class TSyborgFSStartup : public TFSStartup |
|
33 { |
|
34 public: |
|
35 #ifdef __ENABLE_HOSTFS |
|
36 virtual void InitHostFS(); |
|
37 #endif |
|
38 }; |
|
39 |
|
40 |
|
41 #ifdef __ENABLE_HOSTFS |
|
42 |
|
43 /* |
|
44 * |
|
45 * Run the Host FS starter program |
|
46 * |
|
47 */ |
|
48 void TSyborgFSStartup::InitHostFS() |
|
49 { |
|
50 _LIT(KHostFSMounter, "z:\\sys\\bin\\SVPHOSTFS.EXE"); |
|
51 |
|
52 RProcess ws; |
|
53 TInt r=ws.Create(KHostFSMounter, KNullDesC); |
|
54 if (r == KErrNone) |
|
55 { |
|
56 TRequestStatus stat; |
|
57 ws.Rendezvous(stat); |
|
58 ws.Resume(); |
|
59 User::WaitForRequest(stat); // wait for start or death |
|
60 ws.Close(); |
|
61 } |
|
62 } |
|
63 #endif |
|
64 |
|
65 |
|
66 /*! |
|
67 * Estart entry point |
|
68 */ |
|
69 GLDEF_C TInt E32Main() |
|
70 { |
|
71 |
|
72 TSyborgFSStartup fsStart; |
|
73 fsStart.Init(); |
|
74 |
|
75 fsStart.Run(); |
|
76 #ifdef __ENABLE_HOSTFS |
|
77 fsStart.InitHostFS(); |
|
78 #endif |
|
79 fsStart.StartSystem(); |
|
80 |
|
81 fsStart.Close(); |
|
82 return(0); |
|
83 } |