<?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>Code Library &#187; serial number</title>
	<atom:link href="http://www.ucosoft.com/tag/serial-number/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ucosoft.com</link>
	<description>Free Source Code and Program Tips</description>
	<lastBuildDate>Mon, 19 Jul 2010 04:51:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to get a fixed code for serial number(2)</title>
		<link>http://www.ucosoft.com/how-to-get-a-fixed-code-for-serial-number2.html</link>
		<comments>http://www.ucosoft.com/how-to-get-a-fixed-code-for-serial-number2.html#comments</comments>
		<pubDate>Thu, 11 Jan 2007 00:41:45 +0000</pubDate>
		<dc:creator>support</dc:creator>
				<category><![CDATA[Win32/MFC]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[sdk]]></category>
		<category><![CDATA[serial number]]></category>
		<category><![CDATA[shareware]]></category>

		<guid isPermaLink="false">http://www.ucosoft.com/archives/73.html</guid>
		<description><![CDATA[I have post an article about &#8220;How to get a fixed code for serial number&#8221; at http://www.ucosoft.com/archives/51.html. In that article, I suggest you&#160;try WMI class to retrieve &#160;some hardware ID. But there is some limitation of this method. The WMI redist package is not always available on user&#8217;s system, for example, Windows NT4 and Windows]]></description>
			<content:encoded><![CDATA[<p>I have post an article about &#8220;How to get a fixed code for serial number&#8221; at <a href="http://www.ucosoft.com/archives/51.html">http://www.ucosoft.com/archives/51.html</a>. In that article, I suggest you&nbsp;try <a href="http://www.ucosoft.com/archives/60.html">WMI class</a> to retrieve &nbsp;some hardware ID. But there is some limitation of this method.</p>
<p>The WMI redist package is not always available on user&#8217;s system, for example, Windows NT4 and Windows 95/98.&nbsp; And the <a href="http://en.wikipedia.org/wiki/Volume_serial_number">Volume Serial Number of HDD</a> can be easily changed while the&nbsp;CPU ID is not always available. </p>
<p>As <em>Walter Wang</em> said, the manufacturer of harddisk&nbsp;stored a unique Firmware Serial Number in the harddisk when it&#8217;s built. It doesn&#8217;t change with Operating System Changes or HDD formatting. So I should serve your purpose.</p>
<p>For source code example on how to retrieve this HDD Firmware Serial Number using DeviceIoControl, you can refer to following <a href="http://www.winsim.com/diskid32/diskid32.html">this article</a>. It support IDE, SATA and SCSI drive type.</p>
<p><a href="http://www.winsim.com/diskid32/diskid32.html">http://www.winsim.com/diskid32/diskid32.html</a></p>
<p>
Local download: <span id="more-73"></span><a href="http://www.ucosoft.com/wp-content/download/diskid32.zip">diskid32.zipp</a><br />
Simple output of diskid32:
</p>
<p><coolcode lang="cpp" linenum="no"><br />
Primary Controller &#8211; Master drive</p>
<p>Drive Model Number________________: ST380011A<br />
Drive Serial Number_______________: 3JV6TBXW<br />
Drive Controller Revision Number__: 3.04<br />
Controller Buffer Size on Drive___: 2097152 bytes<br />
Drive Type________________________: Fixed<br />
Drive Size________________________: 76264796672 bytes</p>
<p>Trying to read the drive IDs using the SCSI back door</p>
<p>Primary Controller &#8211; Master drive</p>
<p>Drive Model Number________________: ST380011A<br />
Drive Serial Number_______________: 3JV6TBXW<br />
Drive Controller Revision Number__: 3.04<br />
Controller Buffer Size on Drive___: 2097152 bytes<br />
Drive Type________________________: Fixed<br />
Drive Size________________________: 76264796672 bytes</p>
<p>Trying to read the drive IDs using physical access wi</p>
<p>**** STORAGE_DEVICE_DESCRIPTOR for drive 0 ****<br />
Vendor Id = (<br />
Product Id = ST380011A<br />
Product Revision = 3.04<br />
Serial Number = 3JV6TBXW</p>
<p>Hard Drive Serial Number__________: 3JV6TBXW<br />
Hard Drive Model Number___________: ST380011A<br />
Computer ID_______________________: 652190462<br />
MAC Address: 00-FF-5B-FE-6B-20<br />
MAC Address: 00-0C-76-74-DA-50<br />
</coolcode></p>

	Tags: <strong><a href="http://www.ucosoft.com/tag/api" title="API" rel="tag">API</a>, <a href="http://www.ucosoft.com/tag/how-to" title="How-to" rel="tag">How-to</a>, <a href="http://www.ucosoft.com/tag/sdk" title="sdk" rel="tag">sdk</a>, <a href="http://www.ucosoft.com/tag/serial-number" title="serial number" rel="tag">serial number</a>, <a href="http://www.ucosoft.com/tag/shareware" title="shareware" rel="tag">shareware</a></strong><br />

	<ul class="st-related-posts">
	<li><a href="http://www.ucosoft.com/write-and-read-binary-data-in-variant.html" title="Write and read binary data in VARIANT (November 22, 2006)">Write and read binary data in VARIANT</a> (0)</li>
	<li><a href="http://www.ucosoft.com/set-the-head-backgroud-color-of-cpropertypage.html" title="Set the head backgroud color of CPropertyPage (October 18, 2007)">Set the head backgroud color of CPropertyPage</a> (0)</li>
	<li><a href="http://www.ucosoft.com/intermittent-work-in-ui-thread-2.html" title="Intermittent work in UI thread (October 16, 2007)">Intermittent work in UI thread</a> (0)</li>
	<li><a href="http://www.ucosoft.com/intermittent-work-in-ui-thread.html" title="Intermittent work in UI thread (October 16, 2007)">Intermittent work in UI thread</a> (0)</li>
	<li><a href="http://www.ucosoft.com/how-to-translate-among-cstringstring-and-char-array.html" title="How to translate among CString,string and char array (June 22, 2007)">How to translate among CString,string and char array</a> (0)</li>
	<li><a href="http://www.ucosoft.com/how-to-subclass-ctreectrl-in-ctreeview.html" title="How to subclass CTreeCtrl in CTreeView? (October 25, 2007)">How to subclass CTreeCtrl in CTreeView?</a> (0)</li>
	<li><a href="http://www.ucosoft.com/how-to-sort-items-of-clistctrl-or-clistview.html" title="How to sort items of CListCtrl or CListView? (October 22, 2007)">How to sort items of CListCtrl or CListView?</a> (0)</li>
	<li><a href="http://www.ucosoft.com/how-to-sendpost-message-to-cdocument.html" title="How to send/post message to CDocument? (October 24, 2007)">How to send/post message to CDocument?</a> (2)</li>
	<li><a href="http://www.ucosoft.com/how-to-launch-an-application-with-admin-privileges-in-vista.html" title="How to launch an Application with Admin privileges in VISTA (March 8, 2007)">How to launch an Application with Admin privileges in VISTA</a> (0)</li>
	<li><a href="http://www.ucosoft.com/get-clistctrl-item-text-of-another-process.html" title="How to get ClistCtrl item text of another process (September 24, 2008)">How to get ClistCtrl item text of another process</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ucosoft.com/how-to-get-a-fixed-code-for-serial-number2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
