bluetooth/btexample/example/commdrvloader/commdrvloader.cpp
changeset 0 29b1cd4cb562
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     1 // Copyright (c) 2004-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 "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 //
       
    15 
       
    16 #include <e32std.h>
       
    17 
       
    18 
       
    19 TInt E32Main()
       
    20 /**
       
    21 Load the wins device drivers so the Bluetooth HCI layer can use them
       
    22 */
       
    23 	{
       
    24 #ifdef __WINS__
       
    25 	TInt err;
       
    26 	_LIT(COMM_PDD_NAME, "ECDRV");
       
    27 	_LIT(COMM_LDD_NAME, "ECOMM");
       
    28 	err = User::LoadLogicalDevice(COMM_LDD_NAME);
       
    29 	if(err)
       
    30 		{
       
    31 		return err;
       
    32 		}
       
    33 		
       
    34 	err = User::LoadPhysicalDevice(COMM_PDD_NAME);
       
    35 	if(err)
       
    36 		{
       
    37 		return err;
       
    38 		}
       
    39 		
       
    40 	return KErrNone;
       
    41 #else
       
    42 	return KErrNotSupported;
       
    43 #endif	
       
    44 	}