<?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; InitiateSystemShutdown</title>
	<atom:link href="http://weseetips.com/tag/initiatesystemshutdown/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 shutdown or restart a remote machine?</title>
		<link>http://weseetips.com/2008/06/10/how-to-shutdown-or-restart-a-remote-machine/</link>
		<comments>http://weseetips.com/2008/06/10/how-to-shutdown-or-restart-a-remote-machine/#comments</comments>
		<pubDate>Tue, 10 Jun 2008 18:42:51 +0000</pubDate>
		<dc:creator>Jijo Raj</dc:creator>
				<category><![CDATA[Codeproject]]></category>
		<category><![CDATA[Windows APIs]]></category>
		<category><![CDATA[AbortSystemShutdown()]]></category>
		<category><![CDATA[InitiateSystemShutdown]]></category>
		<category><![CDATA[restart pc]]></category>
		<category><![CDATA[restart remote pc]]></category>
		<category><![CDATA[shutdown]]></category>
		<category><![CDATA[shutdown machine]]></category>
		<category><![CDATA[shutdown pc]]></category>
		<category><![CDATA[shutdown remote machine]]></category>
		<category><![CDATA[shutdown remote pc]]></category>

		<guid isPermaLink="false">http://weseetips.wordpress.com/?p=165</guid>
		<description><![CDATA[You can restart the machine on your table by simply pressing the restart button. But what about a remote machine? For instance, in cable-tv broadband networks, windows machines can be deployed as industrial pc&#8217;s which are located several kilometers away from the central server. So its not possible to reach the hardware and restart the [...]]]></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 />
You can restart the machine on your table by <span style="color:#0000ff;">simply pressing the restart button</span>. But what about a remote machine? For instance, in <span style="color:#0000ff;">cable-tv broadband networks</span>, windows machines can be deployed as industrial pc&#8217;s which are located several kilometers away from the central server. <span style="color:#0000ff;">So its not possible to reach the hardware and restart the pc if needed.</span> So how can you shutdown or restart a remote pc?</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 />
You can use the function &#8211; <span style="color:#0000ff;">InitiateSystemShutdown()</span>. It will initiate the shutdown or restart process in the specified remote machine. See the following code snippet.</p>
<pre>// Restart remote machine - RemotePC01
InitiateSystemShutdown( _T("RemotePC01"), // Machine Name.
                        _T("You are going to be restarted"),
                        5000, // timeout
                        TRUE, // Forcefully close applications.
                        TRUE ); // Restart the PC</pre>
<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 />
If you need to abort the shutdown process, you can call <span style="color:#3366ff;">AbortSystemShutdown()</span>.</p>
<p><img class="alignnone size-medium wp-image-51" src="http://weseetips.files.wordpress.com/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/06/10/how-to-shutdown-or-restart-a-remote-machine/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

