Update contrib.
1 // Copyright (c) 2002-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 the License "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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // e32test\secure\d_sldd.h
21 #ifndef __KERNEL_MODE__
31 class RLddTest : public RBusLogicalChannel
38 EGetKernelConfigFlags,
39 ESetKernelConfigFlags,
40 ESetDisabledCapabilities0,
49 ETest1Value = 0x07654321,
55 TVendorId iProcessVID;
57 TSecureId iProcessSID;
61 inline TInt OpenLocal();
62 inline TInt OpenProtected();
64 inline void GetIds(RLddTest::TIds& aIds);
65 inline TUint32 GetKernelConfigFlags();
66 inline void SetKernelConfigFlags(TUint32 aNewFlags);
67 inline void SetDisabledCapabilities0(TUint32 aNewWord0);
68 inline void KernelTestData(TUint32*& aAddress, TUint32& aData);
69 inline void GetSecureInfos(TSecurityInfo* aThreadSecureInfo, TSecurityInfo* aProcessSecureInfo);
72 #ifndef __KERNEL_MODE__
73 inline TInt RLddTest::OpenLocal()
74 { return DoCreate(_L("D_SLDD"),TVersion(0,1,1),KNullUnit,NULL,NULL); }
75 inline TInt RLddTest::OpenProtected()
76 { return DoCreate(_L("D_SLDD"),TVersion(0,1,1),KNullUnit,NULL,NULL,EOwnerThread,ETrue); }
77 inline TInt RLddTest::Test1()
78 { return DoControl(EControlTest1); }
79 inline void RLddTest::GetIds(RLddTest::TIds& aIds)
80 { DoControl(EGetIds,&aIds); }
81 inline TUint32 RLddTest::GetKernelConfigFlags()
82 { return DoControl(EGetKernelConfigFlags); }
83 inline void RLddTest::SetKernelConfigFlags(TUint32 aNewFlags)
84 { DoControl(ESetKernelConfigFlags, (TAny*)aNewFlags); }
85 inline void RLddTest::SetDisabledCapabilities0(TUint32 aNewWord0)
86 { DoControl(ESetDisabledCapabilities0, (TAny*)aNewWord0); }
87 inline void RLddTest::KernelTestData(TUint32*& aAddress, TUint32& aData)
88 { DoControl(EKernelTestData, &aAddress,&aData); }
89 inline void RLddTest::GetSecureInfos(TSecurityInfo* aThreadSecureInfo, TSecurityInfo* aProcessSecureInfo)
90 { DoControl(EGetSecureInfos, aThreadSecureInfo,aProcessSecureInfo); }