kerneltest/e32utils/setcap/setcap.h
changeset 0 a41df078684a
equal deleted inserted replaced
-1:000000000000 0:a41df078684a
       
     1 // Copyright (c) 1998-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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // e32utils\setcap\setcap.h
       
    15 // 
       
    16 //
       
    17 
       
    18 #ifndef __SETCAP_H__
       
    19 
       
    20 #if defined(__WINS__) || defined(__TOOLS__)
       
    21 #include <e32wins.h>
       
    22 #include <emulator.h>
       
    23 #include <stdlib.h>
       
    24 #endif
       
    25 
       
    26 #ifndef __WINS__
       
    27 #include <f32image.h>
       
    28 #endif
       
    29 
       
    30 __ASSERT_COMPILE(sizeof(SCapabilitySet)==sizeof(TInt64));  // When parsing capabilities we assume that it's a 64bit quantity
       
    31 
       
    32 GLREF_D TBool CapabilitySet;
       
    33 GLREF_D SCapabilitySet Capability;
       
    34 GLREF_D TBool SecureIdSet;
       
    35 GLREF_D TSecureId SecureId;
       
    36 GLREF_D TBool VendorIdSet;
       
    37 GLREF_D TVendorId VendorId;
       
    38 
       
    39 #ifndef __EPOC32__
       
    40 GLREF_C TInt SetCap(HANDLE hFile);
       
    41 #endif //!__EPOC32__
       
    42 
       
    43 #ifndef __WINS__
       
    44 GLREF_C TInt SetCap(E32ImageHeader* h);
       
    45 #endif //!__WINS__
       
    46 
       
    47 #endif //__SETCAP_H__