<?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; CSIDL</title>
	<atom:link href="http://weseetips.com/tag/csidl/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 get the path of Special Folders in windows.</title>
		<link>http://weseetips.com/2008/05/01/how-to-get-the-path-of-special-folders-in-windows/</link>
		<comments>http://weseetips.com/2008/05/01/how-to-get-the-path-of-special-folders-in-windows/#comments</comments>
		<pubDate>Thu, 01 May 2008 18:58:38 +0000</pubDate>
		<dc:creator>Jijo Raj</dc:creator>
				<category><![CDATA[Codeproject]]></category>
		<category><![CDATA[Windows Shell Pearls]]></category>
		<category><![CDATA[CSIDL]]></category>
		<category><![CDATA[path of special folders]]></category>
		<category><![CDATA[SHGetSpecialFolderPath]]></category>
		<category><![CDATA[special folders]]></category>

		<guid isPermaLink="false">http://weseetips.wordpress.com/?p=90</guid>
		<description><![CDATA[Windows have a number of special folder such as my documents, desktop folder etc. They are special because, their path can be different in system to system. So how can you get the path of special folder in windows? You can use the api &#8211; SHGetSpecialFolderPath(). For each special folder there is a predefined ID [...]]]></description>
			<content:encoded><![CDATA[<p><a href="None"></a></p>
<p><a href="None"></a><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 />
Windows have a number of special folder such as my documents, desktop folder etc. They are special because, their path can be different in system to system. So how can you get the path of special folder in windows?</p>
<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 />
You can use the api &#8211; <span style="color:#0000ff;">SHGetSpecialFolderPath()</span>. For each special folder there is a predefined ID called <span style="color:#0000ff;">CSIDL</span>. For instance, <span style="color:#0000ff;">for windows system directory</span> the CSIDL is <span style="color:#0000ff;">CSIDL_WINDOWS</span>. While calling the function, you&#8217;ve to provide the string buffer and the CSIDL and the requested special folder path is retuned in specified string buffer. See code snippet which fetches the path of Desktop directory.</p>
<pre>// String buffer for holding the path.
TCHAR strPath[ MAX_PATH ];

// Get the special folder path.
SHGetSpecialFolderPath(
    0,       // Hwnd
    strPath, // String buffer.
    CSIDL_DESKTOPDIRECTORY, // CSLID of folder
    FALSE ); // Create if doesn't exists?</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 />
Wanna to see the list of CSLID of special folders? have a look at them. Their names are self explanatory.</p>
<p>CSIDL_ADMINTOOLS<br />
CSIDL_ALTSTARTUP<br />
CSIDL_APPDATA<br />
CSIDL_BITBUCKET<br />
CSIDL_COMMON_ADMINTOOLS<br />
CSIDL_COMMON_ALTSTARTUP<br />
CSIDL_COMMON_APPDATA<br />
CSIDL_COMMON_DESKTOPDIRECTORY<br />
CSIDL_COMMON_DOCUMENTS<br />
CSIDL_COMMON_FAVORITES<br />
CSIDL_COMMON_PROGRAMS<br />
CSIDL_COMMON_STARTMENU<br />
CSIDL_COMMON_STARTUP<br />
CSIDL_COMMON_TEMPLATES<br />
CSIDL_CONTROLS<br />
CSIDL_COOKIES<br />
CSIDL_DESKTOP<br />
CSIDL_DESKTOPDIRECTORY<br />
CSIDL_DRIVES<br />
CSIDL_FAVORITES<br />
CSIDL_FONTS<br />
CSIDL_HISTORY<br />
CSIDL_INTERNET<br />
CSIDL_INTERNET_CACHE<br />
CSIDL_LOCAL_APPDATA<br />
CSIDL_MYMUSIC<br />
CSIDL_MYPICTURES<br />
CSIDL_NETHOOD<br />
CSIDL_NETWORK<br />
CSIDL_PERSONAL<br />
CSIDL_PRINTERS<br />
CSIDL_PRINTHOOD<br />
CSIDL_PROFILE<br />
CSIDL_PROGRAM_FILES<br />
CSIDL_PROGRAM_FILES_COMMON<br />
CSIDL_PROGRAMS<br />
CSIDL_RECENT<br />
CSIDL_SENDTO<br />
CSIDL_STARTMENU<br />
CSIDL_STARTUP<br />
CSIDL_SYSTEM<br />
CSIDL_TEMPLATES<br />
CSIDL_WINDOWS</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/05/01/how-to-get-the-path-of-special-folders-in-windows/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

