kerneltest/e32utils/setcap/setcap.h
author John Imhofe
Mon, 19 Oct 2009 15:55:17 +0100
changeset 0 a41df078684a
permissions -rw-r--r--
Convert Kernelhwsrv package from SFL to EPL kernel\eka\compsupp is subject to the ARM EABI LICENSE userlibandfileserver\fatfilenameconversionplugins\unicodeTables is subject to the Unicode license kernel\eka\kernel\zlib is subject to the zlib license

// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of the License "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:
// e32utils\setcap\setcap.h
// 
//

#ifndef __SETCAP_H__

#if defined(__WINS__) || defined(__TOOLS__)
#include <e32wins.h>
#include <emulator.h>
#include <stdlib.h>
#endif

#ifndef __WINS__
#include <f32image.h>
#endif

__ASSERT_COMPILE(sizeof(SCapabilitySet)==sizeof(TInt64));  // When parsing capabilities we assume that it's a 64bit quantity

GLREF_D TBool CapabilitySet;
GLREF_D SCapabilitySet Capability;
GLREF_D TBool SecureIdSet;
GLREF_D TSecureId SecureId;
GLREF_D TBool VendorIdSet;
GLREF_D TVendorId VendorId;

#ifndef __EPOC32__
GLREF_C TInt SetCap(HANDLE hFile);
#endif //!__EPOC32__

#ifndef __WINS__
GLREF_C TInt SetCap(E32ImageHeader* h);
#endif //!__WINS__

#endif //__SETCAP_H__