Symbian3/PDK/Source/GUID-914DD950-4332-5F23-B725-F4D330DB19EB.dita
author Dominic Pinkman <Dominic.Pinkman@Nokia.com>
Tue, 30 Mar 2010 11:56:28 +0100
changeset 5 f345bda72bc4
parent 3 46218c8b8afa
permissions -rw-r--r--
Week 12 contribution of PDK documentation_content. See release notes for details. Fixes Bug 2054, Bug 1583, Bug 381, Bug 390, Bug 463, Bug 1897, Bug 344, Bug 1319, Bug 394, Bug 1520, Bug 1522, Bug 1892"

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2007-2010 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: 
-->
<!DOCTYPE concept
  PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept id="GUID-914DD950-4332-5F23-B725-F4D330DB19EB" xml:lang="en"><title>UID2
and UID3 statements</title><prolog><metadata><keywords/></metadata></prolog><conbody>
<codeblock xml:space="preserve">&lt;uid2-statement&gt;
uid2-statement ::= 
UID2 &lt;uid-value&gt; &lt;uid3-statement&gt;
uid3-statement ::= 
UID3 &lt;uid-value&gt;</codeblock>
<p>Defines the second (<codeph>UID2</codeph>) and third (<codeph>UID3</codeph>)
UIDs for the resource file. The <varname>uid-value</varname> is a UID number
(or macro representing such a number).</p>
<p>At the start of a resource file, a UID triplet is stored. The first UID
of a resource file is always <codeph>0x101f4a6b</codeph>. By default, the
second UID is zero and the third UID is the resource file’s “offset”, i.e.
the twenty-bit integer generated from the resource file’s name. The defaults
can be overriden using these statements (or from a <codeph>START         RESOURCE</codeph> statement
in an mmp file).</p>
<p>Some clients of resource files read the UID values (see <xref href="GUID-AA6DEF11-6F23-3523-A9F7-F15DF918E1BA.dita#GUID-AA6DEF11-6F23-3523-A9F7-F15DF918E1BA/GUID-142C2031-3101-34E0-8A16-5410123C8D18"><apiname>RResourceFile::UidType()</apiname></xref>)
to test that a resource file is of a suitable type. In many other cases, the
reader of the resource file does not use the UID values, so there is no need
to use the <codeph>UID2/UID3</codeph> statements.</p>
<example><codeblock id="GUID-8B72E4F7-DD19-5BF7-A170-53388CF6BBF1" xml:space="preserve">UID2 KUidAppRegistrationResourceFile
UID3 0x10001234</codeblock></example>
</conbody></concept>