sl@0: // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // e32\include\e32wins.h sl@0: // sl@0: // WARNING: This file contains some APIs which are internal and are subject sl@0: // to change without notice. Such APIs should therefore not be used sl@0: // outside the Kernel and Hardware Services package. sl@0: // sl@0: sl@0: #ifndef __E32WINS_H__ sl@0: #define __E32WINS_H__ sl@0: sl@0: /** @file sl@0: @internalTechnology sl@0: */ sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: #define MAX_PATH 260 sl@0: sl@0: IMPORT_C void BootEpoc(TBool aAutoRun); sl@0: sl@0: inline TInt MapEmulatedFileName(TDes& aBuffer, const TDesC& aFilename) sl@0: { sl@0: TPtr8 ptrBuffer((TUint8*)aBuffer.Ptr(),aBuffer.MaxLength()<<1); sl@0: TPtrC8 ptrFilename((TUint8*)aFilename.Ptr(), aFilename.Size()); sl@0: TInt r = UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalMapFilename,(TAny*)&ptrFilename,&ptrBuffer); sl@0: aBuffer.SetLength(ptrBuffer.Length()>>1); sl@0: return r; sl@0: } sl@0: sl@0: inline TInt EmulatorFlip(TEmulatorFlip aFlip) sl@0: {return UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalSetFlip,(TAny*)aFlip,0);} sl@0: sl@0: inline TInt EmulatorFlip(TEmulatorFlip aFlip, TInt aScreenNo) sl@0: {return UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalSetFlip,(TAny*)aFlip,(TAny*)aScreenNo);} sl@0: sl@0: inline void EmulatorColorDepth(TUint& aDepths) sl@0: {UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalColorDepth,(TAny*)&aDepths,0);} sl@0: sl@0: inline void EmulatorColorDepth(TUint& aDepths, TInt aScreenNo) sl@0: {UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalColorDepth,(TAny*)&aDepths,(TAny*)aScreenNo);} sl@0: sl@0: inline void EmulatorDiskSpeed(TInt& aReadSpeed, TInt& aWriteSpeed) sl@0: { sl@0: UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalIntProperty,(TAny*)"DiskRead",&aReadSpeed); sl@0: UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalIntProperty,(TAny*)"DiskWrite",&aWriteSpeed); sl@0: } sl@0: sl@0: inline TBool EmulatorTextShell() sl@0: { sl@0: TBool val = EFalse; sl@0: UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalBoolProperty,(TAny*)"TextShell",&val); sl@0: return val; sl@0: } sl@0: sl@0: inline TBool EmulatorNoGui() sl@0: { sl@0: TBool val = EFalse; sl@0: UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalBoolProperty,(TAny*)"NoGui",&val); sl@0: return val; sl@0: } sl@0: sl@0: inline TBool EmulatorMiniGui() sl@0: { sl@0: TBool minigui = EFalse; sl@0: TInt startupmode = 0; sl@0: UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalBoolProperty,(TAny*)"MiniGui",&minigui); sl@0: UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalIntProperty,(TAny*)"StartupMode",&startupmode); sl@0: return minigui || startupmode == 8; sl@0: } sl@0: sl@0: inline const char* EmulatorAutoRun() sl@0: { sl@0: const char* val = NULL; sl@0: UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalStringProperty,(TAny*)"AutoRun",&val); sl@0: return val; sl@0: } sl@0: sl@0: inline const char* EmulatorCommandLine() sl@0: { sl@0: const char* val = NULL; sl@0: UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalStringProperty,(TAny*)"CommandLine",&val); sl@0: return val; sl@0: } sl@0: sl@0: #endif sl@0: