<?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>coder000 &#187; system</title>
	<atom:link href="http://coder000.com/topics/code/system/feed/" rel="self" type="application/rss+xml" />
	<link>http://coder000.com</link>
	<description>an exploration, a quest... to grow</description>
	<lastBuildDate>Thu, 03 Sep 2009 17:46:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Shutdown, Restart or Log off Windows in VB.Net</title>
		<link>http://coder000.com/shutdown-restart-or-log-off-windows-in-vb-net/</link>
		<comments>http://coder000.com/shutdown-restart-or-log-off-windows-in-vb-net/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 04:05:12 +0000</pubDate>
		<dc:creator>Rahul Vyas</dc:creator>
				<category><![CDATA[system]]></category>
		<category><![CDATA[shutdown]]></category>

		<guid isPermaLink="false">http://coder000.com/?p=287</guid>
		<description><![CDATA[<p>To shutdown computer through VB.NET, we use the API &#8211; ExitWindowsEx. However, there is one issue with this &#8211; we cannot shut the computer down if our application does not have the appropriate privileges (permissions). Here is the solution &#8211; a class encapsulating the ExitWindowsEx and other APIs needed for getting appropriate privileges.</p>
<p></p>
<p>


</p>
<p></p>
]]></description>
		<wfw:commentRss>http://coder000.com/shutdown-restart-or-log-off-windows-in-vb-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Launch applications, links and mails from vb net</title>
		<link>http://coder000.com/launch-applications-links-and-mails-from-vb-net/</link>
		<comments>http://coder000.com/launch-applications-links-and-mails-from-vb-net/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 03:22:15 +0000</pubDate>
		<dc:creator>Rahul Vyas</dc:creator>
				<category><![CDATA[system]]></category>
		<category><![CDATA[launch]]></category>

		<guid isPermaLink="false">http://coder000.com/?p=279</guid>
		<description><![CDATA[<p>This discussion uses System.Diagnostics.Process.Start method for functionality like providing a click-able web link, launching an email client (like outlook, mailto links), or launching another application from vb.net code.</p>
<p></p>




<p>What is common in all the three scenarios above?</p>
<p>In all of the cases we are trying to start another process from the current process (our application). This can be done by the Process class provided by .NET framework. To start the process we use the Start method.</p>
<p>Starting another application</p>
<p>To start an application from our code, we can use the Start method. Following piece of code starts calculator:</p>
<p></p>
<p>System.Diagnostics.Process.Start("calc.exe")</p>
<p>If you want to pass any arguments <a href="http://coder000.com/launch-applications-links-and-mails-from-vb-net/">[...]<a>]]></description>
		<wfw:commentRss>http://coder000.com/launch-applications-links-and-mails-from-vb-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Minimize all windows through keybd_event in VB Net</title>
		<link>http://coder000.com/minimize-all-windows-through-keybd_event-in-vb-net/</link>
		<comments>http://coder000.com/minimize-all-windows-through-keybd_event-in-vb-net/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 21:13:19 +0000</pubDate>
		<dc:creator>Rahul Vyas</dc:creator>
				<category><![CDATA[system]]></category>
		<category><![CDATA[minimize]]></category>

		<guid isPermaLink="false">http://coder000.com/?p=270</guid>
		<description><![CDATA[<p>This code shows how can we minimize all open windows using keybd_event API.</p>
<p></p>




<p>The following statement declares the API:</p>

Public Declare Sub keybd_event Lib &#38;amp;quot;user32.dll&#38;amp;quot; (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Int32, ByVal dwExtraInfo As Int32)

<p>After declaring the API as show in the above code, you may go ahead and use the API as in the following example. I have created a method to Minimize All windows.</p>

Public Sub MinimizeAll()
    keybd_event(&#38;amp;amp;H5B, 0, 0, 0)
    keybd_event(&#38;amp;amp;H4D, 0, 0, 0)
    keybd_event(&#38;amp;amp;H5B, 0, &#38;amp;amp;H2, 0)
End Sub

]]></description>
		<wfw:commentRss>http://coder000.com/minimize-all-windows-through-keybd_event-in-vb-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monitor and respond to all Windows keyboard events in VB Net</title>
		<link>http://coder000.com/monitor-and-respond-to-all-windows-keyboard-events-in-vb-net/</link>
		<comments>http://coder000.com/monitor-and-respond-to-all-windows-keyboard-events-in-vb-net/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 20:54:34 +0000</pubDate>
		<dc:creator>Rahul Vyas</dc:creator>
				<category><![CDATA[system]]></category>
		<category><![CDATA[api]]></category>

		<guid isPermaLink="false">http://coder000.com/?p=265</guid>
		<description><![CDATA[<p>How do keyloggers work. How to read what key is pressed irrespective of focus on form or visibility of form and write code for handling it. Object Oriented wrapper for Windows Hook (with event) to address the above issues.
</p>




<p></p>
]]></description>
		<wfw:commentRss>http://coder000.com/monitor-and-respond-to-all-windows-keyboard-events-in-vb-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
