Symbian3/SDK/Source/GUID-914DD950-4332-5F23-B725-F4D330DB19EB.dita
author Dominic Pinkman <Dominic.Pinkman@Nokia.com>
Thu, 21 Jan 2010 18:18:20 +0000
changeset 0 89d6a7a84779
permissions -rw-r--r--
Initial contribution of Documentation_content according to Feature bug 1266 bug 1268 bug 1269 bug 1270 bug 1372 bug 1374 bug 1375 bug 1379 bug 1380 bug 1381 bug 1382 bug 1383 bug 1385

<?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>