os/kernelhwsrv/kernel/eka/include/e32wins.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/kernelhwsrv/kernel/eka/include/e32wins.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,101 @@
     1.4 +// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of the License "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +// e32\include\e32wins.h
    1.18 +// 
    1.19 +// WARNING: This file contains some APIs which are internal and are subject
    1.20 +//          to change without notice. Such APIs should therefore not be used
    1.21 +//          outside the Kernel and Hardware Services package.
    1.22 +//
    1.23 +
    1.24 +#ifndef __E32WINS_H__
    1.25 +#define __E32WINS_H__
    1.26 +
    1.27 +/** @file
    1.28 +	@internalTechnology
    1.29 +*/
    1.30 +
    1.31 +#include <u32std.h>
    1.32 +#include <e32svr.h>
    1.33 +#include <winsdef.h>
    1.34 +
    1.35 +#define MAX_PATH          260
    1.36 +
    1.37 +IMPORT_C void BootEpoc(TBool aAutoRun);
    1.38 +
    1.39 +inline TInt MapEmulatedFileName(TDes& aBuffer, const TDesC& aFilename)
    1.40 +	{
    1.41 +	TPtr8 ptrBuffer((TUint8*)aBuffer.Ptr(),aBuffer.MaxLength()<<1);
    1.42 +	TPtrC8 ptrFilename((TUint8*)aFilename.Ptr(), aFilename.Size());
    1.43 +	TInt r = UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalMapFilename,(TAny*)&ptrFilename,&ptrBuffer);
    1.44 +	aBuffer.SetLength(ptrBuffer.Length()>>1);
    1.45 +	return r;
    1.46 +	}
    1.47 +
    1.48 +inline TInt EmulatorFlip(TEmulatorFlip aFlip)
    1.49 +	{return UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalSetFlip,(TAny*)aFlip,0);}
    1.50 +
    1.51 +inline TInt EmulatorFlip(TEmulatorFlip aFlip, TInt aScreenNo)
    1.52 +	{return UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalSetFlip,(TAny*)aFlip,(TAny*)aScreenNo);}
    1.53 +
    1.54 +inline void EmulatorColorDepth(TUint& aDepths)
    1.55 +	{UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalColorDepth,(TAny*)&aDepths,0);}
    1.56 +
    1.57 +inline void EmulatorColorDepth(TUint& aDepths, TInt aScreenNo)
    1.58 +	{UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalColorDepth,(TAny*)&aDepths,(TAny*)aScreenNo);}
    1.59 +
    1.60 +inline void EmulatorDiskSpeed(TInt& aReadSpeed, TInt& aWriteSpeed)
    1.61 +	{
    1.62 +	UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalIntProperty,(TAny*)"DiskRead",&aReadSpeed);
    1.63 +	UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalIntProperty,(TAny*)"DiskWrite",&aWriteSpeed);
    1.64 +	}
    1.65 +
    1.66 +inline TBool EmulatorTextShell()
    1.67 +	{
    1.68 +	TBool val = EFalse;
    1.69 +	UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalBoolProperty,(TAny*)"TextShell",&val);
    1.70 +	return val;
    1.71 +	}
    1.72 +
    1.73 +inline TBool EmulatorNoGui()
    1.74 +	{
    1.75 +	TBool val = EFalse;
    1.76 +	UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalBoolProperty,(TAny*)"NoGui",&val);
    1.77 +	return val;
    1.78 +	}
    1.79 +
    1.80 +inline TBool EmulatorMiniGui()
    1.81 +	{
    1.82 +	TBool minigui = EFalse;
    1.83 +	TInt startupmode = 0;
    1.84 +	UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalBoolProperty,(TAny*)"MiniGui",&minigui);
    1.85 +	UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalIntProperty,(TAny*)"StartupMode",&startupmode);
    1.86 +	return minigui || startupmode == 8;
    1.87 +	}
    1.88 +
    1.89 +inline const char* EmulatorAutoRun()
    1.90 +	{
    1.91 +	const char* val = NULL;
    1.92 +	UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalStringProperty,(TAny*)"AutoRun",&val);
    1.93 +	return val;
    1.94 +	}
    1.95 +
    1.96 +inline const char* EmulatorCommandLine()
    1.97 +	{
    1.98 +	const char* val = NULL;
    1.99 +	UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalStringProperty,(TAny*)"CommandLine",&val);
   1.100 +	return val;
   1.101 +	}
   1.102 +
   1.103 +#endif
   1.104 +