<?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>Visual C++ Tips &#187; FileSystem</title>
	<atom:link href="http://weseetips.com/category/filesystem/feed/" rel="self" type="application/rss+xml" />
	<link>http://weseetips.com</link>
	<description>Gold mine of Visual C++ tricks!</description>
	<lastBuildDate>Thu, 11 Mar 2010 09:09:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>How to hide files/folders in Windows NTFS file system?</title>
		<link>http://weseetips.com/2008/07/31/how-to-hide-filesfolders-in-windows-ntfs-file-system/</link>
		<comments>http://weseetips.com/2008/07/31/how-to-hide-filesfolders-in-windows-ntfs-file-system/#comments</comments>
		<pubDate>Thu, 31 Jul 2008 17:30:31 +0000</pubDate>
		<dc:creator>Jijo Raj</dc:creator>
				<category><![CDATA[Codeproject]]></category>
		<category><![CDATA[FileSystem]]></category>
		<category><![CDATA[ADS]]></category>
		<category><![CDATA[Alternate Data Streams]]></category>
		<category><![CDATA[file streams]]></category>
		<category><![CDATA[hide file]]></category>
		<category><![CDATA[hide folder]]></category>
		<category><![CDATA[lock file]]></category>
		<category><![CDATA[lock folder]]></category>
		<category><![CDATA[NTFS]]></category>
		<category><![CDATA[streams]]></category>
		<category><![CDATA[trojen]]></category>
		<category><![CDATA[virus]]></category>

		<guid isPermaLink="false">http://weseetips.wordpress.com/?p=286</guid>
		<description><![CDATA[I still feel nostalgic about the golden era of Windows 95 &#38; 98. During those days, we can lock our important data by using the &#8220;Alt+255&#8243; trick which make it difficult for other to open and access data. Well, the &#8220;Alt+255&#8243; trick won&#8217;t work in latest windows versions. Is there any other cool trick to [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-11" src="http://weseetips.files.wordpress.com/2008/03/icon_description.jpg?w=166" alt="" width="166" height="32" /><br />
<span style="color:#0000ff;"> I still feel nostalgic about the golden era of Windows 95 &amp; 98.</span> During those days, <span style="color:#0000ff;">we can lock</span> our important data <span style="color:#0000ff;">by using the &#8220;Alt+255&#8243; </span>trick which make it difficult for other to open and access data. <span style="color:#0000ff;">Well, the &#8220;Alt+255&#8243; trick won&#8217;t work in latest windows versions.</span> <img src='http://weseetips.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p><img class="alignnone size-full wp-image-287" src="http://siteground205.com/~weseetip/wp-content/uploads/2008/07/hide_folders.jpg" alt="" width="414" height="263" /></p>
<p>Is there any other cool trick to hide data like the previous version of windows?</p>
<p><img class="alignnone size-medium wp-image-12" src="http://weseetips.files.wordpress.com/2008/03/icon_howcanidoit.jpg?w=220" alt="" width="220" height="32" /><br />
yes! You can utilize the <span style="color:#0000ff;">&#8220;<strong>Alternate Data Streams</strong>&#8220;( <strong>ADS</strong> )</span> of <span style="color:#0000ff;">NTFS </span>file system. <span style="color:#0000ff;">ADS </span>is the feature by which a single file can have multiple data streams under it. <span style="color:#0000ff;">Only a stream aware application can iterate it.</span> For other application, its just a file with single stream under it. Well, lets do some exercises. We&#8217;re going to hide the file <span style="color:#0000ff;">Secret.avi</span> under file <span style="color:#0000ff;">Innocent.txt. <span style="color:#000000;">Take dos console and execute the commands. <span style="color:#0000ff;">I&#8217;m assuming that both files are present in your current directory.</span> </span></span></p>
<pre>Syntax: type <em>&lt;FileToHide&gt;</em> <em>&lt;DestinationFile&gt;</em>:<em>&lt;StreamName&gt;</em>
E.g. C:\&gt;type Secret.avi &gt; Innocent.txt:SecretStream.avi</pre>
<p>Now the <span style="color:#0000ff;">Secret.avi</span> file is <span style="color:#0000ff;">copied </span>as <span style="color:#0000ff;">another data stream under Innocent.txt</span> file. <span style="color:#0000ff;">Try opening the Innocent.txt</span>. Its <span style="color:#0000ff;">just the text file</span>. huh? Well, now execute the following command to get the file back.</p>
<pre>Syntax: more &lt; <em>&lt;DestinationFile&gt;</em>:<em>&lt;StreamName&gt;</em> &gt; <em>&lt;RestoreFileName&gt;</em>
C:\&gt; more &lt; Innocent.txt:SecretStream.avi &gt; RestoredSecret.avi</pre>
<p>You got the file back!</p>
<p><img class="alignnone size-medium wp-image-18" src="http://weseetips.files.wordpress.com/2008/03/icon_note.jpg?w=94" alt="" width="94" height="32" /><br />
ADS is one for the <span style="color:#0000ff;">favorite feature of virus writers</span>. Trojans and viruses utilize ADS to get hidden from user eyes. Many of us might notice that, <span style="color:#0000ff;">even if we delete away some files, after next restart they reappear.</span> Yes! the real virus might be under some innocent file. <img src='http://weseetips.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Have a look at Wiki too &#8211; <a title="http://www.wikistc.org/wiki/Alternate_data_streams" href="http://www.wikistc.org/wiki/Alternate_data_streams" target="_blank">http://www.wikistc.org/wiki/Alternate_data_streams</a></p>
<p><img class="alignnone size-medium wp-image-54" src="http://weseetips.files.wordpress.com/2008/03/advancedseries.jpg?w=217" alt="" width="217" height="32" /><br />
Targeted Audience &#8211; Advanced.</p>
]]></content:encoded>
			<wfw:commentRss>http://weseetips.com/2008/07/31/how-to-hide-filesfolders-in-windows-ntfs-file-system/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to create NTFS File links Programmatically.</title>
		<link>http://weseetips.com/2008/04/21/how-to-create-ntfs-file-links-programmatically/</link>
		<comments>http://weseetips.com/2008/04/21/how-to-create-ntfs-file-links-programmatically/#comments</comments>
		<pubDate>Mon, 21 Apr 2008 04:08:46 +0000</pubDate>
		<dc:creator>Jijo Raj</dc:creator>
				<category><![CDATA[FileSystem]]></category>
		<category><![CDATA[CreateHardLink]]></category>
		<category><![CDATA[DeleteFile]]></category>
		<category><![CDATA[file links]]></category>
		<category><![CDATA[File system]]></category>
		<category><![CDATA[hard links]]></category>
		<category><![CDATA[NTFS]]></category>
		<category><![CDATA[NTFS links]]></category>
		<category><![CDATA[VC++]]></category>
		<category><![CDATA[Visual C++]]></category>

		<guid isPermaLink="false">http://weseetips.wordpress.com/?p=78</guid>
		<description><![CDATA[Unix guys don’t need an introduction about file links, because its one of the beginner Unix skills – how to create a file link. But usually in windows arena, file links may be the least discussed one among beginners. In simple words, file links are – one Physical file in disk but with different file [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-11" src="http://weseetips.wordpress.com/files/2008/03/icon_description.jpg?w=166" alt="" width="166" height="32" /><br />
Unix guys don’t need an introduction about file links, because its one of the beginner Unix skills – how to create a file link. But usually in windows arena, file links may be the least discussed one among beginners. In simple words, file links are – <span style="color:#0000ff;">one Physical file in disk but with different file names</span>. All the file names points to the same file. There are a number of usages for file links.</p>
<ul>
<li>Hide the master file from a bunch of naughty users.</li>
<li>You can assign different access rights for different users by creating file links for the same file.( each link have different permissions.)</li>
<li>To keep the filename constant and you can change the mapping to another file.</li>
<li>Etc etc… it goes on.</li>
</ul>
<p><img class="alignnone size-medium wp-image-12" src="http://weseetips.wordpress.com/files/2008/03/icon_howcanidoit.jpg?w=220" alt="" width="220" height="32" /><br />
So how can i create a link for a file? You can use the api &#8211; <span style="color:#0000ff;">CreateHardLink()</span>. See the sample code snippet below.</p>
<pre>CreateHardLink( _T(“c:\\masterfile.dat”),    // Source File
                _T(“c:\\LinkToMaster.dat”),  // Link name
                NULL );    // Security attributes</pre>
<p><img class="alignnone size-medium wp-image-18" src="http://weseetips.wordpress.com/files/2008/03/icon_note.jpg?w=94" alt="" width="94" height="32" /><br />
You can use <span style="color:#0000ff;">DeleteFile()</span> to delete the created link.</p>
<p><img class="alignnone size-medium wp-image-51" src="http://weseetips.wordpress.com/files/2008/03/beginnerseries.jpg?w=215" alt="" width="215" height="32" /><br />
Targeted Audience &#8211; Beginners.</p>
]]></content:encoded>
			<wfw:commentRss>http://weseetips.com/2008/04/21/how-to-create-ntfs-file-links-programmatically/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

