equal
deleted
inserted
replaced
|
1 /** |
|
2 * Copyright (c) 1996-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 "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 * Initialise Comm Server |
|
16 * Written by AdamG, October 1996 |
|
17 * |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 |
|
23 /** |
|
24 @file COMINIT.CPP |
|
25 @internalComponent |
|
26 */ |
|
27 |
|
28 #include <e32hal.h> |
|
29 |
|
30 /** |
|
31 @internalComponent |
|
32 */ |
|
33 #if defined (__WINS__) |
|
34 #define PDD_NAME _L("ECDRV") |
|
35 #define LDD_NAME _L("ECOMM") |
|
36 #define LDD_FNAME _L("ECOMM") |
|
37 #endif |
|
38 |
|
39 /** |
|
40 @internalComponent |
|
41 */ |
|
42 GLDEF_C void CommInitL() |
|
43 { |
|
44 #if defined (__WINS__) |
|
45 |
|
46 TInt err=User::LoadPhysicalDevice(PDD_NAME); |
|
47 if (err!=KErrNone && err!=KErrAlreadyExists) |
|
48 User::Leave(err); |
|
49 err=User::LoadLogicalDevice(LDD_NAME); |
|
50 if (err!=KErrNone && err!=KErrAlreadyExists) |
|
51 User::Leave(err); |
|
52 #endif |
|
53 } |
|
54 |