<?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>Kanwaljeet Singla &#187; SourceCode</title>
	<atom:link href="http://www.ksingla.net/tag/sourcecode/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ksingla.net</link>
	<description>Windows, IIS, PHP and more</description>
	<lastBuildDate>Thu, 10 Jun 2010 20:38:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to add traces to IIS log from PHP</title>
		<link>http://www.ksingla.net/2010/04/how-to-add-traces-to-iis-log-from-php/</link>
		<comments>http://www.ksingla.net/2010/04/how-to-add-traces-to-iis-log-from-php/#comments</comments>
		<pubDate>Mon, 05 Apr 2010 03:08:24 +0000</pubDate>
		<dc:creator>Kanwaljeet Singla</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[FastCGI]]></category>
		<category><![CDATA[SourceCode]]></category>
		<category><![CDATA[Tracing]]></category>

		<guid isPermaLink="false">http://www.ksingla.net/?p=210</guid>
		<description><![CDATA[One of the new features added to FastCGI module in IIS 7.5 is ability to use IIS tracing infrastructure from FastCGI applications. This feature request was made by a customer who wanted to consolidate logging of the request processing in one log. All IIS events were present in IIS trace logs but traces generated by [...]]]></description>
		<wfw:commentRss>http://www.ksingla.net/2010/04/how-to-add-traces-to-iis-log-from-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WaitForAllObjects to wait on more than MAXIMUM_WAIT_OBJECTS handles</title>
		<link>http://www.ksingla.net/2010/01/waitforallobjects-to-wait-on-more-than-maximum_wait_objects-handles/</link>
		<comments>http://www.ksingla.net/2010/01/waitforallobjects-to-wait-on-more-than-maximum_wait_objects-handles/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 05:23:34 +0000</pubDate>
		<dc:creator>Kanwaljeet Singla</dc:creator>
				<category><![CDATA[WINDOWS]]></category>
		<category><![CDATA[SourceCode]]></category>
		<category><![CDATA[WaitForAllObjects]]></category>

		<guid isPermaLink="false">http://www.ksingla.net/?p=136</guid>
		<description><![CDATA[<p>One of the painful limitations of <a href="http://msdn.microsoft.com/en-us/library/ms687025(VS.85).aspx">WaitForMultipleObjects</a> function is that you can&#160;use it to wait for a maximum of MAXIMUM_WAIT_OBJECTS number of object handles. Value of MAXIMUM_WAIT_OBJECTS is 64. If you need to wait on more than MAXIMUM_WAIT_OBJECTS handle, you can either create a separate thread to wait on MAXIMUM_WAIT_OBJECTS and then do a wait on these threads to finish. Using this method you can create 64 threads each of those can wait for 64 object handles.]]></description>
		<wfw:commentRss>http://www.ksingla.net/2010/01/waitforallobjects-to-wait-on-more-than-maximum_wait_objects-handles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tool to find native module&#8217;s pipeline events registration (source code)</title>
		<link>http://www.ksingla.net/2006/08/tool_to_find_native_modules_pipeline_events_registration/</link>
		<comments>http://www.ksingla.net/2006/08/tool_to_find_native_modules_pipeline_events_registration/#comments</comments>
		<pubDate>Wed, 30 Aug 2006 16:30:00 +0000</pubDate>
		<dc:creator>Kanwaljeet Singla</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[Pipeline]]></category>
		<category><![CDATA[SourceCode]]></category>

		<guid isPermaLink="false">http://www.ksingla.net/?p=30</guid>
		<description><![CDATA[<p><span style="color: green; font-size: 10pt">//</span><br />
<span style="color: green; font-size: 10pt">// Filename - getmreg.cxx&#160;<br />
</span><span style="color: green; font-size: 10pt">// Build this as an executable.</span><br />
<span style="color: green; font-size: 10pt">// Keep this exe and module dll</span><br />
<span style="color: green; font-size: 10pt">// in the same folder</span><br />
<span style="color: green; font-size: 10pt">// </span><br />
<span style="color: green; font-size: 10pt">// Run using &#34;</span><span style="color: green; font-size: 10pt">getmreg.exe &#60;path to module&#62;&#34;</span><br />
<span style="color: green; font-size: 10pt">//</span><br />
<span style="color: green; font-size: 10pt">// This tool uses hostable web core functionality</span><br />
<span style="color: green; font-size: 10pt">// of IIS7. So this will only run on machine with</span><br />]]></description>
		<wfw:commentRss>http://www.ksingla.net/2006/08/tool_to_find_native_modules_pipeline_events_registration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sample forms authentication test in C#</title>
		<link>http://www.ksingla.net/2006/08/sample_forms_authentication_test_in_csharp/</link>
		<comments>http://www.ksingla.net/2006/08/sample_forms_authentication_test_in_csharp/#comments</comments>
		<pubDate>Wed, 23 Aug 2006 10:23:00 +0000</pubDate>
		<dc:creator>Kanwaljeet Singla</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[FormsAuthentication]]></category>
		<category><![CDATA[SourceCode]]></category>

		<guid isPermaLink="false">http://www.ksingla.net/?p=29</guid>
		<description><![CDATA[<p>This sample test is doing the following:<br />
1. Sending request to a page which requires forms authentication. This results in 302 to login page.<br />
2. Send request to login page.<br />
3. Parse response from 2 and create response entity containing username/password to be used in next post request to login page.<br />
4. Do a POST to login page. If successful this should return a 302 with Set-Cookie and location header.<br />
5. Send request to location pointed to in last response (this is original page we requested in 1) with request cookie as returned in 4. Expect 200.</p>]]></description>
		<wfw:commentRss>http://www.ksingla.net/2006/08/sample_forms_authentication_test_in_csharp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
