diff -r 000000000000 -r 95b198f216e5 omadrm/drmengine/server/src/DRMServerStarter.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/omadrm/drmengine/server/src/DRMServerStarter.cpp Thu Dec 17 08:52:27 2009 +0200 @@ -0,0 +1,167 @@ +/* +* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: This file is used only if RDRMRightsClient starts the +* DRM Rights Database server. +* +*/ + +// INCLUDE FILES +#include +#include +#include + +#ifdef RD_MULTIPLE_DRIVE +#include +#endif + +#include "drmengineclientserver.h" + +// EXTERNAL DATA STRUCTURES +// EXTERNAL FUNCTION PROTOTYPES +// CONSTANTS +#ifdef __WINS__ +LOCAL_C const TUint KServerMinHeapSize = 0x1000; +LOCAL_C const TUint KServerMaxHeapSize = 0x300000; +_LIT( KRightsServerFile, "RightsServer" ); +#else + +#ifdef RD_MULTIPLE_DRIVE +_LIT( KRightsServerFile, "%c:\\RightsServer.exe" ); +#else +_LIT( KRightsServerFile, "e:\\RightsServer.exe" ); +#endif +#endif + +// MACROS +// LOCAL CONSTANTS AND MACROS +// MODULE DATA STRUCTURES +// LOCAL FUNCTION PROTOTYPES +LOCAL_C TInt CreateServer( void ); + +// FORWARD DECLARATIONS + +// ============================= LOCAL FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// CreateServer launches the DRM Rights server [process (THUMB/ARMI)|thread (WINS)]. +// Returns: KErrNone: No errors. +//