<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Oasis Feng &#187; DLL</title>
	<atom:link href="http://blog.oasisfeng.com/tag/dll/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.oasisfeng.com</link>
	<description>Challenge your imagination!</description>
	<lastBuildDate>Sun, 22 Aug 2010 18:15:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>Find the UIDs and Capabilities of Symbian EXE/DLL</title>
		<link>http://blog.oasisfeng.com/2007/12/14/find-uids-and-capabilities-of-symbian-executive/</link>
		<comments>http://blog.oasisfeng.com/2007/12/14/find-uids-and-capabilities-of-symbian-executive/#comments</comments>
		<pubDate>Fri, 14 Dec 2007 01:26:11 +0000</pubDate>
		<dc:creator>oasisfeng</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Symbian]]></category>
		<category><![CDATA[Capability]]></category>
		<category><![CDATA[DLL]]></category>
		<category><![CDATA[EXE]]></category>
		<category><![CDATA[Platform Security]]></category>
		<category><![CDATA[UID]]></category>

		<guid isPermaLink="false">http://blog.oasisfeng.com/2007/12/14/find-uids-and-capabilities-of-symbian-executive/</guid>
		<description><![CDATA[(1) Emulator Build (Win32 PE) First, find the start address of section &#8220;.SYMBIAN&#8221; by typically using &#8220;dumpbin /section:.SYMBIAN &#60;Excutable File&#62;&#8221;. The output looks like: SECTION HEADER #6 .SYMBIAN name 30 virtual size 17000 virtual address (00417000 to 0041702F) 1000 size of raw data 17000 file pointer to raw data (00017000 to 00017FFF) 0 file pointer [...]]]></description>
			<content:encoded><![CDATA[<h3>(1) Emulator Build (Win32 PE)</h3>
<p>First, find the start address of section &#8220;.SYMBIAN&#8221; by typically using &#8220;dumpbin /section:.SYMBIAN &lt;Excutable File&gt;&#8221;.</p>
<p>The output looks like:</p>
<pre>SECTION HEADER #6
.SYMBIAN name
30 virtual size
17000 virtual address (00417000 to 0041702F)
1000 size of raw data
17000 file pointer to raw data (00017000 to 00017FFF)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
C0000040 flags
Initialized Data
Read Write</pre>
<p>According to the line containing &#8220;virtual address&#8221;, section &#8220;.SYMBIAN&#8221; starts at address 0&#215;00017000.</p>
<p>Now, use any hex-editor to view the content at this address:</p>
<blockquote><p> 00017000h: 7A 00 00 10 00 00 00 00 B2 97 1F 10 5E 01 00 00<br />
00017010h: B2 97 1F 10 57 B6 1F 10 <strong>B6 E1 0F 00</strong> 00 00 00 00</p></blockquote>
<p>The first 3 dwords are UIDs: 0x1000007A stands for &#8220;Symbian EXE&#8221;, 0x101F97B2 is the unique UID of this file. (no UID2 for Symbian EXE, but this field is essential for DLL to indicate the framework, eg. 0x10009D8D for ECOM)</p>
<p>The capabilities field at offset 0x18h holds all the capabilities for this executive in the form of bitmask. Thus, 0x000FE1B6 is translated to the following capabilities: (see enumerator TCapability in Symbian SDK)</p>
<p>CommDD PowerMgmt ReadDeviceData WriteDeviceData TrustedUI ProtServ NetworkServices LocalServices ReadUserData WriteUserData Location SurroundingsDD UserEnvironment</p>
<h3>(2) Target Build (Symbian PE)</h3>
<p>3 UIDs located at the very beginning of the executive file, and the capabilities field is at fixed offset 0x88h. (same meaning as  described for emulator build)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.oasisfeng.com/2007/12/14/find-uids-and-capabilities-of-symbian-executive/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.242 seconds -->
